Improve Clang-Tidy check
Clang-Tidy can be invoked by adding
set(CMAKE_CXX_CLANG_TIDY
clang-tidy)
to CMakeLists.txt
.
This is better than the current solution, which doesn't recognize correct syntax. The current solution could be improved by adding these flags (not sure, I have quickly tried to do that, but with no success), but why duplicate these flags when we can invoke it with CMake?
The first step, however, is to fix the current errors or tune in the checks we want to care about.