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
--keep=<glob>: tells iwyu to always keep these includes.
--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.
--update_comments: always add 'why' comments, even if no
--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
--cxx17ns: suggests the more concise syntax introduced in C++17
--error[=N]: exit with N (default: 1) for iwyu violations
--error_always[=N]: always exit with N (default: 1) (for use
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.
August 2022 | include-what-you-use 8.18-2 |