INCLUDE-WHAT-YOU-USE(1) | User Commands | INCLUDE-WHAT-YOU-USE(1) |
include-what-you-use - Analyze #includes in C and C++ source files
USAGE: include-what-you-use [-Xiwyu --iwyu_opt]... <clang opts> <source file> Here are the <iwyu_opts> you can specify (e.g. -Xiwyu --verbose=3):
--check_also=<glob>: tells iwyu to print iwyu-violation info
--cwd=<dir>: tells iwyu what the current working directory is.
--howtodebug[=<filename>]: with no arg, prints instructions on
--mapping_file=<filename>: gives iwyu a mapping file.
--no_default_mappings: do not add iwyu's default mappings.
--pch_in_code: mark the first include in a translation unit as a
--prefix_header_includes=<value>: tells iwyu what to do with
--transitive_includes_only: do not suggest that a file add
--max_line_length: maximum line length for includes.
--no_comments: do not add 'why' comments.
--no_fwd_decls: do not use forward declarations.
--verbose=<level>: the higher the level, the more output.
--quoted_includes_first: when sorting includes, place quoted
In addition to IWYU-specific options you can specify the following options without -Xiwyu prefix:
--help: prints this help and exits.
--version: prints version and exits.
January 2019 | include-what-you-use 7.0-3 |