chore: Add clang-tidy 19 checks (#1774)

Fix #1664
This commit is contained in:
Alex Kremer
2024-12-09 16:27:53 +00:00
committed by GitHub
parent a7074dbf0f
commit 475e309f25
87 changed files with 3135 additions and 2711 deletions

View File

@@ -53,6 +53,7 @@
namespace rpc::credentials {
bool
// NOLINTNEXTLINE(misc-use-internal-linkage)
checkExpired(ripple::SLE const& sleCred, ripple::LedgerHeader const& ledger)
{
if (sleCred.isFieldPresent(ripple::sfExpiration)) {
@@ -64,6 +65,7 @@ checkExpired(ripple::SLE const& sleCred, ripple::LedgerHeader const& ledger)
}
std::set<std::pair<ripple::AccountID, ripple::Slice>>
// NOLINTNEXTLINE(misc-use-internal-linkage)
createAuthCredentials(ripple::STArray const& in)
{
std::set<std::pair<ripple::AccountID, ripple::Slice>> out;
@@ -74,6 +76,7 @@ createAuthCredentials(ripple::STArray const& in)
}
ripple::STArray
// NOLINTNEXTLINE(misc-use-internal-linkage)
parseAuthorizeCredentials(boost::json::array const& jv)
{
ripple::STArray arr;
@@ -108,6 +111,7 @@ parseAuthorizeCredentials(boost::json::array const& jv)
}
std::expected<ripple::STArray, Status>
// NOLINTNEXTLINE(misc-use-internal-linkage)
fetchCredentialArray(
std::optional<boost::json::array> const& credID,
ripple::AccountID const& srcAcc,