[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
----------------
HazardyKnusperkeks wrote:
And if we edit the value of `End` down at line 662, or even 522? I find it a bit bad, to feed a `Start` `End` range into `AlignTokenSequence` and that then operates beyond that range.
https://github.com/llvm/llvm-project/pull/164458
More information about the cfe-commits
mailing list