CMAKE__CLANG_TIDY

From Get docs
Cmake/docs/3.21/variable/cmake lang clang tidy


CMAKE__CLANG_TIDY

New in version 3.6.


Default value for _CLANG_TIDY target property when <LANG> is C, CXX, OBJC or OBJCXX.

This variable is used to initialize the property on each target as it is created. For example:

set(CMAKE_CXX_CLANG_TIDY clang-tidy -checks=-*,readability-*)
add_executable(foo foo.cxx)

© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/variable/CMAKE_LANG_CLANG_TIDY.html