summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/TokenAnnotator.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-06-10 13:27:57 +0000
committerDaniel Jasper <djasper@google.com>2014-06-10 13:27:57 +0000
commitecaba1799656d6ec91632e8100986be2d57319e7 (patch)
tree04e3348c6397a7630ba4b5c9142123833612eb71 /clang/lib/Format/TokenAnnotator.cpp
parent6c8682e2e99cde2c1511d804e29a0816991f00ba (diff)
downloadbcm5719-llvm-ecaba1799656d6ec91632e8100986be2d57319e7.tar.gz
bcm5719-llvm-ecaba1799656d6ec91632e8100986be2d57319e7.zip
clang-format: Increase penalty for wrapping array subscript expressions
Before: aaaaaaaaaaa aaaaaaaaaaaaaaa = aaaaaaaaaaaaaaaaaaaaaaaaaa->aaaaaaaaa[0].aaaaaaa [0].aaaaaaaaaaaaaaaaaaaaaa(); After: aaaaaaaaaaa aaaaaaaaaaaaaaa = aaaaaaaaaaaaaaaaaaaaaaaaaa->aaaaaaaaa[0] .aaaaaaa[0] .aaaaaaaaaaaaaaaaaaaaaa(); llvm-svn: 210529
Diffstat (limited to 'clang/lib/Format/TokenAnnotator.cpp')
-rw-r--r--clang/lib/Format/TokenAnnotator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Format/TokenAnnotator.cpp b/clang/lib/Format/TokenAnnotator.cpp
index e6aa61dddba..516aaebe6a2 100644
--- a/clang/lib/Format/TokenAnnotator.cpp
+++ b/clang/lib/Format/TokenAnnotator.cpp
@@ -1309,7 +1309,7 @@ unsigned TokenAnnotator::splitPenalty(const AnnotatedLine &Line,
if (Style.Language == FormatStyle::LK_Proto)
return 1;
if (Right.Type != TT_ObjCMethodExpr)
- return 250;
+ return 500;
}
if (Right.Type == TT_StartOfName || Right.is(tok::kw_operator)) {
if (Line.First->is(tok::kw_for) && Right.PartOfMultiVariableDeclStmt)
OpenPOWER on IntegriCloud