hi. this is OFFTOPIC. i am searching for a way to detect unused #include directives. i'd appreciate some GPL tool. in the transition from more and more of my own small helper classes to boost stuff i find difficult to remove unneeded #includes. i am sure my code is full of useless dependencies. cya erik -- Erik Thiele
I'm not aware of any such tools, but it could be done with a Perl script
that removes the includes one at a time, and then invokes the compiler. If
the file compiles ok, it's probably safe to remove that include.
Adrian
"Erik Thiele"
hi.
this is OFFTOPIC. i am searching for a way to detect unused #include directives. i'd appreciate some GPL tool. in the transition from more and more of my own small helper classes to boost stuff i find difficult to remove unneeded #includes. i am sure my code is full of useless dependencies.
cya erik
-- Erik Thiele
participants (2)
-
Adrian Stoica
-
Erik Thiele