Most often during development, we "#include" something that is not use later on. However, these "#include" statements are still somewhere in the source files.

For instance, I include #include "Apple.h" because I need Apple class, but later decide not to use Apple in my source. Now that include statement is hanging somewhere in the source which I should be get rid of. Because it creates dependency during compilation.

Is there an easy way to detect which #include statement that is not being used?

Thanks.