I would like to generate graphs where the dependencies between directories (defined by
#include)* are drawn and sub-directories are recursively nested within directory nodes.
- Nesting should be possible with at least 2 layers.
- Operating system Windows (preferred), Linux should it be necessary.
- cost less than 100USD (one-time)
- output format preferably DOT, SVG, PNG
It is required that the actual directories are drawn, not only the dependencies between files.
*: The dependencies are actually between the files and evaluated by the C-preprocessor.
What I found so far
Doxygen has been recommended and does quite a good job with its directory graphs. But it does not draw sub-directories of more than 1 level relatively to the documented directory. This behavior seems to be intentional - not a bug.
cinclude2dot has been recommended but this tool does not draw the actual directories.
The author of this blog article has, with "a little hacking", fed the output of
gcc -H to CodeSonar. I can not afford CodeSonar for this feature. But his results are impressive: