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

@@ -50,7 +50,7 @@ namespace xrpl {
namespace STParsedJSONDetail {
template <typename U, typename S>
constexpr std::enable_if_t<std::is_unsigned<U>::value && std::is_signed<S>::value, U>
constexpr std::enable_if_t<std::is_unsigned_v<U> && std::is_signed_v<S>, U>
to_unsigned(S value)
{
if (value < 0 || std::numeric_limits<U>::max() < value)
@@ -59,7 +59,7 @@ to_unsigned(S value)
}
template <typename U1, typename U2>
constexpr std::enable_if_t<std::is_unsigned<U1>::value && std::is_unsigned<U2>::value, U1>
constexpr std::enable_if_t<std::is_unsigned_v<U1> && std::is_unsigned_v<U2>, U1>
to_unsigned(U2 value)
{
if (std::numeric_limits<U1>::max() < value)