From 7f3667ad0026f94aab0828d464b2c35b3b5a28bc Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 22 Dec 2010 17:39:46 -0500 Subject: Update header comment and bump version. --- deheader | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/deheader b/deheader index 4bb6b98..0de0716 100755 --- a/deheader +++ b/deheader @@ -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 -- cgit v1.2.3-70-g09d2