<div dir="ltr"><div><div><div><div>The output of gccxml includes stuff like<br><br><File id="f765" name="/opt/icmanage/TOOLROOT/2.2/boost1_42/include/boost/memory_order.hpp"/><br><br></div>and other stuff like<br>
<br> <Enumeration id="_25085" name="memory_order" context="_2196" location="f765:41" <br>...<br><br></div>(Note "f765")<br><br></div>You could write a filter to grab only the stuff you care about.<br>
<br></div>I user Qt's (<a href="http://qt-project.org">http://qt-project.org</a>)'s QDomDocument (xml reader/accessor)<br>to process my gccxml output.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Oct 7, 2013 at 5:15 AM, Brad King <span dir="ltr"><<a href="mailto:brad.king@kitware.com" target="_blank">brad.king@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 10/06/2013 07:57 AM, Luis Paulo Torres wrote:<br>
> I just want informations from one file (my .cpp file).<br>
<br>
</div>gccxml dumps the C++ interface of the entire translation unit by walking<br>
the global namespace and dumping everything reachable from it.  Instead<br>
you can restrict the starting point with -fxml-start=myname.  That will<br>
reduce the output significantly but will still dump the dependencies<br>
of your interfaces.  There is no way to restrict it further.<br>
<br>
You could also look at Clang which has a library for tool writing:<br>
<br>
 <a href="http://clang.llvm.org/docs/Tooling.html" target="_blank">http://clang.llvm.org/docs/Tooling.html</a><br>
<br>
-Brad<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.gccxml.org/mailman/listinfo/gccxml" target="_blank">http://www.gccxml.org/mailman/listinfo/gccxml</a><br>
</blockquote></div><br></div>