[clang] [clang-tools-extra] [Clang][AST] Introduce `ExplicitInstantiationDecl` to preserve source info and fix diagnostic locations (PR #191658)
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 13 00:53:46 PDT 2026
================
@@ -651,6 +652,11 @@ class ASTReader
llvm::DenseMap<std::pair<const Decl *, unsigned>, NamedDecl *>
LambdaDeclarationsForMerging;
+ /// Map from canonical specialization to the corresponding explicit
+ /// instantiation declaration, for merging across modules.
+ llvm::DenseMap<const Decl *, ExplicitInstantiationDecl *>
+ ExplicitInstantiationDeclsForMerging;
----------------
ChuanqiXu9 wrote:
Why can't we merge it with the table within ASTContext?
https://github.com/llvm/llvm-project/pull/191658
More information about the cfe-commits
mailing list