Codechecker adding '-Wno-deprecated' causes clang-tidy to fail, when used with precompiled headers #4183
Labels
analyzer 📈
Related to the analyze commands (analysis driver)
clang-tidy 🐉
clang-tidy is a clang-based C++ “linter” tool.
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:
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
The text was updated successfully, but these errors were encountered: