mirror of
https://github.com/MaskRay/ccls.git
synced 2025-12-16 12:13:30 +00:00
resolve the type alias correctly
This commit is contained in:
parent
5660367c77
commit
43f2c7b759
@ -325,6 +325,9 @@ try_again:
|
|||||||
switch (tp->getTypeClass()) {
|
switch (tp->getTypeClass()) {
|
||||||
case Type::Typedef:
|
case Type::Typedef:
|
||||||
d = cast<TypedefType>(tp)->getDecl();
|
d = cast<TypedefType>(tp)->getDecl();
|
||||||
|
tp = cast<TypedefType>(tp)->getDecl()->getUnderlyingType().getTypePtrOrNull();
|
||||||
|
if (tp)
|
||||||
|
goto try_again;
|
||||||
break;
|
break;
|
||||||
case Type::ObjCObject:
|
case Type::ObjCObject:
|
||||||
d = cast<ObjCObjectType>(tp)->getInterface();
|
d = cast<ObjCObjectType>(tp)->getInterface();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user