chore: Apply clang-format width 100 (#6387)

This commit is contained in:
Ayaz Salikhov
2026-02-19 23:30:00 +00:00
parent 25cca46553
commit 2c1fad1023
786 changed files with 26105 additions and 12252 deletions

View File

@@ -62,7 +62,10 @@ STPathElement
IPE(Issue const& iss)
{
return STPathElement(
STPathElement::typeCurrency | STPathElement::typeIssuer, xrpAccount(), iss.currency, iss.account);
STPathElement::typeCurrency | STPathElement::typeIssuer,
xrpAccount(),
iss.currency,
iss.account);
}
/******************************************************************************/
@@ -97,7 +100,8 @@ expectHolding(Env& env, AccountID const& account, STAmount const& value, bool de
low.setIssuer(accountLow ? account : issue.account);
high.setIssuer(accountLow ? issue.account : account);
expectDefaultTrustLine = sle->getFieldAmount(sfLowLimit) == low && sle->getFieldAmount(sfHighLimit) == high;
expectDefaultTrustLine =
sle->getFieldAmount(sfLowLimit) == low && sle->getFieldAmount(sfHighLimit) == high;
}
auto amount = sle->getFieldAmount(sfBalance);
@@ -125,11 +129,16 @@ expectHolding(Env& env, AccountID const& account, None const&, MPTIssue const& m
expectHolding(Env& env, AccountID const& account, None const& value)
{
return std::visit(
[&](auto const& issue) { return expectHolding(env, account, value, issue); }, value.asset.value());
[&](auto const& issue) { return expectHolding(env, account, value, issue); },
value.asset.value());
}
[[nodiscard]] bool
expectOffers(Env& env, AccountID const& account, std::uint16_t size, std::vector<Amounts> const& toMatch)
expectOffers(
Env& env,
AccountID const& account,
std::uint16_t size,
std::vector<Amounts> const& toMatch)
{
std::uint16_t cnt = 0;
std::uint16_t matched = 0;
@@ -140,7 +149,8 @@ expectOffers(Env& env, AccountID const& account, std::uint16_t size, std::vector
{
++cnt;
if (std::find_if(toMatch.begin(), toMatch.end(), [&](auto const& a) {
return a.in == sle->getFieldAmount(sfTakerPays) && a.out == sle->getFieldAmount(sfTakerGets);
return a.in == sle->getFieldAmount(sfTakerPays) &&
a.out == sle->getFieldAmount(sfTakerGets);
}) != toMatch.end())
++matched;
}
@@ -159,7 +169,11 @@ ledgerEntryRoot(Env& env, Account const& acct)
}
Json::Value
ledgerEntryState(Env& env, Account const& acct_a, Account const& acct_b, std::string const& currency)
ledgerEntryState(
Env& env,
Account const& acct_a,
Account const& acct_b,
std::string const& currency)
{
Json::Value jvParams;
jvParams[jss::ledger_index] = "current";
@@ -341,7 +355,11 @@ del(AccountID const& account, uint256 const& brokerID, uint32_t flags)
}
Json::Value
coverDeposit(AccountID const& account, uint256 const& brokerID, STAmount const& amount, uint32_t flags)
coverDeposit(
AccountID const& account,
uint256 const& brokerID,
STAmount const& amount,
uint32_t flags)
{
Json::Value jv;
jv[sfTransactionType] = jss::LoanBrokerCoverDeposit;
@@ -353,7 +371,11 @@ coverDeposit(AccountID const& account, uint256 const& brokerID, STAmount const&
}
Json::Value
coverWithdraw(AccountID const& account, uint256 const& brokerID, STAmount const& amount, uint32_t flags)
coverWithdraw(
AccountID const& account,
uint256 const& brokerID,
STAmount const& amount,
uint32_t flags)
{
Json::Value jv;
jv[sfTransactionType] = jss::LoanBrokerCoverWithdraw;
@@ -381,7 +403,10 @@ coverClawback(AccountID const& account, std::uint32_t flags)
namespace loan {
Json::Value
set(AccountID const& account, uint256 const& loanBrokerID, Number principalRequested, std::uint32_t flags)
set(AccountID const& account,
uint256 const& loanBrokerID,
Number principalRequested,
std::uint32_t flags)
{
Json::Value jv;
jv[sfTransactionType] = jss::LoanSet;