Tracking include file nesting

In a large project (>1000 C++ files for a single executable) I want to track the #include file tree. To answer questions like "Why would abc.cpp need xyz.h?" and "which *.cpp files depend on xyz.h". Like the source browser can give cross-reference trees for function calls, I want to see a cross reference for header files. In a tree-like manner, to find out where to break the chain in order to reduce dependencies, to speed up the build.

Is there a way to do this in Visual Studio 2005 or could someone recommend a straightforward tool for this purpose? The tool should be tightly linked to Visual Studio, so that it knows about build configurations and the predefined preprocessor symbols.

Maybe is Doxygen a suitable tool?

Thanks in advance!
[775 byte] By [j66st] at [2007-11-20 11:59:11]
# 1 Re: Tracking include file nesting
There is no tool (that I know) to show you such a tree. That is something that I have in mind for writing, because there were many times I needed something like that too. ;)
cilu at 2007-11-11 4:01:54 >
# 2 Re: Tracking include file nesting
I'm not sure this is what you want, but, try using the compiler switch /showIncludes.
Mike Harnad at 2007-11-11 4:02:54 >
# 3 Re: Tracking include file nesting
Great! I didn't know that one! For building a tree structure for cross-referencing I can write a couple of Perl scripts that process this compiler output.

Thanks alot!
j66st at 2007-11-11 4:03:53 >