Class Dependency Graphs for C++

/ Published in: Bash
Save to your folder(s)

bash 3-line shell script for visualization of c++ class dependencies with graphviz. Please see my blog post for details and leave comments there.

Copy this code and paste it in your HTML
  1. echo "digraph G {">
  2. sed -n -e "s/class [ ]*\([a-zA-Z0-9_]*\)[ ]*:[ ]*public [ ]*\([a-zA-Z0-9_]*\)[ ]*[{][ ]*/\1 -> \2 ;/p" *.h >>
  3. echo "}" >>


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.