LANG_INCLUDE_WHAT_YOU_USE.rst 1.1 KB

1234567891011121314151617181920212223242526272829
  1. <LANG>_INCLUDE_WHAT_YOU_USE
  2. ---------------------------
  3. .. versionadded:: 3.3
  4. This property is implemented only when ``<LANG>`` is ``C`` or ``CXX``.
  5. Specify a :ref:`semicolon-separated list <CMake Language Lists>` containing a command
  6. line for the ``include-what-you-use`` tool. The :ref:`Makefile Generators`
  7. and the :generator:`Ninja` generator will run this tool along with the
  8. compiler and report a warning if the tool reports any problems.
  9. This property is initialized by the value of
  10. the :variable:`CMAKE_<LANG>_INCLUDE_WHAT_YOU_USE` variable if it is set
  11. when a target is 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 :prop_tgt:`<LANG>_CPPLINT`,
  18. :prop_tgt:`<LANG>_CLANG_TIDY`, :prop_tgt:`<LANG>_CPPCHECK`, and
  19. ``<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.