From 922349cdba95b853baf7efe0ebf62e89d479a75e Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Fri, 4 Apr 2014 06:46:23 +0000 Subject: clang-format: Don't merge simple blocks in case statements. Before: switch (a) { case 1: { return 'a'; } } After: switch (a) { case 1: { return 'a'; } } llvm-svn: 205611 --- clang/unittests/Format/FormatTest.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clang/unittests/Format/FormatTest.cpp') diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 76062605f70..90e6ff72037 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -511,6 +511,9 @@ TEST_F(FormatTest, FormatsSwitchStatement) { " f();\n" " break;\n" "}\n" + "case 2: {\n" + " break;\n" + "}\n" "}"); verifyFormat("switch (x) {\n" "case 1: {\n" -- cgit v1.2.3