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

@@ -73,7 +73,7 @@ namespace xrpl::test {
struct AMM_test : public jtx::AMMTest
{
// Use small Number mantissas for the life of this test.
NumberMantissaScaleGuard const sg_{xrpl::MantissaRange::small};
NumberMantissaScaleGuard const sg_{xrpl::MantissaRange::mantissa_scale::small};
private:
static FeatureBitset
@@ -5802,7 +5802,7 @@ private:
Env const env(*this, features, std::make_unique<CaptureLogs>(&logs));
auto rules = env.current()->rules();
CurrentTransactionRulesGuard const rg(rules);
NumberMantissaScaleGuard const sg(MantissaRange::small);
NumberMantissaScaleGuard const sg(MantissaRange::mantissa_scale::small);
for (auto const& t : tests)
{
@@ -6792,8 +6792,9 @@ private:
{
auto const [amount, amount2, lptBalance] = amm.balances(GBP, EUR);
NumberMantissaScaleGuard const sg(MantissaRange::small);
NumberRoundModeGuard const g(env.enabled(fixAMMv1_3) ? Number::upward : Number::getround());
NumberMantissaScaleGuard const sg(MantissaRange::mantissa_scale::small);
NumberRoundModeGuard const g(
env.enabled(fixAMMv1_3) ? Number::rounding_mode::upward : Number::getround());
auto const res = root2(amount * amount2);
if (shouldFail)