clang-tidy

An LLVM-based C/C++ linter to find style violations, bugs and security flaws through static analysis. More information: https://clang.llvm.org/extra/clang-tidy/.

clang-tidy path/to/file.cpp

clang-tidy path/to/file.cpp -checks=-*,cppcoreguidelines-*

clang-tidy -checks=* -list-checks

clang-tidy path/to/file.cpp -- -Imy_project/include -Ddefinitions