Qt Creator 4.8.0 disable some clazy checks
-
Hi !
How to disable in creator some clazy checks, for example "non-pod-global-static" ?
Current level is "Level 1"
Ubuntu 16.04 -
I guess you mean the clang code model checks. They are explained in here
-
@koahnig not clang, but clazy
yes, i can disable some cheks in "clang", but cant in "clazy"
Ahh. Was interpreting this as a typing error :D
-
Late as usual to the party, but I ran into this as well just now and there's still no good resources on the 'net that I could find.
I managed to disable checks by running Tools > C++ > Analyze Current File. This opens a "Clang-tidy and Clazy" panel at the bottom. In the check diagnostics that show up (after it has run the analysis), it's possible to right-click and select "Disable This Check". So far, this seems to have solved it.
This is in Qt Creator 6.0.1.
-
You can also tweak things globally in Options dialog, Analyzer > Run Options > Clazy Checks: