const identified as built in type in clang


Actually i was trying to separate built in type from keywords using CXTypeKind. If it is in range from CXType_FirstBuiltIn to CXType_LastBuilIn but

in case it is “const int x;” It return the const also as CXType_Int , But const is a keyword and not Built In Type. So is there any way to differentiate these kind of keywords

from Builtin types. Problem will be with volatile, restrict and few other keywords like this.


Himanshu Mishra