Dear Charles,<br><br>To make things easier, below is a much simpler program that crashes the adt-dump:<br><br>#include <sstream><br>int main() {<br>}<br><br>-- Octav<br><br><div class="gmail_quote">On Fri, Feb 26, 2010 at 7:53 PM, Octav Chipara <span dir="ltr"><<a href="mailto:ochipara@gmail.com">ochipara@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Sure. Here it is <a href="http://pastebin.com/mgMyzuTb" target="_blank">http://pastebin.com/mgMyzuTb</a><br>
<font color="#888888"><br>-- Octav</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Fri, Feb 26, 2010 at 7:03 PM, Charles Davis <span dir="ltr"><<a href="mailto:cdavis@mymail.mines.edu" target="_blank">cdavis@mymail.mines.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>Octav Chipara wrote:<br>
> Dear Chip,<br>
><br>
> Thanks for the info. Is there an plug-in the exports the AST?<br>
</div>No. However, it's really not necessary. If you derive a class from<br>
ASTConsumer (from the AST library), you will be fed each top-level<br>
declaration from the AST as the parser builds it up (see<br>
ASTConsumer::HandleTopLevelDecl()). Or, you can traverse the AST all at<br>
once by implementing the HandleTranslationUnit() method (also in<br>
ASTConsumer), which receives a translation unit decl from which you can<br>
get every other node in the AST.<br>
<div>> I tried<br>
> the ast-dump, however, it crashes:<br>
><br>
>  0x10490e360 Assertion failed: (0 && "Unexpected decl"), function<br>
> DumpDeclarator, file StmtDumper.cpp, line 263.<br>
</div>That's not supposed to happen.<br>
<br>
Can we see the source that caused this? Put it up on pastebin or some such.<br>
<br>
Chip<br>
<br>
</blockquote></div><br>
</div></div></blockquote></div><br>