diff options
author | Manuel Klimek <klimek@google.com> | 2017-09-20 09:51:03 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2017-09-20 09:51:03 +0000 |
commit | 89628f641407c2b03899509b9a3317f792f634c3 (patch) | |
tree | dda83cde576171a7bbce3f6ebec6d7919c3f22f2 /clang/lib/Format/FormatTokenLexer.cpp | |
parent | 33ec43d653093d7dea3c2d5eefe82e73f67a8f12 (diff) | |
download | bcm5719-llvm-89628f641407c2b03899509b9a3317f792f634c3.tar.gz bcm5719-llvm-89628f641407c2b03899509b9a3317f792f634c3.zip |
clang-format clang-format.
llvm-svn: 313744
Diffstat (limited to 'clang/lib/Format/FormatTokenLexer.cpp')
-rw-r--r-- | clang/lib/Format/FormatTokenLexer.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/clang/lib/Format/FormatTokenLexer.cpp b/clang/lib/Format/FormatTokenLexer.cpp index 5e5bfc86923..6caf9716b59 100644 --- a/clang/lib/Format/FormatTokenLexer.cpp +++ b/clang/lib/Format/FormatTokenLexer.cpp @@ -96,12 +96,10 @@ void FormatTokenLexer::tryMergePreviousTokens() { } if (Style.Language == FormatStyle::LK_Java) { - static const tok::TokenKind JavaRightLogicalShift[] = {tok::greater, - tok::greater, - tok::greater}; - static const tok::TokenKind JavaRightLogicalShiftAssign[] = {tok::greater, - tok::greater, - tok::greaterequal}; + static const tok::TokenKind JavaRightLogicalShift[] = { + tok::greater, tok::greater, tok::greater}; + static const tok::TokenKind JavaRightLogicalShiftAssign[] = { + tok::greater, tok::greater, tok::greaterequal}; if (tryMergeTokens(JavaRightLogicalShift, TT_BinaryOperator)) return; if (tryMergeTokens(JavaRightLogicalShiftAssign, TT_BinaryOperator)) @@ -162,9 +160,8 @@ bool FormatTokenLexer::tryMergeTokens(ArrayRef<tok::TokenKind> Kinds, return false; unsigned AddLength = 0; for (unsigned i = 1; i < Kinds.size(); ++i) { - if (!First[i]->is(Kinds[i]) || - First[i]->WhitespaceRange.getBegin() != - First[i]->WhitespaceRange.getEnd()) + if (!First[i]->is(Kinds[i]) || First[i]->WhitespaceRange.getBegin() != + First[i]->WhitespaceRange.getEnd()) return false; AddLength += First[i]->TokenText.size(); } |