chore: Set ColumnLimit to 120 in clang-format (#6288)

This change updates the ColumnLimit from 80 to 120, and applies clang-format to reformat the code.
This commit is contained in:
Ayaz Salikhov
2026-01-28 18:09:50 +00:00
committed by GitHub
parent 92046785d1
commit 5f638f5553
1016 changed files with 26918 additions and 66660 deletions

View File

@@ -7,23 +7,15 @@ namespace xrpl {
namespace test {
namespace jtx {
std::unordered_map<std::pair<std::string, KeyType>, Account, beast::uhash<>>
Account::cache_;
std::unordered_map<std::pair<std::string, KeyType>, Account, beast::uhash<>> Account::cache_;
Account const Account::master(
"master",
generateKeyPair(KeyType::secp256k1, generateSeed("masterpassphrase")),
Account::privateCtorTag{});
Account::Account(
std::string name,
std::pair<PublicKey, SecretKey> const& keys,
Account::privateCtorTag)
: name_(std::move(name))
, pk_(keys.first)
, sk_(keys.second)
, id_(calcAccountID(pk_))
, human_(toBase58(id_))
Account::Account(std::string name, std::pair<PublicKey, SecretKey> const& keys, Account::privateCtorTag)
: name_(std::move(name)), pk_(keys.first), sk_(keys.second), id_(calcAccountID(pk_)), human_(toBase58(id_))
{
}
@@ -54,16 +46,12 @@ Account::fromCache(AcctStringType stringType, std::string name, KeyType type)
return r.first->second;
}
Account::Account(std::string name, KeyType type)
: Account(fromCache(Account::other, std::move(name), type))
Account::Account(std::string name, KeyType type) : Account(fromCache(Account::other, std::move(name), type))
{
}
Account::Account(AcctStringType stringType, std::string base58SeedStr)
: Account(fromCache(
Account::base58Seed,
std::move(base58SeedStr),
KeyType::secp256k1))
: Account(fromCache(Account::base58Seed, std::move(base58SeedStr), KeyType::secp256k1))
{
}