oranges_enable_iwyu¶
include (OrangesIWYU)
View the full docs for this module
.
oranges_enable_iwyu (<target> [EXTRA_ARGS <args...>] [LANGS <C|CXX>...])
Configures include-what-you-use for the given <target>
by manipulating the target’s
<LANG>_INCLUDE_WHAT_YOU_USE
properties.
If the IWYU_OFF
variable is set to ON
, this function does nothing.
Options:
EXTRA_ARGS
Extra arguments to pass to include-what-you-use verbatim. If not specified, the value of the
IWYU_EXTRA_ARGS
variable will be used.LANGS
Languages for which to enable include-what-you-use. Valid values are
C
orCXX
. If no languages are specified, this function will configure include-what-you-use for both valid languages.