This is the mail archive of the
mailing list for the GCC project.
Remove redundant includes from C, C++ source files.
- From: Michalis Giannakidis <mgiann at beta-cae dot gr>
- To: gcc-help at gcc dot gnu dot org
- Date: Sun, 26 Nov 2006 19:51:26 +0200
- Subject: Remove redundant includes from C, C++ source files.
I would like to remove from my source files all includes that are not needed.
Doing so, will drop many dependencies between files, on the project I am
I am wondering if GCC provides a feature (or even a workaround) so as to
report #include files that have no actual contribution to the compiled file.
If GCC does not provide such a feature, do you know of an other tool that does
it? (maybe lint?)
Thank you very much in advance