diff --git a/src/indexer.cc b/src/indexer.cc index df82ecc2..6d32077e 100644 --- a/src/indexer.cc +++ b/src/indexer.cc @@ -325,6 +325,9 @@ try_again: switch (tp->getTypeClass()) { case Type::Typedef: d = cast(tp)->getDecl(); + tp = cast(tp)->getDecl()->getUnderlyingType().getTypePtrOrNull(); + if (tp) + goto try_again; break; case Type::ObjCObject: d = cast(tp)->getInterface();