static clang::CanQualType getClangMetatypeType( const clang::ASTContext &clangCtx) { clang::QualType clangType = clangCtx.getObjCObjectType(clangCtx.ObjCBuiltinClassTy, 0, 0); clangType = clangCtx.getObjCObjectPointerType(clangType); return clangCtx.getCanonicalType(clangType); }
static clang::CanQualType getClangIdType( const clang::ASTContext &clangCtx) { clang::QualType clangType = clangCtx.getObjCObjectType(clangCtx.ObjCBuiltinIdTy, nullptr, 0); clangType = clangCtx.getObjCObjectPointerType(clangType); return clangCtx.getCanonicalType(clangType); }