Formatter: After case blocks, "break" goes on the same line as the "}", PR14907.
Before:
switch (foo) {
case a: {
int a = g();
h(a);
}
break;
}
Now:
switch (foo) {
case a: {
int a = g();
h(a);
} break;
}
llvm-svn: 172789
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index 4b994e3..999d621 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -952,10 +952,10 @@
return false;
}
break;
- case tok::l_paren: {
+ case tok::l_paren:
if (!parseParens())
return false;
- } break;
+ break;
case tok::l_square:
if (!parseSquare())
return false;