Formatter: After case blocks, "break" goes on the same line as the "}", PR14907.
authorNico Weber <nicolasweber@gmx.de>
Fri, 18 Jan 2013 05:50:57 +0000 (05:50 +0000)
committerNico Weber <nicolasweber@gmx.de>
Fri, 18 Jan 2013 05:50:57 +0000 (05:50 +0000)
commita5510af53e9e18ae106a222f84fde38b524989bf
tree18979fce280146e8829e3ad7c5ff80848b8039eb
parent45d9f4b569d388a66bbc7f99fdc4778195a7f89b
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
clang/lib/Format/Format.cpp
clang/lib/Format/UnwrappedLineParser.cpp
clang/unittests/Format/FormatTest.cpp