summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/ContinuationIndenter.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-11-25 11:08:59 +0000
committerDaniel Jasper <djasper@google.com>2013-11-25 11:08:59 +0000
commit5500f6163fbe80ab1991434e03244a1f62f7fdce (patch)
treecdb5109a91cc44efeef447c621e79f8310c7b05c /clang/lib/Format/ContinuationIndenter.cpp
parent89ccb616bd1781fdcdfd4761166748ea42211e45 (diff)
downloadbcm5719-llvm-5500f6163fbe80ab1991434e03244a1f62f7fdce.tar.gz
bcm5719-llvm-5500f6163fbe80ab1991434e03244a1f62f7fdce.zip
clang-format: Refactor calculation of lines intersecting with -lines.
No functional changes intended. However, it seems to have found a buggy behavior in one of the tests. I think this structure is generally desirable and it will make a planned bugfix significantly easier. llvm-svn: 195634
Diffstat (limited to 'clang/lib/Format/ContinuationIndenter.cpp')
-rw-r--r--clang/lib/Format/ContinuationIndenter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Format/ContinuationIndenter.cpp b/clang/lib/Format/ContinuationIndenter.cpp
index 3a49ec43f9c..a8891fcc2f8 100644
--- a/clang/lib/Format/ContinuationIndenter.cpp
+++ b/clang/lib/Format/ContinuationIndenter.cpp
@@ -580,8 +580,8 @@ unsigned ContinuationIndenter::moveStateToNextToken(LineState &State,
//
// instead of:
// SomeFunction(a, [] {
- // f(); // break
- // });
+ // f(); // break
+ // });
for (unsigned i = 0; i != Current.MatchingParen->FakeRParens; ++i)
State.Stack.pop_back();
NewIndent = State.Stack.back().LastSpace + Style.IndentWidth;
OpenPOWER on IntegriCloud