[cfe-dev] Accessing identifier's information

Wei Li weili747 at gmail.com
Wed Nov 17 13:50:42 PST 2010


Dear all:

How can I access an identifier's information? For example, consider
the following example which I am trying to parse through Clang:

int Array [][];

void myFunction Array[][]
{
 body of the function;
}


I want to get all the information of "Array " variable; what is its
scope? whether it has already been declared or not? etc.

Where to start ? which function to call in the parser to get these information.


-- 
Regards,

Wei Li



More information about the cfe-dev mailing list