[OT] Identifying unused include directives?
Robert Dewar
dewar@gnat.com
Sat Aug 30 17:57:00 GMT 2003
> Anyone know a good way to automatically identify unneeded #include statements?Seems like this is something gcc could do...
The general case seems impossible to solve (indeed it is trivially equivalent
to the halting problem whether a given #include affects the semantics of
a given program). So the first job is to define exactly what the scope
of the task is, and this seems pretty difficult.
More information about the Gcc
mailing list