ClangTidy
Clang-Tidy is a clang-based C/C++ linter and static analysis tool that is part of the LLVM project. It analyzes source code using Clang's libTooling and AST matchers to find bugs, coding style violations, and potential performance issues, and it can propose automatic fixes (fix-its).
The checks are grouped into modules such as readability, modernize, performance, portability, bugprone, and misc, and
Clang-Tidy operates on a compilation database, typically compile_commands.json, and can read an inline .clang-tidy configuration file
The checks are implemented as plugins within the clang-tidy framework and rely on Clang's AST to reason