summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2016-01-04 12:41:11 +0000
committerDaniel Jasper <djasper@google.com>2016-01-04 12:41:11 +0000
commit42011b210680752f8d20549cc8b838573d4acf98 (patch)
tree1f3b9dbc71e0c1e7dc4c34bc86a276263d76d95a /clang/lib/Format
parent5a02dc46cbb4a5d16784feb105e1f434f3c4a76a (diff)
downloadbcm5719-llvm-42011b210680752f8d20549cc8b838573d4acf98.tar.gz
bcm5719-llvm-42011b210680752f8d20549cc8b838573d4acf98.zip
clang-format: Fix corner case in builder-type call formatting.
Before: return aaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaa) .aaaa(aaaaaaaaaaaaaa); After: return aaaaaaaaaaaaaaaa .aaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaa) .aaaa(aaaaaaaaaaaaaa); llvm-svn: 256750
Diffstat (limited to 'clang/lib/Format')
-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 a9b7656889a..badba16a891 100644
--- a/clang/lib/Format/TokenAnnotator.cpp
+++ b/clang/lib/Format/TokenAnnotator.cpp
@@ -1769,7 +1769,7 @@ unsigned TokenAnnotator::splitPenalty(const AnnotatedLine &Line,
// which might otherwise be blown up onto many lines. Here, clang-format
// won't produce "hanging" indents anyway as there is no other trailing
// call.
- return Right.LastOperator ? 150 : 40;
+ return Right.LastOperator ? 150 : 35;
}
if (Right.is(TT_TrailingAnnotation) &&
OpenPOWER on IntegriCloud