================ @@ -3405,6 +3405,122 @@ getReplacedTemplateParameter(Decl *D, unsigned Index); /// If we have an implicit instantiation, adjust 'D' to refer to template. const Decl &adjustDeclToTemplate(const Decl &D); +/// Represents an explicit instantiation of a template entity in source code. +/// +/// This node records source location information for an explicit instantiation +/// statement. It does not participate in name lookup (inherits from Decl, not +/// NamedDecl), and does not affect code generation. The underlying +/// specialization decl (FunctionDecl, VarDecl, CXXRecordDecl, etc.) continues +/// to handle all semantic and codegen responsibilities. ---------------- mizvekov wrote:
I feel like most of this block is fine as a PR description, but probably not helpful to leave as a comment, due to the obviousness. For example it has wording that alludes to the fact the decl kind didn't exist in the past (ie 'continues'), which is not something we would say in documentation (but would say in a change log). https://github.com/llvm/llvm-project/pull/191658 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
