Discussion:
[Qt-creator] What are your favorite clang-tidy checks
Ivan Donchevskii
2018-06-13 07:44:23 UTC
Permalink
Hi!


On the contributors summit I mentioned that we want to introduce the "default" set of flags for Clang-Tidy which can be used as a starting point for analysis and is good enough for some random project developed in Qt Creator.

We have an example of it in https://codereview.qt-project.org/#/c/230400/ but not sure if it is actually the proper list.


Here's the list itself - "bugprone-*,cppcoreguidelines-*,misc-*,modernize-*,performance-*,readability-*,-cppcoreguidelines-owning-memory,-readability-braces-around-statements,-readability-implicit-bool-conversion,-readability-named-parameter"


Let us know if there's something you would like to add or remove from it. You can check the whole tree of currently available checks in 4.7 beta or in one of our latest Qt Creator snapshots.


Kind regards,

Ivan
Ivan Donchevskii
2018-06-13 09:39:54 UTC
Permalink
You can also check the full list of Clang-Tidy 6.0 checks at https://releases.llvm.org/6.0.0/tools/clang/tools/extra/docs/clang-tidy/checks/

________________________________
From: Qt-creator <qt-creator-bounces+ivan.donchevskii=***@qt-project.org> on behalf of Ivan Donchevskii <***@qt.io>
Sent: Wednesday, June 13, 2018 9:44:23 AM
To: qt-***@qt-project.org
Subject: [Qt-creator] What are your favorite clang-tidy checks


Hi!


On the contributors summit I mentioned that we want to introduce the "default" set of flags for Clang-Tidy which can be used as a starting point for analysis and is good enough for some random project developed in Qt Creator.

We have an example of it in https://codereview.qt-project.org/#/c/230400/ but not sure if it is actually the proper list.


Here's the list itself - "bugprone-*,cppcoreguidelines-*,misc-*,modernize-*,performance-*,readability-*,-cppcoreguidelines-owning-memory,-readability-braces-around-statements,-readability-implicit-bool-conversion,-readability-named-parameter"


Let us know if there's something you would like to add or remove from it. You can check the whole tree of currently available checks in 4.7 beta or in one of our latest Qt Creator snapshots.


Kind regards,

Ivan
Jason H
2018-06-14 14:56:37 UTC
Permalink
_______________________________________________
Qt-creator mailing list
Qt-***@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator
Vadim Peretokin
2018-06-14 14:57:43 UTC
Permalink
I have not had issues with modernize-loop-convert not detecting that
variables are used by other things in a well-established codebase - ymmv.

On Thu, Jun 14, 2018 at 4:56 PM Jason H <***@gmx.com> wrote:

> My LEAST favorite is
> modernize-loop-convert
>
> It seems to be blindly applied. If I am using the loop increment variable
> for aother things, that is a not good to recommend. It doesn't seem to
> detect that.
>
> *Sent:* Wednesday, June 13, 2018 at 4:39 AM
> *From:* "Ivan Donchevskii" <***@qt.io>
> *To:* "qt-***@qt-project.org" <qt-***@qt-project.org>
> *Subject:* Re: [Qt-creator] What are your favorite clang-tidy checks
>
> You can also check the full list of Clang-Tidy 6.0 checks at
> https://releases.llvm.org/6.0.0/tools/clang/tools/extra/docs/clang-tidy/checks/
> ------------------------------
> *From:* Qt-creator <qt-creator-bounces+ivan.donchevskii=
> ***@qt-project.org> on behalf of Ivan Donchevskii <
> ***@qt.io>
> *Sent:* Wednesday, June 13, 2018 9:44:23 AM
> *To:* qt-***@qt-project.org
> *Subject:* [Qt-creator] What are your favorite clang-tidy checks
>
>
> Hi!
>
>
>
> On the contributors summit I mentioned that we want to introduce the
> "default" set of flags for Clang-Tidy which can be used as a starting point
> for analysis and is good enough for some random project developed in Qt
> Creator.
>
> We have an example of it in https://codereview.qt-project.org/#/c/230400/ but
> not sure if it is actually the proper list.
>
>
>
> Here's the list itself -
> "bugprone-*,cppcoreguidelines-*,misc-*,modernize-*,performance-*,readability-*,-cppcoreguidelines-owning-memory,-readability-braces-around-statements,-readability-implicit-bool-conversion,-readability-named-parameter"
>
>
>
> Let us know if there's something you would like to add or remove from it.
> You can check the whole tree of currently available checks in 4.7 beta or
> in one of our latest Qt Creator snapshots.
>
>
>
> Kind regards,
>
> Ivan
> _______________________________________________ Qt-creator mailing list
> Qt-***@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
> _______________________________________________
> Qt-creator mailing list
> Qt-***@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>
Michael Jackson
2018-06-14 16:03:37 UTC
Permalink
I tend to go back and forth between turning it off so that code completion actually completes in a reasonable amount of time (~1 second) or having all the helpful insights into my code base. It is almost like QtCreator needs to have 2 threads running. One for the code completion and one for the clang-tidy stuff.



--

Mike Jackson



On 6/13/18, 3:44 AM, "Qt-creator on behalf of Ivan Donchevskii" <qt-creator-bounces+mike.jackson=***@qt-project.org on behalf of ***@qt.io> wrote:



Hi!



On the contributors summit I mentioned that we want to introduce the "default" set of flags for Clang-Tidy which can be used as a starting point for analysis and is good enough for some random project developed in Qt Creator.

We have an example of it in https://codereview.qt-project.org/#/c/230400/ but not sure if it is actually the proper list.



Here's the list itself - "bugprone-*,cppcoreguidelines-*,misc-*,modernize-*,performance-*,readability-*,-cppcoreguidelines-owning-memory,-readability-braces-around-statements,-readability-implicit-bool-conversion,-readability-named-parameter"



Let us know if there's something you would like to add or remove from it. You can check the whole tree of currently available checks in 4.7 beta or in one of our latest Qt Creator snapshots.



Kind regards,

Ivan

_______________________________________________ Qt-creator mailing list Qt-***@qt-project.org http://lists.qt-project.org/mailman/listinfo/qt-creator
Ivan Donchevskii
2018-06-14 16:10:40 UTC
Permalink
In Qt Creator 4.7 there's a separate tool (Analyze menu) that runs Clang-Tidy checks over the selected files which does not affect your opened documents. I hope it solves your problem at least partially :)

________________________________
From: Qt-creator <qt-creator-bounces+ivan.donchevskii=***@qt-project.org> on behalf of Michael Jackson <***@bluequartz.net>
Sent: Thursday, June 14, 2018 6:03:37 PM
To: qt-***@qt-project.org
Subject: Re: [Qt-creator] What are your favorite clang-tidy checks


I tend to go back and forth between turning it off so that code completion actually completes in a reasonable amount of time (~1 second) or having all the helpful insights into my code base. It is almost like QtCreator needs to have 2 threads running. One for the code completion and one for the clang-tidy stuff.



--

Mike Jackson



On 6/13/18, 3:44 AM, "Qt-creator on behalf of Ivan Donchevskii" <qt-creator-bounces+mike.jackson=***@qt-project.org<mailto:qt-creator-bounces+mike.jackson=***@qt-project.org> on behalf of ***@qt.io<mailto:***@qt.io>> wrote:



Hi!



On the contributors summit I mentioned that we want to introduce the "default" set of flags for Clang-Tidy which can be used as a starting point for analysis and is good enough for some random project developed in Qt Creator.

We have an example of it in https://codereview.qt-project.org/#/c/230400/ but not sure if it is actually the proper list.



Here's the list itself - "bugprone-*,cppcoreguidelines-*,misc-*,modernize-*,performance-*,readability-*,-cppcoreguidelines-owning-memory,-readability-braces-around-statements,-readability-implicit-bool-conversion,-readability-named-parameter"



Let us know if there's something you would like to add or remove from it. You can check the whole tree of currently available checks in 4.7 beta or in one of our latest Qt Creator snapshots.



Kind regards,

Ivan

_______________________________________________ Qt-creator mailing list Qt-***@qt-project.org http://lists.qt-project.org/mailman/listinfo/qt-creator
Vadim Peretokin
2018-06-14 16:42:00 UTC
Permalink
That's a great addition! Can it also run fixits?

On Thu, 14 Jun 2018, 6:10 pm Ivan Donchevskii, <***@qt.io>
wrote:

> In Qt Creator 4.7 there's a separate tool (Analyze menu) that runs
> Clang-Tidy checks over the selected files which does not affect your opened
> documents. I hope it solves your problem at least partially :)
> ------------------------------
> *From:* Qt-creator <qt-creator-bounces+ivan.donchevskii=
> ***@qt-project.org> on behalf of Michael Jackson <
> ***@bluequartz.net>
> *Sent:* Thursday, June 14, 2018 6:03:37 PM
> *To:* qt-***@qt-project.org
>
> *Subject:* Re: [Qt-creator] What are your favorite clang-tidy checks
>
>
> I tend to go back and forth between turning it off so that code completion
> actually completes in a reasonable amount of time (~1 second) or having all
> the helpful insights into my code base. It is almost like QtCreator needs
> to have 2 threads running. One for the code completion and one for the
> clang-tidy stuff.
>
>
>
> --
>
> Mike Jackson
>
>
>
> On 6/13/18, 3:44 AM, "Qt-creator on behalf of Ivan Donchevskii" <
> qt-creator-bounces+mike.jackson=***@qt-project.org on behalf
> of ***@qt.io> wrote:
>
>
>
> Hi!
>
>
>
> On the contributors summit I mentioned that we want to introduce the
> "default" set of flags for Clang-Tidy which can be used as a starting point
> for analysis and is good enough for some random project developed in Qt
> Creator.
>
> We have an example of it in https://codereview.qt-project.org/#/c/230400/ but
> not sure if it is actually the proper list.
>
>
>
> Here's the list itself
> - "bugprone-*,cppcoreguidelines-*,misc-*,modernize-*,performance-*,readability-*,-cppcoreguidelines-owning-memory,-readability-braces-around-statements,-readability-implicit-bool-conversion,-readability-named-parameter"
>
>
>
> Let us know if there's something you would like to add or remove from it.
> You can check the whole tree of currently available checks in 4.7 beta or
> in one of our latest Qt Creator snapshots.
>
>
>
> Kind regards,
>
> Ivan
>
> _______________________________________________ Qt-creator mailing list
> Qt-***@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
> _______________________________________________
> Qt-creator mailing list
> Qt-***@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>
Ivan Donchevskii
2018-06-14 16:55:44 UTC
Permalink
Yes, there are checkboxes for fix-its so you can apply selected ones.

________________________________
From: Vadim Peretokin <***@gmail.com>
Sent: Thursday, June 14, 2018 6:42 PM
To: Ivan Donchevskii
Cc: Michael Jackson; qt-***@qt-project.org
Subject: Re: [Qt-creator] What are your favorite clang-tidy checks

That's a great addition! Can it also run fixits?

On Thu, 14 Jun 2018, 6:10 pm Ivan Donchevskii, <***@qt.io<mailto:***@qt.io>> wrote:

In Qt Creator 4.7 there's a separate tool (Analyze menu) that runs Clang-Tidy checks over the selected files which does not affect your opened documents. I hope it solves your problem at least partially :)

________________________________
From: Qt-creator <qt-creator-bounces+ivan.donchevskii=***@qt-project.org<mailto:***@qt-project.org>> on behalf of Michael Jackson <***@bluequartz.net<mailto:***@bluequartz.net>>
Sent: Thursday, June 14, 2018 6:03:37 PM
To: qt-***@qt-project.org<mailto:qt-***@qt-project.org>

Subject: Re: [Qt-creator] What are your favorite clang-tidy checks


I tend to go back and forth between turning it off so that code completion actually completes in a reasonable amount of time (~1 second) or having all the helpful insights into my code base. It is almost like QtCreator needs to have 2 threads running. One for the code completion and one for the clang-tidy stuff.



--

Mike Jackson



On 6/13/18, 3:44 AM, "Qt-creator on behalf of Ivan Donchevskii" <qt-creator-bounces+mike.jackson=***@qt-project.org<mailto:qt-creator-bounces+mike.jackson=***@qt-project.org> on behalf of ***@qt.io<mailto:***@qt.io>> wrote:



Hi!



On the contributors summit I mentioned that we want to introduce the "default" set of flags for Clang-Tidy which can be used as a starting point for analysis and is good enough for some random project developed in Qt Creator.

We have an example of it in https://codereview.qt-project.org/#/c/230400/ but not sure if it is actually the proper list.



Here's the list itself - "bugprone-*,cppcoreguidelines-*,misc-*,modernize-*,performance-*,readability-*,-cppcoreguidelines-owning-memory,-readability-braces-around-statements,-readability-implicit-bool-conversion,-readability-named-parameter"



Let us know if there's something you would like to add or remove from it. You can check the whole tree of currently available checks in 4.7 beta or in one of our latest Qt Creator snapshots.



Kind regards,

Ivan

_______________________________________________ Qt-creator mailing list Qt-***@qt-project.org<mailto:Qt-***@qt-project.org> http://lists.qt-project.org/mailman/listinfo/qt-creator
Vadim Peretokin
2018-06-14 17:23:48 UTC
Permalink
Excellent.

As for the default, I'm not that experienced with all the flags, but the
ones you pick will influence a sizeable portion of Qt code in the future :)

On Thu, Jun 14, 2018 at 6:55 PM Ivan Donchevskii <***@qt.io>
wrote:

> Yes, there are checkboxes for fix-its so you can apply selected ones.
>
> ------------------------------
> *From:* Vadim Peretokin <***@gmail.com>
> *Sent:* Thursday, June 14, 2018 6:42 PM
> *To:* Ivan Donchevskii
> *Cc:* Michael Jackson; qt-***@qt-project.org
>
> *Subject:* Re: [Qt-creator] What are your favorite clang-tidy checks
> That's a great addition! Can it also run fixits?
>
> On Thu, 14 Jun 2018, 6:10 pm Ivan Donchevskii, <***@qt.io>
> wrote:
>
> In Qt Creator 4.7 there's a separate tool (Analyze menu) that runs
> Clang-Tidy checks over the selected files which does not affect your opened
> documents. I hope it solves your problem at least partially :)
> ------------------------------
> *From:* Qt-creator <qt-creator-bounces+ivan.donchevskii=
> ***@qt-project.org> on behalf of Michael Jackson <
> ***@bluequartz.net>
> *Sent:* Thursday, June 14, 2018 6:03:37 PM
> *To:* qt-***@qt-project.org
>
> *Subject:* Re: [Qt-creator] What are your favorite clang-tidy checks
>
>
> I tend to go back and forth between turning it off so that code completion
> actually completes in a reasonable amount of time (~1 second) or having all
> the helpful insights into my code base. It is almost like QtCreator needs
> to have 2 threads running. One for the code completion and one for the
> clang-tidy stuff.
>
>
>
> --
>
> Mike Jackson
>
>
>
> On 6/13/18, 3:44 AM, "Qt-creator on behalf of Ivan Donchevskii" <
> qt-creator-bounces+mike.jackson=***@qt-project.org on behalf
> of ***@qt.io> wrote:
>
>
>
> Hi!
>
>
>
> On the contributors summit I mentioned that we want to introduce the
> "default" set of flags for Clang-Tidy which can be used as a starting point
> for analysis and is good enough for some random project developed in Qt
> Creator.
>
> We have an example of it in https://codereview.qt-project.org/#/c/230400/ but
> not sure if it is actually the proper list.
>
>
>
> Here's the list itself
> - "bugprone-*,cppcoreguidelines-*,misc-*,modernize-*,performance-*,readability-*,-cppcoreguidelines-owning-memory,-readability-braces-around-statements,-readability-implicit-bool-conversion,-readability-named-parameter"
>
>
>
> Let us know if there's something you would like to add or remove from it.
> You can check the whole tree of currently available checks in 4.7 beta or
> in one of our latest Qt Creator snapshots.
>
>
>
> Kind regards,
>
> Ivan
>
> _______________________________________________ Qt-creator mailing list
> Qt-***@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
> _______________________________________________
> Qt-creator mailing list
> Qt-***@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>
>
Michael Jackson
2018-06-14 21:19:36 UTC
Permalink
Can I just have it blanket fix ALL issues that it finds in a file? Kind of like “Clang Format” but for Clang-Tidy? I have been toying with writing a script that would attempt to do that for our code base.



I guess I should download the latest QtCreator and give that a spin.

--

Mike Jackson



On 6/14/18, 12:55 PM, "Ivan Donchevskii" <***@qt.io> wrote:



Yes, there are checkboxes for fix-its so you can apply selected ones.



From: Vadim Peretokin <***@gmail.com>
Sent: Thursday, June 14, 2018 6:42 PM
To: Ivan Donchevskii
Cc: Michael Jackson; qt-***@qt-project.org
Subject: Re: [Qt-creator] What are your favorite clang-tidy checks



That's a great addition! Can it also run fixits?

On Thu, 14 Jun 2018, 6:10 pm Ivan Donchevskii, <***@qt.io> wrote:

In Qt Creator 4.7 there's a separate tool (Analyze menu) that runs Clang-Tidy checks over the selected files which does not affect your opened documents. I hope it solves your problem at least partially :)

From: Qt-creator <qt-creator-bounces+ivan.donchevskii=***@qt-project.org> on behalf of Michael Jackson <***@bluequartz.net>
Sent: Thursday, June 14, 2018 6:03:37 PM
To: qt-***@qt-project.org


Subject: Re: [Qt-creator] What are your favorite clang-tidy checks



I tend to go back and forth between turning it off so that code completion actually completes in a reasonable amount of time (~1 second) or having all the helpful insights into my code base. It is almost like QtCreator needs to have 2 threads running. One for the code completion and one for the clang-tidy stuff.



--

Mike Jackson



On 6/13/18, 3:44 AM, "Qt-creator on behalf of Ivan Donchevskii" <qt-creator-bounces+mike.jackson=***@qt-project.org on behalf of ***@qt.io> wrote:



Hi!



On the contributors summit I mentioned that we want to introduce the "default" set of flags for Clang-Tidy which can be used as a starting point for analysis and is good enough for some random project developed in Qt Creator.

We have an example of it in https://codereview.qt-project.org/#/c/230400/ but not sure if it is actually the proper list.



Here's the list itself - "bugprone-*,cppcoreguidelines-*,misc-*,modernize-*,performance-*,readability-*,-cppcoreguidelines-owning-memory,-readability-braces-around-statements,-readability-implicit-bool-conversion,-readability-named-parameter"



Let us know if there's something you would like to add or remove from it. You can check the whole tree of currently available checks in 4.7 beta or in one of our latest Qt Creator snapshots.



Kind regards,

Ivan

_______________________________________________ Qt-creator mailing list Qt-***@qt-project.org http://lists.qt-project.org/mailman/listinfo/qt-creator
Eike Ziller
2018-06-15 07:40:34 UTC
Permalink
In 4.7 the code completion should also no longer be slowed down by the checks. So it would be great if you could check that out :)

Br, Eike

> On 14. Jun 2018, at 23:19, Michael Jackson <***@bluequartz.net> wrote:
>
> Can I just have it blanket fix ALL issues that it finds in a file? Kind of like “Clang Format” but for Clang-Tidy? I have been toying with writing a script that would attempt to do that for our code base.
>
> I guess I should download the latest QtCreator and give that a spin.
> --
> Mike Jackson
>
> On 6/14/18, 12:55 PM, "Ivan Donchevskii" <***@qt.io> wrote:
>
> Yes, there are checkboxes for fix-its so you can apply selected ones.
>
>
> From: Vadim Peretokin <***@gmail.com>
> Sent: Thursday, June 14, 2018 6:42 PM
> To: Ivan Donchevskii
> Cc: Michael Jackson; qt-***@qt-project.org
> Subject: Re: [Qt-creator] What are your favorite clang-tidy checks
>
> That's a great addition! Can it also run fixits?
>
> On Thu, 14 Jun 2018, 6:10 pm Ivan Donchevskii, <***@qt.io> wrote:
>> In Qt Creator 4.7 there's a separate tool (Analyze menu) that runs Clang-Tidy checks over the selected files which does not affect your opened documents. I hope it solves your problem at least partially :)
>>
>> From: Qt-creator <qt-creator-bounces+ivan.donchevskii=***@qt-project.org> on behalf of Michael Jackson <***@bluequartz.net>
>> Sent: Thursday, June 14, 2018 6:03:37 PM
>> To: qt-***@qt-project.org
>>
>> Subject: Re: [Qt-creator] What are your favorite clang-tidy checks
>>
>> I tend to go back and forth between turning it off so that code completion actually completes in a reasonable amount of time (~1 second) or having all the helpful insights into my code base. It is almost like QtCreator needs to have 2 threads running. One for the code completion and one for the clang-tidy stuff.
>>
>> --
>> Mike Jackson
>>
>> On 6/13/18, 3:44 AM, "Qt-creator on behalf of Ivan Donchevskii" <qt-creator-bounces+mike.jackson=***@qt-project.org on behalf of ***@qt.io> wrote:
>>
>> Hi!
>>
>>
>>
>> On the contributors summit I mentioned that we want to introduce the "default" set of flags for Clang-Tidy which can be used as a starting point for analysis and is good enough for some random project developed in Qt Creator.
>>
>> We have an example of it in https://codereview.qt-project.org/#/c/230400/ but not sure if it is actually the proper list.
>>
>>
>>
>> Here's the list itself - "bugprone-*,cppcoreguidelines-*,misc-*,modernize-*,performance-*,readability-*,-cppcoreguidelines-owning-memory,-readability-braces-around-statements,-readability-implicit-bool-conversion,-readability-named-parameter"
>>
>>
>>
>> Let us know if there's something you would like to add or remove from it. You can check the whole tree of currently available checks in 4.7 beta or in one of our latest Qt Creator snapshots.
>>
>>
>>
>> Kind regards,
>>
>> Ivan
>>
>> _______________________________________________ Qt-creator mailing list Qt-***@qt-project.orghttp://lists.qt-project.org/mailman/listinfo/qt-creator
>> _______________________________________________
>> Qt-creator mailing list
>> Qt-***@qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/qt-creator
> _______________________________________________
> Qt-creator mailing list
> Qt-***@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator

--
Eike Ziller
Principal Software Engineer

The Qt Company GmbH
Rudower Chaussee 13
D-12489 Berlin
***@qt.io
http://qt.io
Geschäftsführer: Mika Pälsi,
Juha Varelius, Mika Harjuaho
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B
Michael Jackson
2018-06-15 15:07:56 UTC
Permalink
That is Great news. I'll pull it down when I get back from holiday. I really love/hate the clang-tidy checks. Love them because it is like having a really experienced C++ programmer looking over your shoulder the whole time. Hate them because it shows us just how many things we need to fix in our code base. With QtCreator 4.7 looks like I can turn them back on.

--
Mike Jackson


On 6/15/18, 3:40 AM, "Eike Ziller" <***@qt.io> wrote:

In 4.7 the code completion should also no longer be slowed down by the checks. So it would be great if you could check that out :)

Br, Eike

> On 14. Jun 2018, at 23:19, Michael Jackson <***@bluequartz.net> wrote:
>
> Can I just have it blanket fix ALL issues that it finds in a file? Kind of like “Clang Format” but for Clang-Tidy? I have been toying with writing a script that would attempt to do that for our code base.
>
> I guess I should download the latest QtCreator and give that a spin.
> --
> Mike Jackson
>
> On 6/14/18, 12:55 PM, "Ivan Donchevskii" <***@qt.io> wrote:
>
> Yes, there are checkboxes for fix-its so you can apply selected ones.
>
>
> From: Vadim Peretokin <***@gmail.com>
> Sent: Thursday, June 14, 2018 6:42 PM
> To: Ivan Donchevskii
> Cc: Michael Jackson; qt-***@qt-project.org
> Subject: Re: [Qt-creator] What are your favorite clang-tidy checks
>
> That's a great addition! Can it also run fixits?
>
> On Thu, 14 Jun 2018, 6:10 pm Ivan Donchevskii, <***@qt.io> wrote:
>> In Qt Creator 4.7 there's a separate tool (Analyze menu) that runs Clang-Tidy checks over the selected files which does not affect your opened documents. I hope it solves your problem at least partially :)
>>
>> From: Qt-creator <qt-creator-bounces+ivan.donchevskii=***@qt-project.org> on behalf of Michael Jackson <***@bluequartz.net>
>> Sent: Thursday, June 14, 2018 6:03:37 PM
>> To: qt-***@qt-project.org
>>
>> Subject: Re: [Qt-creator] What are your favorite clang-tidy checks
>>
>> I tend to go back and forth between turning it off so that code completion actually completes in a reasonable amount of time (~1 second) or having all the helpful insights into my code base. It is almost like QtCreator needs to have 2 threads running. One for the code completion and one for the clang-tidy stuff.
>>
>> --
>> Mike Jackson
>>
>> On 6/13/18, 3:44 AM, "Qt-creator on behalf of Ivan Donchevskii" <qt-creator-bounces+mike.jackson=***@qt-project.org on behalf of ***@qt.io> wrote:
>>
>> Hi!
>>
>>
>>
>> On the contributors summit I mentioned that we want to introduce the "default" set of flags for Clang-Tidy which can be used as a starting point for analysis and is good enough for some random project developed in Qt Creator.
>>
>> We have an example of it in https://codereview.qt-project.org/#/c/230400/ but not sure if it is actually the proper list.
>>
>>
>>
>> Here's the list itself - "bugprone-*,cppcoreguidelines-*,misc-*,modernize-*,performance-*,readability-*,-cppcoreguidelines-owning-memory,-readability-braces-around-statements,-readability-implicit-bool-conversion,-readability-named-parameter"
>>
>>
>>
>> Let us know if there's something you would like to add or remove from it. You can check the whole tree of currently available checks in 4.7 beta or in one of our latest Qt Creator snapshots.
>>
>>
>>
>> Kind regards,
>>
>> Ivan
>>
>> _______________________________________________ Qt-creator mailing list Qt-***@qt-project.orghttp://lists.qt-project.org/mailman/listinfo/qt-creator
>> _______________________________________________
>> Qt-creator mailing list
>> Qt-***@qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/qt-creator
> _______________________________________________
> Qt-creator mailing list
> Qt-***@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator

--
Eike Ziller
Principal Software Engineer

The Qt Company GmbH
Rudower Chaussee 13
D-12489 Berlin
***@qt.io
http://qt.io
Geschäftsführer: Mika Pälsi,
Juha Varelius, Mika Harjuaho
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B
Jason H
2018-06-18 14:08:56 UTC
Permalink
One thing I would like is a fix-it for a implicit conversion.
I'm old school and like the short, easy, old casts:
(type) x; (gives "use of old-style cast" message)
but the new style:
static_cast<double> (val)
is much harder to type. It's got _ and <> and I've got to edit behind the variable, which if in an argument list has be dodging commas.

If there was a way to click and use the new style, I'd use it.
Loading...