mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 16:56:48 +00:00
chore: Enable clang-tidy v21 new checks (#7031)
This commit is contained in:
@@ -14,7 +14,7 @@ struct SeqProxy_test : public beast::unit_test::suite
|
||||
static constexpr bool
|
||||
expectValues(SeqProxy seqProx, std::uint32_t value, SeqProxy::Type type)
|
||||
{
|
||||
bool const expectSeq{type == SeqProxy::seq};
|
||||
bool const expectSeq{type == SeqProxy::Type::seq};
|
||||
return (seqProx.value() == value) && (seqProx.isSeq() == expectSeq) &&
|
||||
(seqProx.isTicket() == !expectSeq);
|
||||
}
|
||||
@@ -65,8 +65,8 @@ struct SeqProxy_test : public beast::unit_test::suite
|
||||
// expected in the wild. Nevertheless they are tested here.
|
||||
// But so are values of 1, which are expected to occur in the wild.
|
||||
static constexpr std::uint32_t uintMax{std::numeric_limits<std::uint32_t>::max()};
|
||||
static constexpr SeqProxy::Type seq{SeqProxy::seq};
|
||||
static constexpr SeqProxy::Type ticket{SeqProxy::ticket};
|
||||
static constexpr SeqProxy::Type seq{SeqProxy::Type::seq};
|
||||
static constexpr SeqProxy::Type ticket{SeqProxy::Type::ticket};
|
||||
|
||||
static constexpr SeqProxy seqZero{seq, 0};
|
||||
static constexpr SeqProxy seqSmall{seq, 1};
|
||||
|
||||
Reference in New Issue
Block a user