diff options
| author | Daniel Jasper <djasper@google.com> | 2014-04-04 06:46:23 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2014-04-04 06:46:23 +0000 |
| commit | 922349cdba95b853baf7efe0ebf62e89d479a75e (patch) | |
| tree | 02d65f5035457190d9ca35ca3d5b429cb57858d9 /clang/unittests/Format/FormatTest.cpp | |
| parent | 840beec2d0855db9165c02bc29a79af8e357fc24 (diff) | |
| download | bcm5719-llvm-922349cdba95b853baf7efe0ebf62e89d479a75e.tar.gz bcm5719-llvm-922349cdba95b853baf7efe0ebf62e89d479a75e.zip | |
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
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
| -rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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" |

