From 43f2c7b7595bbc7c5414f7ac535b6bea9204b8a5 Mon Sep 17 00:00:00 2001 From: zs Date: Mon, 3 Nov 2025 17:27:22 +0800 Subject: [PATCH] resolve the type alias correctly --- src/indexer.cc | 3 +++ 1 file changed, 3 insertions(+) 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();