HOWTO: use a CXCursor referring a Typedef

I'm trying to access the newly defined type (CXType), as well as the aliased type, starting from a CXCursor of kind CXCursor_TypedefDecl.

Calling clang_getCursorType() on that cursor yields a type of kind "Invalid". Is that a bug or am I using the wrong function ?

Thanks,
    Stefan