diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-04-08 20:09:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-04-13 13:56:10 (GMT) |
commit | 5e62444cff5ead280a111c116a3fe810181379cf (patch) | |
tree | 83764d54d99f246c011defdd49e0ccfa658f8fd6 /Help/prop_tgt | |
parent | 9ac11bc25d6b9f5e7db786034f922d96613e6143 (diff) | |
download | CMake-5e62444cff5ead280a111c116a3fe810181379cf.zip CMake-5e62444cff5ead280a111c116a3fe810181379cf.tar.gz CMake-5e62444cff5ead280a111c116a3fe810181379cf.tar.bz2 |
Add options to run clang-tidy with the compiler
Create a <LANG>_CLANG_TIDY target property (initialized by a
CMAKE_<LANG>_CLANG_TIDY variable) to specify a clang-tidy command line
to be run along with the compiler.
Diffstat (limited to 'Help/prop_tgt')
-rw-r--r-- | Help/prop_tgt/LANG_CLANG_TIDY.rst | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Help/prop_tgt/LANG_CLANG_TIDY.rst b/Help/prop_tgt/LANG_CLANG_TIDY.rst new file mode 100644 index 0000000..2887e23 --- /dev/null +++ b/Help/prop_tgt/LANG_CLANG_TIDY.rst @@ -0,0 +1,13 @@ +<LANG>_CLANG_TIDY +----------------- + +This property is implemented only when ``<LANG>`` is ``C`` or ``CXX``. + +Specify a :ref:`;-list <CMake Language Lists>` containing a command +line for the ``clang-tidy`` tool. The :ref:`Makefile Generators` +and the :generator:`Ninja` generator will run this tool along with the +compiler and report a warning if the tool reports any problems. + +This property is initialized by the value of +the :variable:`CMAKE_<LANG>_CLANG_TIDY` variable if it is set +when a target is created. |