This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: new switch that warns about missing includes


On 13-Aug-2001, Florian Schintke <schintke@zib.de> 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:
> http://gcc.gnu.org/projects/
> 
> 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 <fjh@cs.mu.oz.au>  |  "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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]