#include optimization

From: Ramesh (ramesh25_at_gmail.com)
Date: 09/28/04


Date: 28 Sep 2004 05:35:28 -0700

Hi,

I am currently maintaining a legacy code with a very very large code base.
I am facing problems with C/C++ files having a lot of un-necessary #includes.
On an average every C/C++ file has around 150+ .h files included. I find 75%
of the files unnecessary and could be removed. Considering the fact that I
have a huge code base, I can't manually fix it.

Are there any tools that would report un wanted .h files?

I am not sure if this is a right group to ask this question.
I would appreciate if any pointers could be provided.

Thanks
Ramesh



Relevant Pages

  • #include optimization
    ... I am currently maintaining a legacy code with a very very large code base. ... I am facing problems with C/C++ files having a lot of un-necessary #includes. ... On an average every C/C++ file has around 150+ .h files included. ...
    (comp.lang.cpp)
  • Re: HTML Templates (Sitemesh/Tiles concept) in Python
    ... So the drawbacks of frames may not be a definitive show-stopper. ... We have not considered a framework coz the legacy code base has not ...
    (comp.lang.python)
  • Re: #include optimization
    ... > I am currently maintaining a legacy code with a very very large code base. ... I have verified this capability with C files, ... source tree onto a Windows PC just to run the PC version of the ...
    (comp.lang.cpp)
  • Re: #include optimization
    ... > I am currently maintaining a legacy code with a very very large code base. ... I have verified this capability with C files, ... source tree onto a Windows PC just to run the PC version of the ...
    (comp.lang.c)