[clang] [clang-format] Fix regression with BlockIndent of Braced Initializers (PR #108717)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 21 22:08:44 PDT 2024


================
@@ -348,6 +348,13 @@ bool ContinuationIndenter::canBreak(const LineState &State) {
     }
   }
 
+  // Don't allow breaking before a closing right brace of a block-indented
+  // braced list initializer if there was not already a break.
----------------
owenca wrote:

```suggestion
  // Don't allow breaking before a closing brace of a block-indented braced list
  // initializer if there isn't already a break.
```

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


More information about the cfe-commits mailing list