diff options
author | Nico Weber <nicolasweber@gmx.de> | 2013-01-18 05:50:57 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2013-01-18 05:50:57 +0000 |
commit | a5510af53e9e18ae106a222f84fde38b524989bf (patch) | |
tree | 18979fce280146e8829e3ad7c5ff80848b8039eb /clang/lib/Format/Format.cpp | |
parent | 45d9f4b569d388a66bbc7f99fdc4778195a7f89b (diff) | |
download | bcm5719-llvm-a5510af53e9e18ae106a222f84fde38b524989bf.tar.gz bcm5719-llvm-a5510af53e9e18ae106a222f84fde38b524989bf.zip |
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
Diffstat (limited to 'clang/lib/Format/Format.cpp')
-rw-r--r-- | clang/lib/Format/Format.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index 4b994e3b759..999d6210fcd 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -952,10 +952,10 @@ public: 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; |