[clang] [clang-format] Align trailing comments for function parameters (PR #164458)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 21 13:48:08 PDT 2025


================
@@ -399,6 +399,15 @@ AlignTokenSequence(const FormatStyle &Style, unsigned Start, unsigned End,
       }
     }
   }
+
+  // The scope to be aligned may not occupy entire lines. The rest of the line
+  // needs some book-keeping.
+  for (unsigned i = End; i < Changes.size() && Changes[i].NewlinesBefore == 0;
----------------
HazardyKnusperkeks wrote:

```suggestion
  for (unsigned I = End; i < Changes.size() && Changes[i].NewlinesBefore == 0;
```

https://github.com/llvm/llvm-project/pull/164458


More information about the cfe-commits mailing list