aboutsummaryrefslogtreecommitdiff
path: root/lib/Format/Format.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-01-08 20:03:18 +0000
committerDaniel Jasper <djasper@google.com>2013-01-08 20:03:18 +0000
commit2db356d619fbf56e342fbc3fd5301e2e539e51b6 (patch)
treedb36a7a04d63b66bd07bfe5d550a68e76605184a /lib/Format/Format.cpp
parenta6d2020412455ec582454811435202eadc037081 (diff)
Don't break after unary operators.
Before: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaaaaa, * aaaaaaaaaaaaaaaaaaaaaaaaaaaaa); After: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa( aaaaaaaaaaaaaaaaaaaaaaaaaaaa, *aaaaaaaaaaaaaaaaaaaaaaaaaaaaa); git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171890 91177308-0d34-0410-b5e6-96231b3b80d8
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 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;