[cfe-dev] Get the type of pointer

Jacob Carlborg doob at me.com
Tue Oct 16 23:55:42 PDT 2012


On 2012-10-17 08:47, Jacob Carlborg wrote:

> CXType type = clang_getCursorType(cursor);
>
> if (type == CXType_Pointer)
> {
>      CXType pointerType = clang_getPointeeType();
>      // ...
> }

Should of course be:

CXType pointeeType = clang_getPointeeType(type);

-- 
/Jacob Carlborg




More information about the cfe-dev mailing list