Parsing a function

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Parsing a function

Wei Li
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
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: Parsing a function

Larisse Voufo
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 <[hidden email]> 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
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev


_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev