[PATCH] D115065: [clang-format][NFC] Merge two calls of isOneOf
Björn Schäpers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Dec 4 12:30:31 PST 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG5878ac7d2db6: [clang-format][NFC] Merge two calls of isOneOf (authored by HazardyKnusperkeks).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115065/new/
https://reviews.llvm.org/D115065
Files:
clang/lib/Format/TokenAnnotator.cpp
Index: clang/lib/Format/TokenAnnotator.cpp
===================================================================
--- clang/lib/Format/TokenAnnotator.cpp
+++ clang/lib/Format/TokenAnnotator.cpp
@@ -2034,9 +2034,8 @@
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))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115065.391860.patch
Type: text/x-patch
Size: 893 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211204/f469352e/attachment-0001.bin>
More information about the cfe-commits
mailing list