================
@@ -310,13 +332,15 @@ SymbolInfo index::getSymbolInfo(const Decl *D) {
Info.Lang = SymbolLanguage::CXX;
Info.Properties |= (SymbolPropertySet)SymbolProperty::Generic;
break;
- case Decl::TypeAlias:
+ case Decl::TypeAlias: {
Info.Kind = SymbolKind::TypeAlias;
+ Info.SubKind = getSubKindForTypedef(cast<TypeAliasDecl>(D));
Info.Lang = SymbolLanguage::CXX;
break;
+ }
case Decl::UnresolvedUsingTypename:
Info.Kind = SymbolKind::Using;
- Info.SubKind = SymbolSubKind::UsingTypename;
----------------
hokein wrote:
For dependent code, we can't guarantee the underlying type is a class/struct.
It might be better to retain `UsingTypename` for those cases rather than
forcing a `UsingClass` subkind.
https://github.com/llvm/llvm-project/pull/181967
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits