================
@@ -2803,7 +2803,207 @@ getRHSTemplateDeclAndArgs(Sema &SemaRef,
TypeAliasTemplateDecl *AliasTemplate) {
return {Template, AliasRhsTemplateArgs};
}
-// Build deduction guides for a type alias template.
+// Build deduction guides for a type alias template from the given underlying
+// deduction guide F.
+FunctionTemplateDecl *
+BuildDeductionGuideForTypeAlias(Sema &SemaRef,
----------------
hokein wrote:
We just move the implementation from
`DeclareImplicitDeductionGuidesForTypeAlias ` to a dedicated function, so that
we can reuse it in the `DeclareAggregateDeductionGuideForTypeAlias`.
The functional change of this commit is in
`DeclareAggregateDeductionGuideForTypeAlias`, the previous implementation is
incorrect, and we should use the one in
`DeclareImplicitDeductionGuidesForTypeAlias`.
https://github.com/llvm/llvm-project/pull/90894
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits