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

@@ -65,7 +65,7 @@ class PaymentSandbox_test : public beast::unit_test::suite
env(offer(snd, USD_gw1(2), USD_gw2(2)), txflags(tfPassive));
env(offer(snd, USD_gw2(2), USD_gw1(2)), txflags(tfPassive));
PathSet paths(Path(gw1, USD_gw2, gw2), Path(gw2, USD_gw1, gw1));
PathSet const paths(Path(gw1, USD_gw2, gw2), Path(gw2, USD_gw1, gw1));
env(pay(snd, rcv, any(USD_gw1(4))),
json(paths.json()),
@@ -266,16 +266,16 @@ class PaymentSandbox_test : public beast::unit_test::suite
using namespace jtx;
Env env(*this, features);
Env const env(*this, features);
Account const gw("gw");
Account const alice("alice");
auto const USD = gw["USD"];
auto const issue = USD.issue();
STAmount tinyAmt(
STAmount const tinyAmt(
issue, STAmount::cMinValue, STAmount::cMinOffset + 1, false, STAmount::unchecked{});
STAmount hugeAmt(
STAmount const hugeAmt(
issue, STAmount::cMaxValue, STAmount::cMaxOffset - 1, false, STAmount::unchecked{});
ApplyViewImpl av(&*env.current(), tapNONE);
@@ -333,7 +333,7 @@ class PaymentSandbox_test : public beast::unit_test::suite
testcase("balanceHook");
using namespace jtx;
Env env(*this, features);
Env const env(*this, features);
Account const gw("gw");
auto const USD = gw["USD"];