title: Generating a call graph with Clang
body: <p>How do I use clang to generate a call graph of C++ code? I understand I need to use <a href="http://clang.llvm.org/doxygen/CallGraph_8cpp_source.html" rel="nofollow">this</a>, but I can't find any examples. </p>
  
  <p>I already tried using python bindings for this, but they seem to be lacking some important functions.</p>
  
  <p>Can anyone provide a minimal example of using current clang's API for this task? </p>