[clang] [llvm] [AST] Print the separator "," for template arguments in ConceptReference::print (PR #91750)
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Fri May 10 08:45:25 PDT 2024
================
@@ -106,9 +106,15 @@ void ConceptReference::print(llvm::raw_ostream &OS,
ConceptName.printName(OS, Policy);
if (hasExplicitTemplateArgs()) {
OS << "<";
+ bool First = true;
// FIXME: Find corresponding parameter for argument
- for (auto &ArgLoc : ArgsAsWritten->arguments())
+ for (auto &ArgLoc : ArgsAsWritten->arguments()) {
+ if (First)
+ First = false;
+ else
+ OS << ", ";
----------------
hokein wrote:
Thanks! I wasn't aware we have such a helpful utility.
https://github.com/llvm/llvm-project/pull/91750
More information about the cfe-commits
mailing list