[cfe-dev] Getting type information from the C API
doob at me.com
Mon Jan 30 13:06:04 PST 2012
I have a few questions about getting type information from the C API.
1. Is it possible to get the name/spelling of a give type, i.e.
Given the above, doing something like this, "c" is the cursor pointing
CXType type = clang_getCursorType(c);
CXString str = clang_getTypeSpelling(type);
"str" would now contain "int".
2. Get the name of the super class an Objective-C class inherits from
and the protocols it implements.
3. If a function is inline or not.
More information about the cfe-dev