title: How should I detect unnecessary #include files in a large C++ project?
body: <p>I am working on a large C++ project in Visual Studio 2008, and there are a lot of files with unnecessary <code>#include</code> directives. Sometimes the <code>#include</code>s are just artifacts and everything will compile fine with them removed, and in other cases classes could be forward declared and the #include could be moved to the <code>.cpp</code> file.  Are there any good tools for detecting both of these cases?</p>