Tool to track #include dependencies
If you have access to GCC/G++, then the -M
option will output the dependency list. It doesn't do any of the extra stuff that the other tools do, but since it is coming from the compiler, there is no chance that it will pick up files from the "wrong" place.
Tool to find all header and source file dependencies in C
Klocwork has an On-the-Fly source code analysis product which can figure out redundant and unused header file. Have a look to see if it fulfills your requirements.
Detecting superfluous #includes in C/C++?
It's not automatic, but doxygen will produce dependency diagrams for #included
files. You will have to go through them visually, but they can be very useful for getting a picture of what is using what.
How can I see the C/C++ #include graph easily?
Doxygen, with the aid of Graphviz, can do that. You first need to edit a configuration file. This won't be easy the first time you do it, but no much editing is needed afterwards.
Is there tool for .Net/C# to capture *run-time* dependencies between classes?
CLRProfiler can capture/display CallGraph: http://www.scribd.com/doc/3376247/CLRProfiler.
The file format is documented, so you can add your own analisys.
Displaying the #include hierarchy for a C++ file in Visual Studio
There is a setting:
Project Settings -> Configuration Properties -> C/C++ -> Advanced -> Show Includes
that will generate the tree. It maps to the compiler switch /showIncludes
Related Topics
How to Capture a Unique_Ptr into a Lambda Expression
How to Check If Input Is Numeric in C++
Why Would the Behavior of Std::Memcpy Be Undefined For Objects That Are Not Triviallycopyable
Why Does Pointer Decay Take Priority Over a Deduced Template
How to Implement Atoi Using Simd
Forward Declaration of a Typedef in C++
Why Doesn't Std::Queue::Pop Return Value.
Why No Default Move-Assignment/Move-Constructor
Is Stateful Metaprogramming Ill-Formed (Yet)
Read Numeric Data from a Text File in C++
Sin and Cos Give Unexpected Results For Well-Known Angles
Parsing Command Line Arguments in C++
How to Install the Raspberry Pi Cross Compiler on My Linux Host Machine
How to Sum Up Elements of a C++ Vector
(-2147483648≫ 0) Returns True in C++
When Should I Use C++ Private Inheritance
Why Does Std::Cout Output Disappear Completely After Null Is Sent to It