broker
broker copied to clipboard
Add clang-tidy to CI with an initial set of checks
This PR adds clang-tidy to our CI pipeline with bugprone-* and clang-analyzer-* checks (plus fixes for the findings) as initial set of checks. To make the PRs easier to review, I leave it at those first two categories and enable more checks in future PRs (already working on enabling performance-* checks).
I've also added a CMake option (with configure switch) to have clang-tidy run during development (slows down the build quite a bit).
Relates #249. 🙂