diff --git a/src/indexer.cc b/src/indexer.cc index c42fdd5f..c7e1752b 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();