title: How do I generate a data flow graph with clang or other tools?
body: <p>With clang and graphviz I can generate the calling graph for some C/C++ code <a href="https://stackoverflow.com/a/5373814/3079897">as explained in this answer</a>.</p>
  
  <p>Now I need a data flow diagram computed on a really large codebase ( it's C for the most part ), this codebase is a software where <code>cmake</code> is used as building tool.</p>
  
  <p>So my problem is, given the name of a data structure, how I can possibly retrieve the names of the functions and the files using/implementing this structure ?</p>
  
  <p>There is some sparse reference to some data flow mining algorithms inside <code>Libtool</code> from the clang project ( not even sure if it's something stable or in development ), but I found nothing on <code>clang</code> itself or <code>scan-build</code>.</p>
  
  <p>How I can generate this piece of information ? I really need just that, given a name I would like to retrieve where is used in the code, pretty much all the static analysis tools that I have reviewed are focusing on functions and methods, I need to check a data structure usage in <code>clang</code>.</p>
  
  <p>EDIT:</p>
  
  <p>I'm also considering using doxygen for the documentation, so if the xml output of doxygen could be useful for some tool, I can use it.</p>