[clang] [clang] CTAD: use index and depth to retrieve template parameter for TemplateParamsReferencedInTemplateArgumentList (PR #98013)
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 11 02:16:18 PDT 2024
================
@@ -2653,20 +2653,34 @@ struct ConvertConstructorToDeductionGuideTransform {
// Find all template parameters that appear in the given DeducedArgs.
// Return the indices of the template parameters in the TemplateParams.
SmallVector<unsigned> TemplateParamsReferencedInTemplateArgumentList(
- ArrayRef<NamedDecl *> TemplateParams,
+ const TemplateParameterList* TemplateParamsList,
----------------
hokein wrote:
> In fact, TemplateParameterList will just return the depth of its first parameter.
I think it is fine, my understanding is that all parameters within a template parameter list should have the same depth,
https://github.com/llvm/llvm-project/pull/98013
More information about the cfe-commits
mailing list