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

@@ -19,8 +19,7 @@
#include <utility>
#include <vector>
namespace xrpl {
namespace test {
namespace xrpl::test {
// a non-hashing Hasher that just copies the bytes.
// Used to test hash_append in base_uint
@@ -51,8 +50,8 @@ struct nonhash
struct base_uint_test : beast::unit_test::suite
{
using test96 = base_uint<96>;
static_assert(std::is_copy_constructible<test96>::value);
static_assert(std::is_copy_assignable<test96>::value);
static_assert(std::is_copy_constructible_v<test96>);
static_assert(std::is_copy_assignable_v<test96>);
void
testComparisons()
@@ -123,8 +122,8 @@ struct base_uint_test : beast::unit_test::suite
{
testcase("base_uint: general purpose tests");
static_assert(!std::is_constructible<test96, std::complex<double>>::value);
static_assert(!std::is_assignable<test96&, std::complex<double>>::value);
static_assert(!std::is_constructible_v<test96, std::complex<double>>);
static_assert(!std::is_assignable_v<test96&, std::complex<double>>);
testComparisons();
@@ -356,5 +355,4 @@ struct base_uint_test : beast::unit_test::suite
BEAST_DEFINE_TESTSUITE(base_uint, basics, xrpl);
} // namespace test
} // namespace xrpl
} // namespace xrpl::test