================ @@ -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()]; ---------------- sdkrystian wrote:
@erichkeane The allocation function uses `ASTContext` to allocate the memory (it uses a `BumpPtrAllocator`, so we don't need to deallocate). https://github.com/llvm/llvm-project/pull/113579 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits