summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/ContinuationIndenter.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2016-12-19 11:14:23 +0000
committerDaniel Jasper <djasper@google.com>2016-12-19 11:14:23 +0000
commit7aacf468c013cd8a4e5cb25ba10d231f0c22ccdd (patch)
tree7557d923ac47368099314cb5a15f7900d331c521 /clang/lib/Format/ContinuationIndenter.cpp
parent93459d3142e78bec125075c6b455b734fb7dfc5a (diff)
downloadbcm5719-llvm-7aacf468c013cd8a4e5cb25ba10d231f0c22ccdd.tar.gz
bcm5719-llvm-7aacf468c013cd8a4e5cb25ba10d231f0c22ccdd.zip
clang-format: Slightly tweak the behavior of <<-wrapping.
Before: SomeLongLoggingStatementOrMacro() << "Some long text " << some_variable << "\n"; Before: SomeLongLoggingStatementOrMacro() << "Some long text " << some_variable << "\n"; Short logging statements are already special cased in a different part of the code. llvm-svn: 290094
Diffstat (limited to 'clang/lib/Format/ContinuationIndenter.cpp')
-rw-r--r--clang/lib/Format/ContinuationIndenter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Format/ContinuationIndenter.cpp b/clang/lib/Format/ContinuationIndenter.cpp
index aa6f37bd199..bf075ab6d53 100644
--- a/clang/lib/Format/ContinuationIndenter.cpp
+++ b/clang/lib/Format/ContinuationIndenter.cpp
@@ -460,7 +460,7 @@ unsigned ContinuationIndenter::addTokenOnNewLine(LineState &State,
Penalty += State.NextToken->SplitPenalty;
// Breaking before the first "<<" is generally not desirable if the LHS is
- // short. Also always add the penalty if the LHS is split over mutliple lines
+ // short. Also always add the penalty if the LHS is split over multiple lines
// to avoid unnecessary line breaks that just work around this penalty.
if (NextNonComment->is(tok::lessless) &&
State.Stack.back().FirstLessLess == 0 &&
OpenPOWER on IntegriCloud