summaryrefslogtreecommitdiffstats
path: root/Help/variable/CMAKE_LANG_CLANG_TIDY.rst
blob: 32e27b0ad005740f95936a44671903c1a727e796 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)