Template information with GCC 4.5

2010-08-07 Thread Kien Nguyen Trung
Hi all I want to write a plugin for GCC 4.5. Now i have a problem. When visit a var_decl node. We can get name of node and tree node reperesent for that type of node by marco TREE_TYPE(node) But it not work with template decl. For example: classT C { // define class in here }; Cint a; When I

How to get attual method in GCC AST

2010-08-02 Thread Kien Nguyen Trung
I am work on a project related with GCC AST. In my project, i write a plugin for GCC. This plugin read a AST from a source code, a covert this source code to another language. Currently i have a problem with GCC AST. In particular, i cannot retrieve all information about CALL_EXPR. I read GCC