diff options
Diffstat (limited to 'lib/Format/Format.cpp')
-rw-r--r-- | lib/Format/Format.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index 2952067c39..9b6067c37b 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -596,12 +596,9 @@ private: Current.isNot(tok::comment)) State.Stack[ParenLevel].HasMultiParameterLine = true; - - // Top-level spaces that are not part of assignments are exempt as that - // mostly leads to better results. + // Top-level spaces are exempt as that mostly leads to better results. State.Column += Spaces; - if (Spaces > 0 && - (ParenLevel != 0 || getPrecedence(Previous) == prec::Assignment)) + if (Spaces > 0 && ParenLevel != 0) State.Stack[ParenLevel].LastSpace = State.Column; } |