diff options
-rw-r--r-- | NEWS | 3 | ||||
-rwxr-xr-x | deheader | 4 | ||||
-rw-r--r-- | deheader.xml | 2 |
3 files changed, 6 insertions, 3 deletions
@@ -1,5 +1,8 @@ deheader project news +0.7 @ + Accept .cc as an extension as well as .cpp. + 0.6 @ 2011-02-10 Add the return-status macros from sys/wait.h to the portability list. @@ -1225,7 +1225,7 @@ class InclusionMap: @staticmethod def c_source(filename): "Predicate: return true if the filename appears to be C or C++ source." - return filename.endswith(".c") or filename.endswith(".cpp") + return filename.endswith(".c") or filename.endswith(".cpp") or filename.endswith(".cc") def __init__(self, roots, ignore, excludes, verbosity): "Build the initial inclusion map." self.verbosity = verbosity @@ -1416,7 +1416,7 @@ def deheader(sourcefile, maker, includes, requires, remove, verbose): (st, t) = testcompile(sourcefile, maker, verbosity=max(1, verbose), showerrs=True) if st == 0: # Now do the analysis - if sourcefile.endswith(".c") or sourcefile.endswith(".cpp"): + if sourcefile.endswith(".c") or sourcefile.endswith(".cpp") or sourcefile.endswith(".cc"): unneeded = c_analyze(sourcefile, maker, includes[:], requires, verbose) if unneeded: diff --git a/deheader.xml b/deheader.xml index 7803457..8cb40e2 100644 --- a/deheader.xml +++ b/deheader.xml @@ -151,7 +151,7 @@ stndardized or only weakly standardized. The sockets API (sys/select.h, sys/sockets.h, and friends such as sys/types.h and sys.stat.h) is perhaps the most serious trouble spot. <command>deheader</command> has an internal table of rules that -heads off the most common problems by, suppressing deletion of headers +heads off the most common problems by suppressing deletion of headers that are required for portability, but your mileage may vary.</para> <para>Sufficiently perverse C++ can silently invalidate the simple |