libclang defines only 5 types of tokens:
- CXToken_Punctuation
- CXToken_Keyword
- CXToken_Identifier
- CXToken_Literal
- CXToken_Comment
Is it possible to get a more detailed information about tokens? For example, for the following source code:
struct Type;
void foo(Type param);
I would expect the output to be like:
- struct - keyword
- Type - type name
- ; - punctuation
- void - type/keyword
- foo - function name
- ( - punctuation
- Type - type of the function parameter
- param - function parameter name
- ) - punctuation
- ; - punctuation
I also need to map those entities to file locations.