summaryrefslogtreecommitdiffstats
path: root/Help/prop_tgt
diff options
context:
space:
mode:
authorOrkun Tokdemir <ilhanorkuntokdemir@gmail.com>2023-05-12 14:49:03 (GMT)
committerBrad King <brad.king@kitware.com>2023-05-16 14:47:56 (GMT)
commitb480315e0c229454c335290b19cc689930d7849f (patch)
treefd6c95e7d53d4a9c095947ba7cd718e0ce1ae60f /Help/prop_tgt
parent993dde925f208d98c68edcd451b0d6979e0abdd4 (diff)
downloadCMake-b480315e0c229454c335290b19cc689930d7849f.zip
CMake-b480315e0c229454c335290b19cc689930d7849f.tar.gz
CMake-b480315e0c229454c335290b19cc689930d7849f.tar.bz2
TargetGenerator: Add SKIP_LINTING source property
The `SKIP_LINTING` source property was added to disable code check for desired source files. The `SKIP_LINTING`includes `cpplint`, `clang-tidy`, \ `cppcheck` and `include-what-you-use`. If `SKIP_LINTING` is set on a source file, the tools mentioned above will not be run on that source file.
Diffstat (limited to 'Help/prop_tgt')
-rw-r--r--Help/prop_tgt/LANG_CLANG_TIDY.rst7
-rw-r--r--Help/prop_tgt/LANG_CPPCHECK.rst7
-rw-r--r--Help/prop_tgt/LANG_CPPLINT.rst7
-rw-r--r--Help/prop_tgt/LANG_INCLUDE_WHAT_YOU_USE.rst7
4 files changed, 28 insertions, 0 deletions
diff --git a/Help/prop_tgt/LANG_CLANG_TIDY.rst b/Help/prop_tgt/LANG_CLANG_TIDY.rst
index 1e10933..0e46643 100644
--- a/Help/prop_tgt/LANG_CLANG_TIDY.rst
+++ b/Help/prop_tgt/LANG_CLANG_TIDY.rst
@@ -30,3 +30,10 @@ when a target is created.
This property supports
:manual:`generator expressions <cmake-generator-expressions(7)>`.
+
+ :prop_sf:`SKIP_LINTING` can be set on individual source files to exclude
+ them from the linting process, which includes tools like
+ :prop_tgt:`<LANG>_CPPLINT`, :prop_tgt:`<LANG>_CLANG_TIDY`,
+ :prop_tgt:`<LANG>_CPPCHECK`, and :prop_tgt:`<LANG>_INCLUDE_WHAT_YOU_USE`.
+ When :prop_sf:`SKIP_LINTING` is set on a source file, the mentioned tools
+ will not be run on that specific file.
diff --git a/Help/prop_tgt/LANG_CPPCHECK.rst b/Help/prop_tgt/LANG_CPPCHECK.rst
index 0b2dee6..3ab2b58 100644
--- a/Help/prop_tgt/LANG_CPPCHECK.rst
+++ b/Help/prop_tgt/LANG_CPPCHECK.rst
@@ -20,3 +20,10 @@ created.
This property supports
:manual:`generator expressions <cmake-generator-expressions(7)>`.
+
+ :prop_sf:`SKIP_LINTING` can be set on individual source files to exclude
+ them from the linting process, which includes tools like
+ :prop_tgt:`<LANG>_CPPLINT`, :prop_tgt:`<LANG>_CLANG_TIDY`,
+ :prop_tgt:`<LANG>_CPPCHECK`, and :prop_tgt:`<LANG>_INCLUDE_WHAT_YOU_USE`.
+ When :prop_sf:`SKIP_LINTING` is set on a source file, the mentioned tools
+ will not be run on that specific file.
diff --git a/Help/prop_tgt/LANG_CPPLINT.rst b/Help/prop_tgt/LANG_CPPLINT.rst
index 38a1669..cb230d3 100644
--- a/Help/prop_tgt/LANG_CPPLINT.rst
+++ b/Help/prop_tgt/LANG_CPPLINT.rst
@@ -18,3 +18,10 @@ created.
This property supports
:manual:`generator expressions <cmake-generator-expressions(7)>`.
+
+ :prop_sf:`SKIP_LINTING` can be set on individual source files to exclude
+ them from the linting process, which includes tools like
+ :prop_tgt:`<LANG>_CPPLINT`, :prop_tgt:`<LANG>_CLANG_TIDY`,
+ :prop_tgt:`<LANG>_CPPCHECK`, and :prop_tgt:`<LANG>_INCLUDE_WHAT_YOU_USE`.
+ When :prop_sf:`SKIP_LINTING` is set on a source file, the mentioned tools
+ will not be run on that specific file.
diff --git a/Help/prop_tgt/LANG_INCLUDE_WHAT_YOU_USE.rst b/Help/prop_tgt/LANG_INCLUDE_WHAT_YOU_USE.rst
index 19b97f7..8fbe84a 100644
--- a/Help/prop_tgt/LANG_INCLUDE_WHAT_YOU_USE.rst
+++ b/Help/prop_tgt/LANG_INCLUDE_WHAT_YOU_USE.rst
@@ -18,3 +18,10 @@ when a target is created.
This property supports
:manual:`generator expressions <cmake-generator-expressions(7)>`.
+
+ :prop_sf:`SKIP_LINTING` can be set on individual source files to exclude
+ them from the linting process, which includes tools like
+ :prop_tgt:`<LANG>_CPPLINT`, :prop_tgt:`<LANG>_CLANG_TIDY`,
+ :prop_tgt:`<LANG>_CPPCHECK`, and :prop_tgt:`<LANG>_INCLUDE_WHAT_YOU_USE`.
+ When :prop_sf:`SKIP_LINTING` is set on a source file, the mentioned tools
+ will not be run on that specific file.