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

@@ -34,8 +34,7 @@
#include <optional>
#include <vector>
namespace xrpl {
namespace test {
namespace xrpl::test {
static char const* bob_account_objects[] = {
R"json({
@@ -942,7 +941,7 @@ public:
jss::RippleState.c_str(),
jss::PayChannel.c_str(),
jss::PermissionedDomain.c_str()};
std::sort(v.begin(), v.end());
std::ranges::sort(v);
return v;
}();
@@ -958,7 +957,7 @@ public:
{
gotLedgerTypes.push_back(aobjs[i]["LedgerEntryType"].asString());
}
std::sort(gotLedgerTypes.begin(), gotLedgerTypes.end());
std::ranges::sort(gotLedgerTypes);
BEAST_EXPECT(gotLedgerTypes == expectedLedgerTypes);
}
}
@@ -983,7 +982,7 @@ public:
auto const objs = resp[jss::result][jss::account_objects];
for (auto const& obj : resp[jss::result][jss::account_objects])
typesOut.push_back(obj[sfLedgerEntryType.fieldName].asString());
std::sort(typesOut.begin(), typesOut.end());
std::ranges::sort(typesOut);
};
// Make a lambda we can use to check the number of fetched
// account objects and their ledger type
@@ -1367,5 +1366,4 @@ public:
BEAST_DEFINE_TESTSUITE(AccountObjects, rpc, xrpl);
} // namespace test
} // namespace xrpl
} // namespace xrpl::test