]> git.droids-corp.org - dpdk.git/commit
devtools: add IWYU script to remove unused includes
authorSean Morrissey <sean.morrissey@intel.com>
Tue, 15 Feb 2022 12:29:48 +0000 (12:29 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 22 Feb 2022 12:10:39 +0000 (13:10 +0100)
commit0988482fb36299663d28dac5bcb008c586fd008d
tree1526c0c7f9e481cfdc8c37baad9bcf7df4d65ccc
parentecc0dd455e9a56db783463d83173c3f348b560ce
devtools: add IWYU script to remove unused includes

This script can be used for removing headers flagged for removal by the
include-what-you-use (IWYU) tool. The script has the ability to remove
headers from specified sub-directories or dpdk as a whole and tests the
build after each removal by calling meson compile.

example usages:

Remove headers flagged by iwyu_tool output file
$ ./devtools/process_iwyu.py iwyu.out -b build

Remove headers flagged by iwyu_tool output file from sub-directory
$ ./devtools/process_iwyu.py iwyu.out -b build -d lib/kvargs

Remove headers directly piped from the iwyu_tool
$ iwyu_tool -p build | ./devtools/process_iwyu.py - -b build

Signed-off-by: Sean Morrissey <sean.morrissey@intel.com>
Signed-off-by: Conor Fogarty <conor.fogarty@intel.com>
Reviewed-by: Bruce Richardson <bruce.richardson@intel.com>
MAINTAINERS
devtools/process-iwyu.py [new file with mode: 0755]