Re: Getting rid of excess #includes
- From: Jack Klein <jackklein@xxxxxxxxxxx>
- Date: Thu, 29 Sep 2005 21:39:47 -0500
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
.
- Prev by Date: Re: Detecting Reads of Global Uninitialized Variables
- Next by Date: Re: K&R Wishlist
- Previous by thread: Re: Detecting Reads of Global Uninitialized Variables
- Next by thread: Assembler vs Compiler vs Linker
- Index(es):