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

@@ -69,20 +69,14 @@ class Discrepancy_test : public beast::unit_test::suite
env.close();
test::PathSet payPaths{
test::Path{A2["JPY"], A2},
test::Path{XRP, A2["JPY"], A2},
test::Path{A6, XRP, A2["JPY"], A2}};
test::Path{A2["JPY"], A2}, test::Path{XRP, A2["JPY"], A2}, test::Path{A6, XRP, A2["JPY"], A2}};
env(pay(A1, A1, A2["JPY"](1000)),
json(payPaths.json()),
txflags(tfPartialPayment),
sendmax(A3["CNY"](56)));
env(pay(A1, A1, A2["JPY"](1000)), json(payPaths.json()), txflags(tfPartialPayment), sendmax(A3["CNY"](56)));
env.close();
Json::Value jrq2;
jrq2[jss::binary] = false;
jrq2[jss::transaction] =
env.tx()->getJson(JsonOptions::none)[jss::hash];
jrq2[jss::transaction] = env.tx()->getJson(JsonOptions::none)[jss::hash];
jrq2[jss::id] = 3;
auto jrr = env.rpc("json", "tx", to_string(jrq2))[jss::result];
uint64_t fee{jrr[jss::Fee].asUInt()};
@@ -102,19 +96,14 @@ class Discrepancy_test : public beast::unit_test::suite
if (node && node[sfLedgerEntryType.fieldName] == jss::AccountRoot)
{
Json::Value prevFields =
node.isMember(sfPreviousFields.fieldName)
? node[sfPreviousFields.fieldName]
: node[sfNewFields.fieldName];
Json::Value finalFields = node.isMember(sfFinalFields.fieldName)
? node[sfFinalFields.fieldName]
: node[sfNewFields.fieldName];
Json::Value prevFields = node.isMember(sfPreviousFields.fieldName) ? node[sfPreviousFields.fieldName]
: node[sfNewFields.fieldName];
Json::Value finalFields = node.isMember(sfFinalFields.fieldName) ? node[sfFinalFields.fieldName]
: node[sfNewFields.fieldName];
if (prevFields)
sumPrev += beast::lexicalCastThrow<std::uint64_t>(
prevFields[sfBalance.fieldName].asString());
sumPrev += beast::lexicalCastThrow<std::uint64_t>(prevFields[sfBalance.fieldName].asString());
if (finalFields)
sumFinal += beast::lexicalCastThrow<std::uint64_t>(
finalFields[sfBalance.fieldName].asString());
sumFinal += beast::lexicalCastThrow<std::uint64_t>(finalFields[sfBalance.fieldName].asString());
}
}
// the difference in balances (final and prev) should be the