[clang] 5878ac7 - [clang-format][NFC] Merge two calls of isOneOf
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Sat Dec 4 12:30:13 PST 2021
Author: Björn Schäpers
Date: 2021-12-04T21:29:29+01:00
New Revision: 5878ac7d2db692779c0d049a13cb29ed19d51ca9
URL: https://github.com/llvm/llvm-project/commit/5878ac7d2db692779c0d049a13cb29ed19d51ca9
DIFF: https://github.com/llvm/llvm-project/commit/5878ac7d2db692779c0d049a13cb29ed19d51ca9.diff
LOG: [clang-format][NFC] Merge two calls of isOneOf
Differential Revision: https://reviews.llvm.org/D115065
Added:
Modified:
clang/lib/Format/TokenAnnotator.cpp
Removed:
################################################################################
diff --git a/clang/lib/Format/TokenAnnotator.cpp b/clang/lib/Format/TokenAnnotator.cpp
index a94d8cdc3b04..3633c7cf2c27 100644
--- a/clang/lib/Format/TokenAnnotator.cpp
+++ b/clang/lib/Format/TokenAnnotator.cpp
@@ -2034,9 +2034,8 @@ class AnnotatingParser {
tok::comma, tok::semi, tok::kw_return, tok::colon,
tok::kw_co_return, tok::kw_co_await,
tok::kw_co_yield, tok::equal, tok::kw_delete,
- tok::kw_sizeof, tok::kw_throw) ||
- PrevToken->isOneOf(TT_BinaryOperator, TT_ConditionalExpr,
- TT_UnaryOperator, TT_CastRParen))
+ tok::kw_sizeof, tok::kw_throw, TT_BinaryOperator,
+ TT_ConditionalExpr, TT_UnaryOperator, TT_CastRParen))
return TT_UnaryOperator;
if (NextToken->is(tok::l_square) && NextToken->isNot(TT_LambdaLSquare))
More information about the cfe-commits
mailing list