FileDepends is command line tool that shows the file include dependencies recursively.

It also shows the corresponding .cpp file.

For instance, if you have:{{{a.ha.cpp}}}and


include "a.h"

class B { A a; };}}}

Running the command line:{{{filedepends b.h}}}Results:{{{=== standard C++ headers ===Total : 0

=== Header Files ===

c:\YourDir\a.hc:\YourDir\b.hTotal : 2

=== Implementation ===c:\YourDir\a.cppc:\YourDir\b.cpp}}}

If you have self-sufficient headers then the result is which files you need to use to declare and implement the specific class/functions declared in analyzed header.

Note1: The FileDepends is a simple tool and it doesn't have a pre-processor.

Note2: The source code if free, and you can use it and change ir for your needs.

Note3: This software is provided "as is" without express or implied warranty, and with no claim as to its suitability for any purpose.

Command line help{{{filedepends file.h }}}

See also: