Re: [Qt-creator] clang-tidy and clang-diagnostic-*
Am 08.12.2020 um 11:03 schrieb Christian Kandeler: clang-diagnostic-* is not part of that dialog Because it's not in the list of supported checks that we retrieve from the executable. Perhaps we should simply force-disable these checks, based on the assumptions that the genuine ones will be triggered by the code model and/or compiler anyway. Please file a bug report. Christian I've created a patch: https://codereview.qt-project.org/c/qt-creator/qt-creator/+/326659 ___ Qt-creator mailing list Qt-creator@qt-project.org https://lists.qt-project.org/listinfo/qt-creator
Re: [Qt-creator] clang-tidy and clang-diagnostic-*
> clang-diagnostic-* is not part of that dialog Because it's not in the list of supported checks that we retrieve from the executable. Perhaps we should simply force-disable these checks, based on the assumptions that the genuine ones will be triggered by the code model and/or compiler anyway. Please file a bug report. Christian From: Qt-creator on behalf of Björn Schäpers Sent: Tuesday, December 8, 2020 10:02 AM To: David Schulz; qt-creator Subject: Re: [Qt-creator] clang-tidy and clang-diagnostic-* Hi, that I know, but clang-diagnostic-* is not part of that dialog, as far as I understood clang-tidys documentation and the code the clang-diagnostics-* are different to the normal checks, as they are the normal clang warnings. There is the checkbox Use the Compiler Warnings, but that doesn't seem to have an effect. And as I said the warnings appear only in some files, in others where I also use inline variables or nested namespaces I get no warnings. Regards, Björn. Am 08.12.2020 um 06:31 schrieb David Schulz: > Hi, > > You can configure the checks under Tools > Options > Analyzer > Clang Tools > > Run Options > Diagnostic Configuration globally or if you want to change it > just for a single project you can also override these global settings under > Projects Mode > Project Settings > Clang Tools. > > Greetings > David > > -Original Message- > From: Qt-creator On Behalf Of Björn > Schäpers > Sent: Montag, 7. Dezember 2020 22:19 > To: qt-creator > Subject: [Qt-creator] clang-tidy and clang-diagnostic-* > > Hi, > > I've recently activated clang-tidy checks in the Creator. And now in some > files I get "clang-diagnostic-c++17-extensions" while the code model states > the Language Version is C++20 and the model itself does not warn. > > Is there a way to deactivate the clang-diagnostic category, since it is > already covered by the code model? > > Regards, > Björn. > ___ > Qt-creator mailing list > Qt-creator@qt-project.org > https://lists.qt-project.org/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@qt-project.org https://lists.qt-project.org/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@qt-project.org https://lists.qt-project.org/listinfo/qt-creator
Re: [Qt-creator] clang-tidy and clang-diagnostic-*
Hi, that I know, but clang-diagnostic-* is not part of that dialog, as far as I understood clang-tidys documentation and the code the clang-diagnostics-* are different to the normal checks, as they are the normal clang warnings. There is the checkbox Use the Compiler Warnings, but that doesn't seem to have an effect. And as I said the warnings appear only in some files, in others where I also use inline variables or nested namespaces I get no warnings. Regards, Björn. Am 08.12.2020 um 06:31 schrieb David Schulz: Hi, You can configure the checks under Tools > Options > Analyzer > Clang Tools > Run Options > Diagnostic Configuration globally or if you want to change it just for a single project you can also override these global settings under Projects Mode > Project Settings > Clang Tools. Greetings David -Original Message- From: Qt-creator On Behalf Of Björn Schäpers Sent: Montag, 7. Dezember 2020 22:19 To: qt-creator Subject: [Qt-creator] clang-tidy and clang-diagnostic-* Hi, I've recently activated clang-tidy checks in the Creator. And now in some files I get "clang-diagnostic-c++17-extensions" while the code model states the Language Version is C++20 and the model itself does not warn. Is there a way to deactivate the clang-diagnostic category, since it is already covered by the code model? Regards, Björn. ___ Qt-creator mailing list Qt-creator@qt-project.org https://lists.qt-project.org/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@qt-project.org https://lists.qt-project.org/listinfo/qt-creator
Re: [Qt-creator] clang-tidy and clang-diagnostic-*
Hi, You can configure the checks under Tools > Options > Analyzer > Clang Tools > Run Options > Diagnostic Configuration globally or if you want to change it just for a single project you can also override these global settings under Projects Mode > Project Settings > Clang Tools. Greetings David -Original Message- From: Qt-creator On Behalf Of Björn Schäpers Sent: Montag, 7. Dezember 2020 22:19 To: qt-creator Subject: [Qt-creator] clang-tidy and clang-diagnostic-* Hi, I've recently activated clang-tidy checks in the Creator. And now in some files I get "clang-diagnostic-c++17-extensions" while the code model states the Language Version is C++20 and the model itself does not warn. Is there a way to deactivate the clang-diagnostic category, since it is already covered by the code model? Regards, Björn. ___ Qt-creator mailing list Qt-creator@qt-project.org https://lists.qt-project.org/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@qt-project.org https://lists.qt-project.org/listinfo/qt-creator
[Qt-creator] clang-tidy and clang-diagnostic-*
Hi, I've recently activated clang-tidy checks in the Creator. And now in some files I get "clang-diagnostic-c++17-extensions" while the code model states the Language Version is C++20 and the model itself does not warn. Is there a way to deactivate the clang-diagnostic category, since it is already covered by the code model? Regards, Björn. ___ Qt-creator mailing list Qt-creator@qt-project.org https://lists.qt-project.org/listinfo/qt-creator