aboutsummaryrefslogtreecommitdiff
path: root/lib/Format/Format.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Format/Format.cpp')
-rw-r--r--lib/Format/Format.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp
index 89fbf61da0..ec8b02ffca 100644
--- a/lib/Format/Format.cpp
+++ b/lib/Format/Format.cpp
@@ -386,8 +386,7 @@ private:
}
State.Stack[ParenLevel].LastSpace = State.Column;
- if (Current.is(tok::colon) && CurrentLineType != LT_ObjCMethodDecl &&
- State.NextToken->Type != TT_ConditionalExpr)
+ if (Current.is(tok::colon) && State.NextToken->Type != TT_ConditionalExpr)
State.Stack[ParenLevel].Indent += 2;
} else {
if (Current.is(tok::equal) && RootToken.is(tok::kw_for))