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

@@ -16,9 +16,7 @@ public:
template <class Integer>
static STAmount
amount(
Integer integer,
std::enable_if_t<std::is_signed<Integer>::value>* = 0)
amount(Integer integer, std::enable_if_t<std::is_signed<Integer>::value>* = 0)
{
static_assert(std::is_integral<Integer>::value, "");
return STAmount(integer, false);
@@ -26,9 +24,7 @@ public:
template <class Integer>
static STAmount
amount(
Integer integer,
std::enable_if_t<!std::is_signed<Integer>::value>* = 0)
amount(Integer integer, std::enable_if_t<!std::is_signed<Integer>::value>* = 0)
{
static_assert(std::is_integral<Integer>::value, "");
if (integer < 0)
@@ -45,13 +41,7 @@ public:
template <class In1, class Out1, class Int, class In2, class Out2>
void
ceil_in(
Quality const& q,
In1 in,
Out1 out,
Int limit,
In2 in_expected,
Out2 out_expected)
ceil_in(Quality const& q, In1 in, Out1 out, Int limit, In2 in_expected, Out2 out_expected)
{
auto expect_result(amounts(in_expected, out_expected));
auto actual_result(q.ceil_in(amounts(in, out), amount(limit)));
@@ -61,13 +51,7 @@ public:
template <class In1, class Out1, class Int, class In2, class Out2>
void
ceil_out(
Quality const& q,
In1 in,
Out1 out,
Int limit,
In2 in_expected,
Out2 out_expected)
ceil_out(Quality const& q, In1 in, Out1 out, Int limit, In2 in_expected, Out2 out_expected)
{
auto const expect_result(amounts(in_expected, out_expected));
auto const actual_result(q.ceil_out(amounts(in, out), amount(limit)));
@@ -269,10 +253,9 @@ public:
{
Quality q(0x5d048191fb9130daull); // 126836389.7680090
Amounts const value(
amount(349469768), // 349.469768 XRP
raw(2755280000000000ull, -15)); // 2.75528
STAmount const limit(
raw(4131113916555555, -16)); // .4131113916555555
amount(349469768), // 349.469768 XRP
raw(2755280000000000ull, -15)); // 2.75528
STAmount const limit(raw(4131113916555555, -16)); // .4131113916555555
Amounts const result(q.ceil_out(value, limit));
BEAST_EXPECT(result.in != beast::zero);
}
@@ -366,8 +349,7 @@ public:
{
testcase("operations");
Quality const q11(
Amounts(STAmount(noIssue(), 731), STAmount(noIssue(), 731)));
Quality const q11(Amounts(STAmount(noIssue(), 731), STAmount(noIssue(), 731)));
Quality qa(q11);
Quality qb(q11);