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

@@ -49,8 +49,7 @@
#include <utility>
#include <vector>
namespace xrpl {
namespace test {
namespace xrpl::test {
class ValidatorList_test : public beast::unit_test::suite
{
@@ -125,9 +124,9 @@ private:
auto const masterPublic = derivePublicKey(KeyType::ed25519, secret);
auto const signingKeys = randomKeyPair(KeyType::secp256k1);
return {
masterPublic,
signingKeys.first,
base64_encode(makeManifestString(
.masterPublic = masterPublic,
.signingPublic = signingKeys.first,
.manifest = base64_encode(makeManifestString(
masterPublic, secret, signingKeys.first, signingKeys.second, 1))};
}
@@ -1899,11 +1898,11 @@ private:
auto const sig2 = signList(blob2, pubSigningKeys);
return PreparedList{
publisherPublic,
manifest,
{{blob1, sig1, {}}, {blob2, sig2, {}}},
version,
{expiration1, expiration2}};
.publisherPublic = publisherPublic,
.manifest = manifest,
.blobs = {{blob1, sig1, {}}, {blob2, sig2, {}}},
.version = version,
.expirations = {expiration1, expiration2}};
};
// Configure two publishers and prepare 2 lists
@@ -3950,5 +3949,4 @@ public:
BEAST_DEFINE_TESTSUITE(ValidatorList, app, xrpl);
} // namespace test
} // namespace xrpl
} // namespace xrpl::test