aboutsummaryrefslogtreecommitdiff
path: root/lib/Format/Format.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-01-02 14:40:02 +0000
committerDaniel Jasper <djasper@google.com>2013-01-02 14:40:02 +0000
commit723f0304eaaf1aed20aece9021a1bb8578477e75 (patch)
tree90230f8807846f791a24abe3c85a354affe1dc80 /lib/Format/Format.cpp
parent41f693525df3577f5b96a8bc3595d51e0fef8e55 (diff)
Prefer to break after operators over breaking after "(".
Before: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa( aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa && aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa); After: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa && aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa); git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171386 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/Format.cpp')
-rw-r--r--lib/Format/Format.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp
index 49913aee2e..8f77c77a8e 100644
--- a/lib/Format/Format.cpp
+++ b/lib/Format/Format.cpp
@@ -345,7 +345,7 @@ private:
if (Left.Tok.is(tok::semi) || Left.Tok.is(tok::comma))
return 0;
if (Left.Tok.is(tok::l_paren))
- return 2;
+ return 20;
prec::Level Level = getPrecedence(Line.Tokens[Index]);
if (Level != prec::Unknown)