Attached is a patch that implements include file traversal support for the Python binding's TranslationUnit class (plus a test case and a small example program).<br clear="all"><br>The new TranslationUnit.includes property returns a sequence of tuples containing the including file (or None for the "inclusion" of the TU source file), the included file, the source location and the include depth. Basically, it returns an attributed edge list (graph).<br>
<br>I also wrote a small example utility that dumps the include graph as a Graphviz dot file.<br><br>Andrew Sutton<br><a href="mailto:andrew.n.sutton@gmail.com">andrew.n.sutton@gmail.com</a><br>