cmake/Help/variable/CMAKE_LANG_CLANG_TIDY.rst

16 lines
410 B
ReStructuredText
Raw Normal View History

2016-07-09 11:21:54 +02:00
CMAKE_<LANG>_CLANG_TIDY
-----------------------
2021-09-14 00:13:48 +02:00
.. versionadded:: 3.6
2018-08-09 18:06:22 +02:00
Default value for :prop_tgt:`<LANG>_CLANG_TIDY` target property
2021-09-14 00:13:48 +02:00
when ``<LANG>`` is ``C``, ``CXX``, ``OBJC`` or ``OBJCXX``.
2018-08-09 18:06:22 +02:00
2016-07-09 11:21:54 +02:00
This variable is used to initialize the property on each target as it is
2018-08-09 18:06:22 +02:00
created. For example:
.. code-block:: cmake
2018-10-07 12:27:06 +02:00
set(CMAKE_CXX_CLANG_TIDY clang-tidy -checks=-*,readability-*)
2018-08-09 18:06:22 +02:00
add_executable(foo foo.cxx)