af16d3c5bdb6ba5a37ae497c02fe3f526a3a6f84
[platform/upstream/cmake.git] / Help / prop_tgt / LANG_CLANG_TIDY.rst
1 <LANG>_CLANG_TIDY
2 -----------------
3
4 .. versionadded:: 3.6
5
6 This property is implemented only when ``<LANG>`` is ``C``, ``CXX``, ``OBJC`` or ``OBJCXX``.
7
8 Specify a :ref:`semicolon-separated list <CMake Language Lists>` containing a command
9 line for the ``clang-tidy`` tool.  The :ref:`Makefile Generators`
10 and the :generator:`Ninja` generator will run this tool along with the
11 compiler and report a warning if the tool reports any problems.
12
13 This property is initialized by the value of
14 the :variable:`CMAKE_<LANG>_CLANG_TIDY` variable if it is set
15 when a target is created.