NAME
iwyu-filter —
filter include-what-you-use
output
SYNOPSIS
iwyu-filter |
[-q] [-a
ignore] [-d
ignore] [-D
macro] [-I
path] file ... |
DESCRIPTION
The iwyu-filter utility invokes
include-what-you-use and filters its output, allowing proposed additions and
removals of header includes to be ignored.
The options are as follows:
-q- Quiet mode, suppress warnings regarding unused filter arguments.
-aignore- Ignore proposed addition of including a header,
ignore must be one of the following:
- header-path
- Unconditionally ignore proposal to include the header identified by header-path which is interpreted as a fnmatch(3) pattern.
- path:header-path
- Only ignore proposal to include the header identified by header-path in the source file located at path. Both header-path and path are interpreted as fnmatch(3) patterns.
-dignore- Ignore proposed removal of including header, see interpretation of ignore above.
-Dmacro- Preprocessor argument passed as is to include-what-you-use.
-Ipath- Preprocessor argument passed as is to include-what-you-use.
EXAMPLES
Ignore proposed removal of including sys/types.h in main.c.
iwyu-filter -d main.c:sys/types.h -- *.c
DIAGNOSTICS
The iwyu-filter utility exits 0 on
success, and >0 if an error occurs.
AUTHORS
Anton Lindqvist <anton@basename.se>