summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-10-27 13:25:59 +0000
committerDaniel Jasper <djasper@google.com>2014-10-27 13:25:59 +0000
commitce2fdb0a0ab0d9032de5bd16d8c832fa1884b9d0 (patch)
tree745691961e5f2e8939287c6a3cf68f97e47bc379 /clang/lib
parent729be144354ac6574ed5c0a8677adf2ddde94b35 (diff)
downloadbcm5719-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')
-rw-r--r--clang/lib/Format/ContinuationIndenter.cpp3
-rw-r--r--clang/lib/Format/TokenAnnotator.cpp2
2 files changed, 2 insertions, 3 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))
diff --git a/clang/lib/Format/TokenAnnotator.cpp b/clang/lib/Format/TokenAnnotator.cpp
index 18008623ec1..a324d2fa472 100644
--- a/clang/lib/Format/TokenAnnotator.cpp
+++ b/clang/lib/Format/TokenAnnotator.cpp
@@ -1768,7 +1768,7 @@ bool TokenAnnotator::mustBreakBefore(const AnnotatedLine &Line,
return Right.NewlinesBefore > 0;
} else if (Right.Previous->is(tok::l_brace) && Right.NestingLevel == 1 &&
Style.Language == FormatStyle::LK_Proto) {
- // Don't enums onto single lines in protocol buffers.
+ // Don't put enums onto single lines in protocol buffers.
return true;
} else if (Style.Language == FormatStyle::LK_JavaScript &&
Right.is(tok::r_brace) && Left.is(tok::l_brace) &&
OpenPOWER on IntegriCloud