summaryrefslogtreecommitdiff
path: root/lib/Format/Format.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-07-15 14:12:30 +0000
committerDaniel Jasper <djasper@google.com>2013-07-15 14:12:30 +0000
commit3e12e87f98538c55c1eab79df79e5a00df6de8ec (patch)
tree843b021f821307b7414b8f9ba7ffe084c9d01d4b /lib/Format/Format.cpp
parentd58915eae3849225070230c3b89ebf3d987a3270 (diff)
downloadclang-3e12e87f98538c55c1eab79df79e5a00df6de8ec.tar.gz
clang-3e12e87f98538c55c1eab79df79e5a00df6de8ec.tar.bz2
clang-3e12e87f98538c55c1eab79df79e5a00df6de8ec.tar.xz
Improve formatting of operator<< chains.
Before: llvm::outs() << "aaaaaaaaaaaaaaaa: " << aaaaaaaaaaaaaaaa << "aaaaaaaaaaaaaaaa: " << aaaaaaaaaaaaaaaa << "aaaaaaaaaaaaaaaa: " << aaaaaaaaaaaaaaaa; After: llvm::outs() << "aaaaaaaaaaaaaaaa: " << aaaaaaaaaaaaaaaa << "aaaaaaaaaaaaaaaa: " << aaaaaaaaaaaaaaaa << "aaaaaaaaaaaaaaaa: " << aaaaaaaaaaaaaaaa; git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186320 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 e1a0874e06..f66d95c910 100644
--- a/lib/Format/Format.cpp
+++ b/lib/Format/Format.cpp
@@ -127,7 +127,7 @@ namespace format {
void setDefaultPenalties(FormatStyle &Style) {
Style.PenaltyBreakComment = 45;
- Style.PenaltyBreakFirstLessLess = 100;
+ Style.PenaltyBreakFirstLessLess = 180;
Style.PenaltyBreakString = 1000;
Style.PenaltyExcessCharacter = 1000000;
}