From 261a28e368fef81bd16faddb2e741e33ad677b41 Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Fri, 4 Apr 2014 06:46:23 +0000 Subject: 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 --- lib/Format/Format.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Format/Format.cpp') 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; -- cgit v1.2.3