Linux, programming, computers and life

April 16, 2007

redundant includes in c/c++

Filed under: programming, c++

From time to time, when i remove redundant #include statements from our project, i wonder - is there an automatic tool to do this?
As a first step it’d be nice to have a tool which removes really redundant #includes - those which will not interfere with project build. As a second step - it’d be really nice to have suggestions to use forward declarations where possible instead of #includes.
For a small project the problem can be solved manually, but for a large one, with several build targets… well - automation is a must.

Any suggestions on such a tool?

Technorati Tags: , ,

Get free blog up and running in minutes with Blogsome
Theme designed by Gary Rogers