You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Read blogs and played around with [CMAKE_CXX_CLANG_TIDY](https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_CLANG_TIDY.html).
Also read source code to understand the clang-tidy config of chromium, llvm and other projects.
We can provide complete context including headers to the clang-tidy tool for static analyzer by running it while building the code.
This also makes static analysis first-class citizen of the project, reporting errors before making commits.
For example, `misc-internal-linkage` check was reporting mostly false positives prior to this. With this, it also considered the headers,
where methods/functions were declared constant. Refer #1752
And we should also incrementally add the checks.
Signed-off-by: Balakrishna Avulapati <ba@bavulapati.com>
0 commit comments