[cfe-dev] Parsing a function

Larisse Voufo lvoufo at cs.indiana.edu
Thu Sep 23 08:48:37 PDT 2010


I believe you should be looking for:

* void clang::ParseAST(Sema &S, bool PrintStats)...
    -- in ParseAST.cpp
* Parser::DeclGroupPtrTy Parser::ParseExternalDeclaration(CXX0XAttributeList
Attr,...
    -- in Parser.cpp
And eventually
* Decl *Parser::ParseFunctionDefinition(ParsingDeclarator &D,...

or wherever the journey takes you... :)

Hope this helps,

-- Larisse.




On Thu, Sep 23, 2010 at 11:19 AM, Wei Li <weili747 at gmail.com> wrote:

> Hi:
>
> I am trying to figure out how Clang parse a function and its body. Any
> hint about which files/methods, in the Parse/AST directories, to look
> into will be a great help.
>
>
> --
> Regards,
>
> Wei Li
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100923/281a56c7/attachment.html>


More information about the cfe-dev mailing list