I believe you should be looking for:<br><br>* void clang::ParseAST(Sema &S, bool PrintStats)... <br> -- in ParseAST.cpp<br>* Parser::DeclGroupPtrTy Parser::ParseExternalDeclaration(CXX0XAttributeList Attr,...<br> -- in Parser.cpp<br>
And eventually <br>* Decl *Parser::ParseFunctionDefinition(ParsingDeclarator &D,...<br><br>or wherever the journey takes you... :)<br><br>Hope this helps, <br><br>-- Larisse.<br><br><br><br><br><div class="gmail_quote">
On Thu, Sep 23, 2010 at 11:19 AM, Wei Li <span dir="ltr"><<a href="mailto:weili747@gmail.com">weili747@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;">
Hi:<br>
<br>
I am trying to figure out how Clang parse a function and its body. Any<br>
hint about which files/methods, in the Parse/AST directories, to look<br>
into will be a great help.<br>
<font color="#888888"><br>
<br>
--<br>
Regards,<br>
<br>
Wei Li<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">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>
</font></blockquote></div><br>