https://github.com/Kitware/CMake
Raw File
Tip revision: 28a033cc7de056d1a74857606397bb294ebe27ac authored by Brad King on 28 October 2021, 13:46:08 UTC
CMake 3.22.0-rc2
Tip revision: 28a033c
CMAKE_LANG_CLANG_TIDY.rst
CMAKE_<LANG>_CLANG_TIDY
-----------------------

.. versionadded:: 3.6

Default value for :prop_tgt:`<LANG>_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:

.. code-block:: cmake

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