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,680
  • 1
  • 35
  • 47
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
  • 1,033
  • 10
  • 14
1

Red Hat source navigator. Strongly recommended.

Red Hat source navigator

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
Agnel Kurian
  • 57,975
  • 43
  • 146
  • 217
  • 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