[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


================
@@ -2833,6 +2833,56 @@ TEST_F(FormatTest, FormatsSwitchStatement) {
                Style);
 }
 
+TEST_F(FormatTest, FormatsSwitchStatementKwBreakBeforeCase) {
+  FormatStyle Style = getLLVMStyle();
+  Style.IndentCaseLabels = true;
----------------
HazardyKnusperkeks wrote:

Can we get a test without this option?

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


More information about the cfe-commits mailing list