LANG_CLANG_TIDY.rst 512 B

12345678910111213
  1. <LANG>_CLANG_TIDY
  2. -----------------
  3. This property is implemented only when ``<LANG>`` is ``C`` or ``CXX``.
  4. Specify a :ref:`;-list <CMake Language Lists>` containing a command
  5. line for the ``clang-tidy`` tool. The :ref:`Makefile Generators`
  6. and the :generator:`Ninja` generator will run this tool along with the
  7. compiler and report a warning if the tool reports any problems.
  8. This property is initialized by the value of
  9. the :variable:`CMAKE_<LANG>_CLANG_TIDY` variable if it is set
  10. when a target is created.