Not able to to get ASTContext reference without using FrontEndAction or some other way of sub categorizing tokens

Hi,

I just want to tokenize and get the types of tokens. clang_tokenize just returns the five categories.

So I am not able to categorize it futher to Operators, Built In types as const is also returned as a built in type

and many other problem. So I posted a question in which I got the reply to use getType method from which can be called

from ASTContext reference but I am not able to get any other way for getting ASTContext reference. Actually I pretty new to clang

Can someone help me with it.

Regards,

Himanshu Mishra

201410091712808_BEI0XT4N.gif