chore: Enable clang-tidy modernize checks (#6975)

Co-authored-by: Bart <11445373+bthomee@users.noreply.github.com>
Co-authored-by: Bart <bthomee@users.noreply.github.com>
This commit is contained in:
Alex Kremer
2026-04-21 16:32:51 +01:00
committed by GitHub
parent ab887f5049
commit ce3951bbb3
699 changed files with 4626 additions and 5292 deletions

View File

@@ -45,8 +45,7 @@
#include <memory>
#include <vector>
namespace xrpl {
namespace test {
namespace xrpl::test {
class MultiSign_test : public beast::unit_test::suite
{
@@ -363,7 +362,7 @@ public:
env.require(owners(alice, 1));
msig phantoms{bogie, demon};
std::reverse(phantoms.signers.begin(), phantoms.signers.end());
std::ranges::reverse(phantoms.signers);
std::uint32_t const aliceSeq = env.seq(alice);
env(noop(alice),
phantoms,
@@ -1202,7 +1201,7 @@ public:
STTx local = *(tx.stx);
// Unsort the Signers array.
auto& signers = local.peekFieldArray(sfSigners);
std::reverse(signers.begin(), signers.end());
std::ranges::reverse(signers);
// Signature should fail.
auto const info = submitSTTx(local);
BEAST_EXPECT(
@@ -1564,5 +1563,4 @@ public:
BEAST_DEFINE_TESTSUITE(MultiSign, app, xrpl);
} // namespace test
} // namespace xrpl
} // namespace xrpl::test