mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 08:46:46 +00:00
chore: Enable clang-tidy v21 new checks (#7031)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user