chore: Enable clang-tidy misc checks (#6655)

This commit is contained in:
Alex Kremer
2026-03-31 18:29:45 +01:00
committed by GitHub
parent c3fae847f3
commit 2502befb42
469 changed files with 3915 additions and 3965 deletions

View File

@@ -13,7 +13,7 @@ struct TER_test : public beast::unit_test::suite
{
for (auto i = -400; i < 400; ++i)
{
TER t = TER::fromInt(i);
TER const t = TER::fromInt(i);
auto inRange = isTelLocal(t) || isTemMalformed(t) || isTefFailure(t) || isTerRetry(t) ||
isTesSuccess(t) || isTecClaim(t);
@@ -75,7 +75,7 @@ struct TER_test : public beast::unit_test::suite
std::enable_if_t<I1 != 0>
testIterate(Tup const& tup, beast::unit_test::suite& s)
{
Func<I1, I2> func;
Func<I1, I2> const func;
func(tup, s);
testIterate<I1 - 1, I2, Func>(tup, s);
}
@@ -89,7 +89,7 @@ struct TER_test : public beast::unit_test::suite
std::enable_if_t<I1 == 0 && I2 != 0>
testIterate(Tup const& tup, beast::unit_test::suite& s)
{
Func<I1, I2> func;
Func<I1, I2> const func;
func(tup, s);
testIterate<std::tuple_size<Tup>::value - 1, I2 - 1, Func>(tup, s);
}
@@ -103,7 +103,7 @@ struct TER_test : public beast::unit_test::suite
std::enable_if_t<I1 == 0 && I2 == 0>
testIterate(Tup const& tup, beast::unit_test::suite& s)
{
Func<I1, I2> func;
Func<I1, I2> const func;
func(tup, s);
}