diff options
-rwxr-xr-x | deheader | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -2,17 +2,20 @@ """\ deheader -- find (optionally remove) unneeded includes in C or C++ sourcefiles. -Usage: deheader [-h] [-v] [-r] [-i str] [sourcefiles] +Usage: deheader [-h] [-v] [-r] [-i pattern] [-x pattern] [sourcefiles] -h, --help Emit this help message and quit. -m, --maker Set the build command (by default "make") -i, --ignore Ignore (don't remove) headers matching the argument regexp -r, --remove Remove the final set of unneeded headers -v, --verbose Be chatty about what you're doing. + -x, --exclude Exclude files matching regexp + -V, --version Emit version and exit. This tool takes a list of C or C++ sourcefiles and generates a report on which #includes can be omitted from them -- the test, for each foo.c or foo.cc or foo.cpp, is simply whether 'rm foo.o; make foo.o' returns a zero status. Optionally, with the -r option, the unneeded headers are removed. +The tool also reports on headers required for strict portability. If a sourcefile argument is a directory, the report is generated on all source files beneath it. Subdirectories beginning with a dot are ignored. If no @@ -32,7 +35,7 @@ BATON_DEBUG = 1 PROGRESS_DEBUG = 2 COMMAND_DEBUG = 3 -version = "0.4" +version = "0.5" # Difference in various compiler implementations and OSes mean that for cross- # platform compatibility you sometimes want to leave "unneeded" headers alone |