[clang] [clang-tools-extra] [clang] Improve nested name specifier AST representation (PR #147835)
Andrey Ali Khan Bolshakov via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 16 10:40:55 PDT 2025
================
@@ -2586,8 +2561,9 @@ bool CXXNameMangler::mangleUnresolvedTypeOrSimpleId(QualType Ty,
}
case Type::InjectedClassName:
- mangleSourceNameWithAbiTags(
- cast<InjectedClassNameType>(Ty)->getDecl());
+ mangleSourceNameWithAbiTags(cast<InjectedClassNameType>(Ty)
+ ->getOriginalDecl()
+ ->getDefinitionOrSelf());
----------------
bolshakov-a wrote:
Is this `getDefinitionOrSelf()` call necessary here? Shouldn't `InjectedClassNameType` always refer to the definition where the class name is injected to?
https://github.com/llvm/llvm-project/pull/147835
More information about the cfe-commits
mailing list