Open invy opened 4 months ago
Just for confirmation, could you please run an analysis but pass --enable clang-diagnostic-deprecated
to CodeChecker analyze
? It should turn that diagnostic flag back on, and thus side-step the problem. The issue is that warning flags need to be transformed, otherwise Tidy will emit Sema-level diagnostics as-if (in format) they were Tidy checkers...
(The fact that warning flags potentially change the behaviour of the code is a whole other can of worms...)
Describe the bug After CodeChecker update I've been getting clang-diagnostic-errors reports by clang-tidy:
CodeChecker version CodeChecker Version 6.23.1
To Reproduce Steps to reproduce the behaviour:
To reproduce the behavior create add precompiled header into your cmake project:
Create CMake Projejct...
Scan/Analyze with clang-tidy enabled. (Standard options)
See error
Description I've looked into the warning flags, CodeChecker passes to the clang-tidy and found one in particular "-Wno-deprecated" The flag has a side-effect, it removes a preprocessor definition, __DEPRECATED, which was added in my CMake Project.
https://clang.llvm.org/docs/ClangCommandLineReference.html