LANG_CPPLINT.rst 1.0 KB

1234567891011121314151617181920212223242526272829
  1. <LANG>_CPPLINT
  2. --------------
  3. .. versionadded:: 3.8
  4. This property is supported only when ``<LANG>`` is ``C`` or ``CXX``.
  5. Specify a :ref:`semicolon-separated list <CMake Language Lists>` containing a command line
  6. for the ``cpplint`` style checker. The :ref:`Makefile Generators` and the
  7. :generator:`Ninja` generator will run ``cpplint`` along with the compiler
  8. and report any problems.
  9. This property is initialized by the value of the
  10. :variable:`CMAKE_<LANG>_CPPLINT` variable if it is set when a target is
  11. created.
  12. .. versionadded:: 3.27
  13. This property supports
  14. :manual:`generator expressions <cmake-generator-expressions(7)>`.
  15. .. versionadded:: 3.27
  16. :prop_sf:`SKIP_LINTING` can be set on individual source files to exclude
  17. them from the linting tools defined by ``<LANG>_CPPLINT``,
  18. :prop_tgt:`<LANG>_CLANG_TIDY`, :prop_tgt:`<LANG>_CPPCHECK`, and
  19. :prop_tgt:`<LANG>_INCLUDE_WHAT_YOU_USE`. When :prop_sf:`SKIP_LINTING` is
  20. set to true on a source file, those tools will not be run on that specific
  21. file.