[clang] [Clang][AST] Store injected template arguments in TemplateParameterList (PR #113579)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 25 09:36:57 PDT 2024
================
@@ -244,6 +245,17 @@ bool TemplateParameterList::hasAssociatedConstraints() const {
return HasRequiresClause || HasConstrainedParameters;
}
+ArrayRef<TemplateArgument> TemplateParameterList::getInjectedTemplateArgs() {
+ if (const auto *Context = InjectedArgs.dyn_cast<const ASTContext *>()) {
+ TemplateArgument *Args = new (*Context) TemplateArgument[size()];
----------------
erichkeane wrote:
Do we ensure this gets deleted somewhere? It seems to me we need to make sure that this gets cleaned up.
https://github.com/llvm/llvm-project/pull/113579
More information about the cfe-commits
mailing list