summaryrefslogtreecommitdiff
path: root/lib/Format/Format.cpp
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
commit261a28e368fef81bd16faddb2e741e33ad677b41 (patch)
treefa8b9bf1b2c6fdf3c363103bfa0ffe1d284246a1 /lib/Format/Format.cpp
parent2c137f4fcc5cfa10bb9ca073161b0292c990bece (diff)
downloadclang-261a28e368fef81bd16faddb2e741e33ad677b41.tar.gz
clang-261a28e368fef81bd16faddb2e741e33ad677b41.tar.bz2
clang-261a28e368fef81bd16faddb2e741e33ad677b41.tar.xz
clang-format: Don't merge simple blocks in case statements.
Before: switch (a) { case 1: { return 'a'; } } After: switch (a) { case 1: { return 'a'; } } git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205611 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/Format.cpp')
-rw-r--r--lib/Format/Format.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp
index cb07cb56a5..44116a8f8e 100644
--- a/lib/Format/Format.cpp
+++ b/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;