title: Detecting superfluous #includes in C/C++?
body: <p>I often find that the headers section of a file get larger and larger all the time but it never gets smaller. Throughout the life of a source file classes may have moved and been refactored and it's very possible that there are quite a few <code>#includes</code> that don't need to be there and anymore. Leaving them there only prolong the compile time and adds unnecessary compilation dependencies. Trying to figure out which are still needed can be quite tedious.</p>
  
  <p>Is there some kind of tool that can detect superfluous #include directives and suggest which ones I can safely remove?<br>
  Does lint do this maybe?</p>