[clang] [clang-format] Allow array alignment on non-rectangular arrays (PR #143781)

via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 27 11:35:03 PDT 2025


================
@@ -805,6 +809,13 @@ void ContinuationIndenter::addTokenOnCurrentLine(LineState &State, bool DryRun,
     CurrentState.NoLineBreak = true;
   }
 
+  // If this is the first element of an array initializer that needs to have
+  // it's columns aligned, do not allow any further elements to break the line.
----------------
sstwcw wrote:

It's stands for it is.

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


More information about the cfe-commits mailing list