canBreakBefore() does not allow breaking after ':' for LT_ObjCMethodDecl lines,
so if Newline is true in addTokenToState() for ':' then LT_ObjCMethodDecl
cannot be set. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172307
91177308-0d34-0410-b5e6-
96231b3b80d8
}
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))