While clang-tidy support is broken for cmake/ninja (see D8503 for details) the built in support in the VS IDE actually works remarkably well.
This diff adds support for clang-tidy support inside the Visual Studio IDE. It currently does *NOT* run automatically when you build blender, you have to right click the project you want to check and run the analyser manually.
The reason for this is two fold:
- By default we setup clang-tidy to fail on warning and there are *A LOT* of warnings.
- It adds an unreasonably long time to a full build.
Requirements: VS 16.4+