mirror of
https://github.com/MaskRay/ccls.git
synced 2025-12-15 11:43:27 +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()) {
|
||||
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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user