mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 21:00:17 -06:00
Merge topic 'doc-tidy-example'
ae09bc774b Help: Add example to CMAKE_<LANG>_CLANG_TIDY
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2002
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
CMAKE_<LANG>_CLANG_TIDY
|
||||
-----------------------
|
||||
|
||||
Default value for :prop_tgt:`<LANG>_CLANG_TIDY` target property.
|
||||
Default value for :prop_tgt:`<LANG>_CLANG_TIDY` target property
|
||||
when ``<LANG>`` is ``C`` or ``CXX``.
|
||||
|
||||
This variable is used to initialize the property on each target as it is
|
||||
created. This is done only when ``<LANG>`` is ``C`` or ``CXX``.
|
||||
created. For example:
|
||||
|
||||
.. code-block:: cmake
|
||||
|
||||
set(CMAKE_CXX_CLANG_TIDY clang-tidy checks=-*,readability-*)
|
||||
add_executable(foo foo.cxx)
|
||||
|
||||
Reference in New Issue
Block a user