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 Bart
parent 4ed8178584
commit dab0ceaf8b
699 changed files with 4626 additions and 5292 deletions

View File

@@ -13,9 +13,7 @@
#include <string>
#include <string_view>
namespace xrpl {
namespace BuildInfo {
namespace xrpl::BuildInfo {
namespace {
@@ -123,7 +121,7 @@ encodeSoftwareVersion(std::string_view versionStr)
std::uint8_t hik) -> std::uint8_t {
std::uint8_t ret = 0;
if (prefix != identifier.substr(0, prefix.length()))
if (!identifier.starts_with(prefix))
return 0;
if (!beast::lexicalCastChecked(
@@ -174,6 +172,4 @@ isNewerVersion(std::uint64_t version)
return false;
}
} // namespace BuildInfo
} // namespace xrpl
} // namespace xrpl::BuildInfo