summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/ContinuationIndenter.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2015-04-07 06:41:24 +0000
committerDaniel Jasper <djasper@google.com>2015-04-07 06:41:24 +0000
commit9dedc775d7b436e5f8f961413c3fd867ea8be53e (patch)
tree6a4a1adc9a322bdac1304173cc44d1cc7dfb797c /clang/lib/Format/ContinuationIndenter.cpp
parent2be1bbea7ec6f74f1415912005c05992548d06b6 (diff)
downloadbcm5719-llvm-9dedc775d7b436e5f8f961413c3fd867ea8be53e.tar.gz
bcm5719-llvm-9dedc775d7b436e5f8f961413c3fd867ea8be53e.zip
clang-format: Indent relative to the ./-> and not the function name.
Before: aaaaaaaaaaa // .aaaa( // bbbb) // This is different .. .aaaa( // cccc); // .. from this. After: aaaaaaaaaaa // .aaaa( // bbbb) // This is identical .. .aaaa( // cccc); // .. to this. llvm-svn: 234300
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 83fd6ee2497..3e4bf3e88a3 100644
--- a/clang/lib/Format/ContinuationIndenter.cpp
+++ b/clang/lib/Format/ContinuationIndenter.cpp
@@ -634,7 +634,7 @@ unsigned ContinuationIndenter::moveStateToNextToken(LineState &State,
std::min(State.LowestLevelOnLine, Current.NestingLevel);
if (Current.isMemberAccess())
State.Stack.back().StartOfFunctionCall =
- Current.LastOperator ? 0 : State.Column + Current.ColumnWidth;
+ Current.LastOperator ? 0 : State.Column;
if (Current.is(TT_SelectorName))
State.Stack.back().ObjCSelectorNameFound = true;
if (Current.is(TT_CtorInitializerColon)) {
OpenPOWER on IntegriCloud