[cfe-dev] Getting the type of an external variable using libclang
Jacob Carlborg
doob at me.com
Wed Jun 27 06:26:28 PDT 2012
Is it possible to get the type of a variable declared as "extern" using
libclang? "clang_getCursorType" returns an unexposed type.
Hmm, actually after some investigation it only seem to happen for
variables of an array type without the number of elements declared, like
this:
extern char a[]; // type is unexposed
extern char b[2]; // type is exposed
--
/Jacob Carlborg
More information about the cfe-dev
mailing list