Hacker News new | ask | show | jobs
by caleb-troyer 749 days ago
Clang-tidy[0] supports a good set of them (cppcoreguidelines- prefix). It supports extending the checks too with your own checks that operate over the AST[1], so if there are extra guidelines internal to your company like mine has, there's room for extension there. For automation, I've seen a few examples of people integrating clang-tidy into IDEs, git hooks, and code review systems.

[0] https://clang.llvm.org/extra/clang-tidy/

[1] https://github.com/coveooss/clang-tidy-plugin-examples