chore: Enable clang-tidy v21 new checks (#7031)

This commit is contained in:
Alex Kremer
2026-04-29 16:17:35 +01:00
committed by GitHub
parent 46b997b774
commit f7275b7ad9
259 changed files with 2193 additions and 1888 deletions

View File

@@ -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};