summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-04-04 06:46:23 +0000
committerDaniel Jasper <djasper@google.com>2014-04-04 06:46:23 +0000
commit922349cdba95b853baf7efe0ebf62e89d479a75e (patch)
tree02d65f5035457190d9ca35ca3d5b429cb57858d9 /clang/lib/Format
parent840beec2d0855db9165c02bc29a79af8e357fc24 (diff)
downloadbcm5719-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/lib/Format')
-rw-r--r--clang/lib/Format/Format.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index cb07cb56a55..44116a8f8e3 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -623,7 +623,7 @@ private:
AnnotatedLine &Line = **I;
if (Line.First->isOneOf(tok::kw_if, tok::kw_while, tok::kw_do, tok::r_brace,
tok::kw_else, tok::kw_try, tok::kw_catch,
- tok::kw_for,
+ tok::kw_for, tok::kw_case,
// This gets rid of all ObjC @ keywords and methods.
tok::at, tok::minus, tok::plus))
return 0;
OpenPOWER on IntegriCloud