Re: Getting rid of excess #includes



On 29 Sep 2005 14:52:08 -0700, LionKimbro@xxxxxxxxx wrote in
comp.lang.c:

> Is there a tool to help identify excess #includes?
>
> That is, #include's that have no functions or preprocessor directives
> that are being used by a source file.

PC-Lint (http://www.gimpel.com) will identify both includes and macro
definitions physically in a source code file that are not used.

It is a commercial product, not free. But it is also one that no
professional C programmer should be without.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~ajo/docs/FAQ-acllc.html
.