[clang] [clang-format] Fix incorrect trailing comment and escaped newlines when AlignArrayOfStructures is enabled (PR #180305)

Ben Dunkin via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 12 09:50:07 PST 2026


================
@@ -348,7 +372,6 @@ AlignTokenSequence(const FormatStyle &Style, unsigned Start, unsigned End,
           CurrentChange.IndentedFromColumn >= OriginalMatchColumn));
 
     if (CurrentChange.NewlinesBefore > 0) {
-      LineShifted = false;
       if (!InsideNestedScope)
         Shift = 0;
     }
----------------
bdunkin wrote:

Done.

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


More information about the cfe-commits mailing list