diff options
author | Daniel Jasper <djasper@google.com> | 2013-01-28 13:31:35 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-01-28 13:31:35 +0000 |
commit | 02b771e3110f7799f93d5d17dc6fefc5713387c3 (patch) | |
tree | bb914d3077491be622f82064cee86467cead695b /lib/Format/Format.cpp | |
parent | 3b9a8fc5bee5434bebc9058646896423adac625b (diff) |
Make continuations in constructor initializers consistent.
Before:
Constructor
: LooooooooooooooooooooongVariable(
LooooooooooooooooooooongValue) {}
After:
Constructor
: LooooooooooooooooooooongVariable(
LooooooooooooooooooooongValue) {}
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173685 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/Format.cpp')
-rw-r--r-- | lib/Format/Format.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index a6a53f48fd..27d47109bd 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -625,7 +625,8 @@ private: // Top-level spaces are exempt as that mostly leads to better results. State.Stack.back().LastSpace = State.Column; else if ((Previous.Type == TT_BinaryOperator || - Previous.Type == TT_ConditionalExpr) && + Previous.Type == TT_ConditionalExpr || + Previous.Type == TT_CtorInitializerColon) && getPrecedence(Previous) != prec::Assignment) State.Stack.back().LastSpace = State.Column; else if (Previous.ParameterCount > 1 && |