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 <qt-creator-boun...@qt-project.org> On Behalf Of Björn Schäpers
Sent: Montag, 7. Dezember 2020 22:19
To: qt-creator <qt-creator@qt-project.org>
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

Reply via email to