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

@@ -17,8 +17,7 @@
#include <memory>
#include <vector>
namespace xrpl {
namespace tests {
namespace xrpl::tests {
class cluster_test : public xrpl::TestSuite
{
@@ -92,7 +91,7 @@ public:
for (auto const& n : network)
{
auto found = std::find(cluster.begin(), cluster.end(), n);
auto found = std::ranges::find(cluster, n);
BEAST_EXPECT(static_cast<bool>(c->member(n)) == (found != cluster.end()));
}
}
@@ -109,7 +108,7 @@ public:
for (auto const& n : network)
{
auto found = std::find(cluster.begin(), cluster.end(), n);
auto found = std::ranges::find(cluster, n);
BEAST_EXPECT(static_cast<bool>(c->member(n)) == (found != cluster.end()));
}
}
@@ -254,5 +253,4 @@ public:
BEAST_DEFINE_TESTSUITE(cluster, overlay, xrpl);
} // namespace tests
} // namespace xrpl
} // namespace xrpl::tests