Does g++ have a way to determine if include’s don’t need to be there? If not, does anyone know of a tool that can help me do this?
For example, say I have code that looks like this:
int main ()
cout << “hello world” << endl;
I wanted to use a tool that would tell me that math.h, vector, and string are included but don’t need to be. Something like how the eclipse java ide does with imports? Is there a way to turn on this as a warning in g++?