diff options
author | Daniel Jasper <djasper@google.com> | 2014-10-27 13:25:59 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2014-10-27 13:25:59 +0000 |
commit | ce2fdb0a0ab0d9032de5bd16d8c832fa1884b9d0 (patch) | |
tree | 745691961e5f2e8939287c6a3cf68f97e47bc379 /clang/lib/Format/ContinuationIndenter.cpp | |
parent | 729be144354ac6574ed5c0a8677adf2ddde94b35 (diff) | |
download | bcm5719-llvm-ce2fdb0a0ab0d9032de5bd16d8c832fa1884b9d0.tar.gz bcm5719-llvm-ce2fdb0a0ab0d9032de5bd16d8c832fa1884b9d0.zip |
clang-format: [Proto] Change formatting text-formatted options.
Before:
optional Type type = 1 [(mutate_options) = {vital : true
abc : false}];
After:
optional Type type = 1 [(mutate_options) = {
vital : true
abc : false
}];
llvm-svn: 220679
Diffstat (limited to 'clang/lib/Format/ContinuationIndenter.cpp')
-rw-r--r-- | clang/lib/Format/ContinuationIndenter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Format/ContinuationIndenter.cpp b/clang/lib/Format/ContinuationIndenter.cpp index 4c93c7f548c..82dffd6fff5 100644 --- a/clang/lib/Format/ContinuationIndenter.cpp +++ b/clang/lib/Format/ContinuationIndenter.cpp @@ -150,8 +150,7 @@ bool ContinuationIndenter::mustBreak(const LineState &State) { Previous.Type != TT_InlineASMColon && Previous.Type != TT_ConditionalExpr && nextIsMultilineString(State)) return true; - if (Style.Language != FormatStyle::LK_Proto && - ((Previous.Type == TT_DictLiteral && Previous.is(tok::l_brace)) || + if (((Previous.Type == TT_DictLiteral && Previous.is(tok::l_brace)) || Previous.Type == TT_ArrayInitializerLSquare) && Style.ColumnLimit > 0 && getLengthToMatchingParen(Previous) + State.Column > getColumnLimit(State)) |