[clang] [clang-format] Add KwBreakBeforeCaseLabel (PR #227668)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 1 11:51:19 PDT 2026


================
@@ -281,6 +281,14 @@ class LineJoiner {
         return MergedLines;
     }
 
+    // Handle case labels preceded by a break statement
+    if (Style.KwBreakBeforeCaseLabel &&
----------------
HazardyKnusperkeks wrote:

Instead of joining lines, how about `ContinuationIndenter::canBreak` returning `false` in your case.?

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


More information about the cfe-commits mailing list