Clang Tidy from VS2015 using CMake
In this post I show how to use clang-tidy from within VS2015. The prerequisites are that you must be using CMake to generate your project. During the install of CMake I checked the option to add CMake to my PATH environment variable. I also installed Clang and added it to the PATH environment variable as well. Finally, get Ninja and put it in some directory. Ninja is needed because when I tried to use Visual Studio 14 2015 Win64 for the G option, CMake kept switching the compiler to cl.