diff options
author | Jamie Snape <jamie.snape@kitware.com> | 2017-01-23 19:47:13 (GMT) |
---|---|---|
committer | Jamie Snape <jamie.snape@kitware.com> | 2017-01-23 19:47:13 (GMT) |
commit | 0618ddf6b1da3a886f12b6ad2b19da49b2f87e28 (patch) | |
tree | adb7c502f13bd571ff192e644de923f195b8fc81 /Help/prop_tgt | |
parent | 7b4514fb33cf256ef165b2b28ba4affd1930a957 (diff) | |
download | CMake-0618ddf6b1da3a886f12b6ad2b19da49b2f87e28.zip CMake-0618ddf6b1da3a886f12b6ad2b19da49b2f87e28.tar.gz CMake-0618ddf6b1da3a886f12b6ad2b19da49b2f87e28.tar.bz2 |
Add properties to run the cpplint style checker with the compiler
Create a `<LANG>_CPPLINT` target property (initialized by a
`CMAKE_<LANG>_CPPLINT` variable) to specify a `cpplint` style checker
command line to be run along with the compiler.
Diffstat (limited to 'Help/prop_tgt')
-rw-r--r-- | Help/prop_tgt/LANG_CPPLINT.rst | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Help/prop_tgt/LANG_CPPLINT.rst b/Help/prop_tgt/LANG_CPPLINT.rst new file mode 100644 index 0000000..14f47d4 --- /dev/null +++ b/Help/prop_tgt/LANG_CPPLINT.rst @@ -0,0 +1,13 @@ +<LANG>_CPPLINT +-------------- + +This property is supported only when ``<LANG>`` is ``C`` or ``CXX``. + +Specify a :ref:`;-list <CMake Language Lists>` containing a command line +for the ``cpplint`` style checker. The :ref:`Makefile Generators` and the +:generator:`Ninja` generator will run ``cpplint`` along with the compiler +and report any problems. + +This property is initialized by the value of the +:variable:`CMAKE_<LANG>_CPPLINT` variable if it is set when a target is +created. |