diff options
-rwxr-xr-x | deheader | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1233,7 +1233,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") or filename.endswith(".cc") + return filename.endswith(".c") or filename.endswith(".cpp") or filename.endswith(".cc") or filename.endswith(".h") def __init__(self, roots, ignore, excludes, verbosity): "Build the initial inclusion map." self.verbosity = verbosity @@ -1439,7 +1439,7 @@ def deheader(sourcefile, maker, includes, requires, remove, verbose): (st, _t) = testcompile(sourcefile, maker, verbosity=max(1, verbose), showerrs=True, subdir=subdir) if st == 0: # Now do the analysis - if sourcefile.endswith(".c") or sourcefile.endswith(".cpp") or sourcefile.endswith(".cc"): + if sourcefile.endswith(".c") or sourcefile.endswith(".cpp") or sourcefile.endswith(".cc") or sourcefile.endswith(".h"): unneeded = c_analyze(sourcefile, maker, includes[:], requires, verbose, subdir=subdir) if unneeded: |