Re: Looking for header inclusion clean-up tool

derek@knosof.co.uk (Derek M Jones)
13 Aug 1998 22:04:59 -0400

          From comp.compilers

Related articles
Looking for header inclusion clean-up tool wprager@ca.newbridge.com (Walter Prager) (1998-08-10)
Re: Looking for header inclusion clean-up tool wy2lam@undergrad.math.uwaterloo.ca (Michael Lam) (1998-08-13)
Re: Looking for header inclusion clean-up tool dhansen@btree.com (1998-08-13)
Re: Looking for header inclusion clean-up tool derek@knosof.co.uk (1998-08-13)
Re: Looking for header inclusion clean-up tool mambuhl@tiac.net (Martin Ambuhl) (1998-08-16)
| List of all articles for this month |

From: derek@knosof.co.uk (Derek M Jones)
Newsgroups: comp.lang.c++,comp.compilers,comp.lang.c
Date: 13 Aug 1998 22:04:59 -0400
Organization: Knowledge Software Ltd
References: 98-08-064
Keywords: C, tools

Walter,
                      wprager@ca.newbridge.com "Walter Prager" writes:
> Has anyone out there heard of a tool which would assist in cleaning-up
> header inclusion? I.e. something that goes off, works for a few hours
> (days?) then produces a list of which #include's are not necessary.


What you need is OSPC (see web page below for details).


See www.knosof.co.uk/ospcnet.html for the log file produced by
running OSPC on the Netscape source code.


My experience si that approximately 30% of #included files, in mature
source code, are not needed.


MS Windows users might like to check out PC-lint, www.gimpel.com


derek


ps. It runs a bit slower than your host compiler. So, roughly, however
long that takes, OSPC takes.
--
Derek M Jones tel: +44 (0) 1252 520 667
Knowledge Software Ltd mailto:derek@knosof.co.uk
Applications Standards Conformance Testing http://www.knosof.co.uk
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.