resolve the type alias correctly

This commit is contained in:
zs 2025-11-03 17:27:22 +08:00
parent 5660367c77
commit 43f2c7b759

View File

@ -325,6 +325,9 @@ try_again:
switch (tp->getTypeClass()) {
case Type::Typedef:
d = cast<TypedefType>(tp)->getDecl();
tp = cast<TypedefType>(tp)->getDecl()->getUnderlyingType().getTypePtrOrNull();
if (tp)
goto try_again;
break;
case Type::ObjCObject:
d = cast<ObjCObjectType>(tp)->getInterface();