diff options
Diffstat (limited to 'clang/lib/Format/Format.cpp')
| -rw-r--r-- | clang/lib/Format/Format.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index 5cb5fef9d54..e85ecd21c2e 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -543,7 +543,8 @@ private:        if (State.Stack.back().AvoidBinPacking) {          // If we are breaking after '(', '{', '<', this is not bin packing          // unless AllowAllParametersOfDeclarationOnNextLine is false. -        if ((Previous.isNot(tok::l_paren) && Previous.isNot(tok::l_brace)) || +        if (!(Previous.isOneOf(tok::l_paren, tok::l_brace) || +              Previous.Type == TT_BinaryOperator) ||              (!Style.AllowAllParametersOfDeclarationOnNextLine &&               Line.MustBeDeclaration))            State.Stack.back().BreakBeforeParameter = true; | 

