From ae09bc774be73def29e9878e28db9fa4cff53204 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 24 Apr 2018 09:55:01 -0400 Subject: Help: Add example to CMAKE__CLANG_TIDY Fixes: #16869 --- Help/variable/CMAKE_LANG_CLANG_TIDY.rst | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Help/variable/CMAKE_LANG_CLANG_TIDY.rst b/Help/variable/CMAKE_LANG_CLANG_TIDY.rst index 492c12c..d1fccbb 100644 --- a/Help/variable/CMAKE_LANG_CLANG_TIDY.rst +++ b/Help/variable/CMAKE_LANG_CLANG_TIDY.rst @@ -1,6 +1,13 @@ CMAKE__CLANG_TIDY ----------------------- -Default value for :prop_tgt:`_CLANG_TIDY` target property. +Default value for :prop_tgt:`_CLANG_TIDY` target property +when ```` is ``C`` or ``CXX``. + This variable is used to initialize the property on each target as it is -created. This is done only when ```` is ``C`` or ``CXX``. +created. For example: + +.. code-block:: cmake + + set(CMAKE_CXX_CLANG_TIDY clang-tidy checks=-*,readability-*) + add_executable(foo foo.cxx) -- cgit v0.12