-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 1/13/2011 3:11 PM, Ian Collins wrote:
> On 01/14/11 08:33 AM, Joe Hesse wrote:
>> When I write many X.h and X.cpp files and debug/modify them, after a
>> while they contain library or other header files that may not be
>> necessary. I realize that there are #ifdef's that prevent a header file
>> from being included more than once so it doesn't hurt to put them in more
>> places than necessary.
>>
>> My question is: Is there a tool to take a C++ program that compiles and
>> reorganize the header files so there are no more #include<blah> than
>> necessary?
>
> While it is possible, what real benefits would such a tool bring?
>
The commercial tool Coverity has a checker for some of that.
It does not reorganize to the optimum, but it will tell you when you
are including a header unnecessarily.
- --
Nelson Ferreira
Pubkey:
http://triatlantico.org/njsf.asc
(9DFE 82A7 C689 BAEE EC25 A8E8 3C64 1789 7420 ED20)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org/
iEYEARECAAYFAk0vas4ACgkQPGQXiXQg7SBEsACfbEQi9OIF/9wj0bVXmaAZS2lC
m+oAnihfzYga4tzvTtnt0zAR9GhX3Jf9
=7j9H
-----END PGP SIGNATURE-----