chore: Enable clang-tidy v21 new checks (#7031)

This commit is contained in:
Alex Kremer
2026-04-29 16:17:35 +01:00
committed by GitHub
parent 46b997b774
commit f7275b7ad9
259 changed files with 2193 additions and 1888 deletions

View File

@@ -50,7 +50,7 @@ Account::fromCache(AcctStringType stringType, std::string name, KeyType type)
auto const keys = [stringType, &name, type]() {
// Special handling for base58Seeds.
if (stringType == base58Seed)
if (stringType == AcctStringType::base58Seed)
{
std::optional<Seed> const seed = parseBase58<Seed>(name);
if (!seed.has_value())
@@ -68,12 +68,15 @@ Account::fromCache(AcctStringType stringType, std::string name, KeyType type)
}
Account::Account(std::string name, KeyType type)
: Account(fromCache(Account::other, std::move(name), type))
: Account(fromCache(Account::AcctStringType::other, std::move(name), type))
{
}
Account::Account(AcctStringType stringType, std::string base58SeedStr)
: Account(fromCache(Account::base58Seed, std::move(base58SeedStr), KeyType::secp256k1))
: Account(fromCache(
Account::AcctStringType::base58Seed,
std::move(base58SeedStr),
KeyType::secp256k1))
{
}