[clang] [clang-format] Allow array alignment on non-rectangular arrays (PR #143781)
Ben Dunkin via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 18 10:47:33 PDT 2025
================
@@ -67,11 +67,11 @@ void WhitespaceManager::addUntouchableToken(const FormatToken &Tok,
bool InPPDirective) {
if (Tok.Finalized || (Tok.MacroCtx && Tok.MacroCtx->Role == MR_ExpandedArg))
return;
- Changes.push_back(Change(Tok, /*CreateReplacement=*/false,
- Tok.WhitespaceRange, /*Spaces=*/0,
- Tok.OriginalColumn, Tok.NewlinesBefore, "", "",
- /*IsAligned=*/false, InPPDirective && !Tok.IsFirst,
- /*IsInsideToken=*/false));
+ Changes.push_back(
----------------
bdunkin wrote:
I believe this is what clang-format does to this file now. I didn't make any changes to this line.
https://github.com/llvm/llvm-project/pull/143781
More information about the cfe-commits
mailing list