[kwlug disc.] static code checker for detecting unreferenced header files?

Ilguiz Latypov ilatypov at infradead.org
Fri Mar 9 14:24:41 EST 2007


On Fri, Mar 09, 2007 at 02:01:20PM -0500, Robert P. J. Day wrote:
>   is there a static code checker for scanning a directory structure of
> C/header files and detecting header files that are simply not being
> included from *anywhere* in the tree?

Perhaps, the -M... options of gcc will let find and filter out all
referenced header files?

SCons has a C/C++ preprocessor, or "scanner".  I wonder if its
code can be reused to find orphaned header files?

-- 
Ilguiz



More information about the KWLUG-Disc mailing list