[clang] [clang-tools-extra] [Clang][AST] Introduce `ExplicitInstantiationDecl` to preserve source info and fix diagnostic locations (PR #191658)
Matheus Izvekov via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 22 09:25:50 PDT 2026
================
@@ -656,6 +657,11 @@ class ASTContext : public RefCountedBase<ASTContext> {
llvm::DenseMap<FieldDecl *, FieldDecl *> InstantiatedFromUnnamedFieldDecl;
+ /// Maps a canonical specialization Decl to all ExplicitInstantiationDecls
+ /// that reference it (declarations and definitions).
+ llvm::DenseMap<const Decl *, llvm::TinyPtrVector<ExplicitInstantiationDecl *>>
----------------
mizvekov wrote:
Nit: couldn't this be a NamedDecl at least?
https://github.com/llvm/llvm-project/pull/191658
More information about the cfe-commits
mailing list