[cfe-dev] Getting type information from the C API
Jacob Carlborg
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.
int x;
Given the above, doing something like this, "c" is the cursor pointing
to "x".
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.
--
/Jacob Carlborg
More information about the cfe-dev
mailing list