In general I don't understand why CMake provides a separate integration for
each tool (_CLANG_TIDY _COMPILER_LAUNCHER _CPPCHECK
_CPPLINT _INCLUDE_WHAT_YOU_USE),
But a generic solution is not provided (or not documented clearly? )
вт, 31 июл. 2018 г. в 9:47, Roman Popov :
> After day of
After day of googling I've found a solution that almost works for me.
There is a CXX_CLANG_TIDY property that enables clang-tidy on a target.
https://cmake.org/cmake/help/v3.12/prop_tgt/LANG_CLANG_TIDY.html
But I can replace clang-tidy with my own Clang-based tool:
set(CLANG_TIDY_EXE