diff options
Diffstat (limited to 'lib/Format/Format.cpp')
-rw-r--r-- | lib/Format/Format.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index 1205c424b1..a371aa3c4a 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -1049,9 +1049,8 @@ private: if (Left.ClosesTemplateDeclaration) return true; if (Left.Type == TT_PointerOrReference || Left.Type == TT_TemplateCloser || - Right.Type == TT_ConditionalExpr) { + Left.Type == TT_UnaryOperator || Right.Type == TT_ConditionalExpr) return false; - } if (Left.is(tok::equal) && CurrentLineType == LT_VirtualFunctionDecl) return false; |