<div class="gmail_quote">Thanks for the link, Ehsan. Looks like an interesting example of programmatically dumping the clang AST. I'll take a look. -- Simon</div><div class="gmail_quote"><br></div><div class="gmail_quote">
<br></div><div class="gmail_quote">On Tue, Aug 23, 2011 at 11:50 AM, Ehsan Akhgari <span dir="ltr"><<a href="mailto:ehsan.akhgari@gmail.com">ehsan.akhgari@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div dir="ltr">You can also look at viewsource <<a href="https://github.com/jcranmer/viewsource" target="_blank">https://github.com/jcranmer/viewsource</a>>, written by Joshua.<br><br clear="all">--<br>Ehsan<br><<a href="http://ehsanakhgari.org/" target="_blank">http://ehsanakhgari.org/</a>><br>



<br><br><div class="gmail_quote"><div class="im">On Tue, Aug 23, 2011 at 1:16 PM, Simon <span dir="ltr"><<a href="mailto:simonhf@gmail.com" target="_blank">simonhf@gmail.com</a>></span> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">

I am trying to find a tool that will parse and tell me information about a C source file in a verbose manner which I can digest and use in a script I am writing. The closest I have come so far using gcc to generate debug info and then extract the debug info and parse that. However, what I'd prefer is a tool which lets me get at similar debug info (although obviously not memory offsets etc) *without* having to compile the C source code into object files. I know that clang has been re-written from scratch to be a lot more flexible than gcc. Does anybody in this list know how I could use clang (or another tool) to obtain such debug info without compiling all the way? Thanks, Simon
<br></div>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br>