================
@@ -1127,7 +1096,7 @@ 
DeclarationFragmentsBuilder::getFragmentsForVarTemplatePartialSpecialization(
       .append("<", DeclarationFragments::FragmentKind::Text)
       .append(getFragmentsForTemplateArguments(
           Decl->getTemplateArgs().asArray(), Decl->getASTContext(),
-          Decl->getTemplateParameters()->asArray()))
+          Decl->getTemplateArgsAsWritten()->arguments()))
----------------
evelez7 wrote:

In this patch `getFragmentsForTemplateArguments`, which is being called here, 
is changed to accept `ArrayRef<TemplateArgumentLoc>` (which is what the changed 
line returns) instead of `ArrayRef<NamedDecl *>` because of the nasty loop that 
was deleted in `DeclarationFragments.cpp:962`. A `TemplateArgumentLoc` gives us 
the name of the specialization's type argument directly, instead of comparing 
with the declaration's template parameters.

https://github.com/llvm/llvm-project/pull/77716
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to