[Qt-creator] clang-tidy and clang-diagnostic-*
Christian.Kandeler at qt.io
Tue Dec 8 11:03:26 CET 2020
> 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.
From: Qt-creator <qt-creator-bounces at qt-project.org> on behalf of Björn Schäpers <qt-maillist at hazardy.de>
Sent: Tuesday, December 8, 2020 10:02 AM
To: David Schulz; qt-creator
Subject: Re: [Qt-creator] clang-tidy and clang-diagnostic-*
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.
Am 08.12.2020 um 06:31 schrieb David Schulz:
> 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.
> -----Original Message-----
> From: Qt-creator <qt-creator-bounces at qt-project.org> On Behalf Of Björn Schäpers
> Sent: Montag, 7. Dezember 2020 22:19
> To: qt-creator <qt-creator at qt-project.org>
> Subject: [Qt-creator] clang-tidy and clang-diagnostic-*
> 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?
> Qt-creator mailing list
> Qt-creator at qt-project.org
Qt-creator mailing list
Qt-creator at qt-project.org
More information about the Qt-creator