Getting the type of an external variable using libclang

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