mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 16:56:48 +00:00
chore: Enable clang-tidy misc checks (#6655)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user