clang-cl + clang-tidy bug
https://discourse.cmake.org/t/clang-tidy-passing-incorrect-arguments-on-windows/1123
Here is a link to the discourse.
Essentially clang-cl uses -std:c++17 However, clang-tidy expects -std=c++17
I can provide a project where this problem occurs if necessary.
But here is what you have to do:
Use clang-cl (clang on windows)
setup CMAKE_CXX_CLANG_TIDY. The arguments don't really matter.
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
Cmake will attempt to run clang-tidy but fail.