6

Is there a tool available which will take a set of source files and map (in graphic fashion) how they are linked via #include?

I would like to see where there are any circular references.

3 Answers3

5

I believe doxygen:

http://www.doxygen.org/

with graphviz installed:

http://www.graphviz.org/

will do it.

eruciform
  • 7,550
  • 1
  • 34
  • 46
2

gcc(1) can produce dependency files. They are intended to be used by make(1), but they are relatively easy to parse. Use 'gcc -M -MF file' or 'gcc -MM -MF file'.

4dan
  • 893
  • 8
  • 14
1

Red Hat source navigator. Strongly recommended.

Red Hat source navigator

Glorfindel
  • 20,880
  • 13
  • 75
  • 99
Agnel Kurian
  • 56,037
  • 41
  • 141
  • 214
  • I have to say this is a very strong tool. Thank you for pointing it out. Changed to accepted answer! –  Jul 13 '10 at 14:34