diff options
Diffstat (limited to 'clang/lib/Format/ContinuationIndenter.cpp')
-rw-r--r-- | clang/lib/Format/ContinuationIndenter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Format/ContinuationIndenter.cpp b/clang/lib/Format/ContinuationIndenter.cpp index 18f0c33452d..16b1147fd58 100644 --- a/clang/lib/Format/ContinuationIndenter.cpp +++ b/clang/lib/Format/ContinuationIndenter.cpp @@ -562,11 +562,11 @@ unsigned ContinuationIndenter::moveStateToNextToken(LineState &State, BreakBeforeParameter = true; } else { NewIndent = State.Stack.back().LastSpace; - if (Style.Cpp11BracedListStyle) - NewIndent += Style.ContinuationIndentWidth; - else { + if (Current.opensBlockTypeList(Style)) { NewIndent += Style.IndentWidth; ++NewIndentLevel; + } else { + NewIndent += Style.ContinuationIndentWidth; } } const FormatToken *NextNoComment = Current.getNextNonComment(); |