C/C++ source code visualization?

Avinash picture Avinash · Aug 26, 2008 · Viewed 54k times · Source

Basically I want tools which generate source code visualization like:

  • function call graph
  • dependency graph
  • ...

Answer

Andrew Wilkinson picture Andrew Wilkinson · Aug 27, 2008

Doxygen is really excellent for this, although you will need to install GraphViz to get the the graphs to draw.

Once you've got everything installed, it's really rather simple to draw the graphs. Make sure you set EXTRACT_ALL and CALL_GRAPH to true and you should be good to go.

The full documentation on this function for doxygen is here.