This is the mail archive of the
mailing list for the GCC project.
Re: new switch that warns about missing includes
On 13-Aug-2001, Florian Schintke <firstname.lastname@example.org> wrote:
> [Alexandre Oliva]
> > However, this is tough to implement. Suppose that b.hh is guarded by
> > include-once #ifndef/#define/#endif, and that b.hh is included by d.cc
> > before c.hh. When the preprocessor gets to the point where c.hh
> > includes b.hh, even though it's not going to process b.hh again, it
> > must remember that b.hh would have included a.hh, and would have
> > brought in all declarations of names in a.hh again.
> It is hard to implement, nevertheless would it be possible to list
> this on the projects homepage so it is not forgotten:
> Or is it a too unimportant and not wanted feature for GCC?
The feature would certainly be useful,
but the ratio of importance to feasibility is very low.
I don't think it would be a good idea to encourage developers
to work on this one, because IMHO there are other areas where
development effort could be more usefully expended.
Fergus Henderson <email@example.com> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.