summaryrefslogtreecommitdiff
path: root/lib/Format
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2016-02-21 13:52:32 +0000
committerDimitry Andric <dim@FreeBSD.org>2016-02-21 13:52:32 +0000
commit4d7895b3fe2123cd634a3add8489cf4e2579f5ac (patch)
treebd18d1c977939c5f886a223455028f9784d044ac /lib/Format
parentd4aec3a22f5b4c987be1c3815fdadbac72c6de5b (diff)
downloadsrc-test2-4d7895b3fe2123cd634a3add8489cf4e2579f5ac.tar.gz
src-test2-4d7895b3fe2123cd634a3add8489cf4e2579f5ac.zip
Notes
Diffstat (limited to 'lib/Format')
-rw-r--r--lib/Format/ContinuationIndenter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Format/ContinuationIndenter.cpp b/lib/Format/ContinuationIndenter.cpp
index 11183355f73a..b820f53db527 100644
--- a/lib/Format/ContinuationIndenter.cpp
+++ b/lib/Format/ContinuationIndenter.cpp
@@ -182,7 +182,7 @@ bool ContinuationIndenter::mustBreak(const LineState &State) {
return true;
unsigned NewLineColumn = getNewLineColumn(State);
- if (Current.isMemberAccess() &&
+ if (Current.isMemberAccess() && Style.ColumnLimit != 0 &&
State.Column + getLengthToNextOperator(Current) > Style.ColumnLimit &&
(State.Column > NewLineColumn ||
Current.NestingLevel < State.StartOfLineLevel))