| Issue |
64714
|
| Summary |
Clang-tidy: [Documentation] CMake integration
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
JVApen
|
According to [a post on Reddit](https://www.reddit.com/r/cpp/comments/15ru8gs/no_c_static_analysis_does_not_have_to_be_painful/jwbbizk) it ain't easy to know how to integrate clang-tidy into CMake. There is a variable for it, see https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_CLANG_TIDY.html Though the discovery of it ain't easy.
In meson there is a default clang-tidy target. I haven't checked other systems.
Given that https://clang.llvm.org/extra/clang-tidy/ already contains a link with all IDEs clang-tidy is integrated, having documentation on how to integrate with common build systems ain't far-fetched. Especially as most of those IDEs also have integration with CMake.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs