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

@@ -13,32 +13,28 @@ struct SeqProxy_test : public beast::unit_test::suite
expectValues(SeqProxy seqProx, std::uint32_t value, SeqProxy::Type type)
{
bool const expectSeq{type == SeqProxy::seq};
return (seqProx.value() == value) && (seqProx.isSeq() == expectSeq) &&
(seqProx.isTicket() == !expectSeq);
return (seqProx.value() == value) && (seqProx.isSeq() == expectSeq) && (seqProx.isTicket() == !expectSeq);
}
// Exercise all SeqProxy comparison operators expecting lhs < rhs.
static constexpr bool
expectLt(SeqProxy lhs, SeqProxy rhs)
{
return (lhs < rhs) && (lhs <= rhs) && (!(lhs == rhs)) && (lhs != rhs) &&
(!(lhs >= rhs)) && (!(lhs > rhs));
return (lhs < rhs) && (lhs <= rhs) && (!(lhs == rhs)) && (lhs != rhs) && (!(lhs >= rhs)) && (!(lhs > rhs));
}
// Exercise all SeqProxy comparison operators expecting lhs == rhs.
static constexpr bool
expectEq(SeqProxy lhs, SeqProxy rhs)
{
return (!(lhs < rhs)) && (lhs <= rhs) && (lhs == rhs) &&
(!(lhs != rhs)) && (lhs >= rhs) && (!(lhs > rhs));
return (!(lhs < rhs)) && (lhs <= rhs) && (lhs == rhs) && (!(lhs != rhs)) && (lhs >= rhs) && (!(lhs > rhs));
}
// Exercise all SeqProxy comparison operators expecting lhs > rhs.
static constexpr bool
expectGt(SeqProxy lhs, SeqProxy rhs)
{
return (!(lhs < rhs)) && (!(lhs <= rhs)) && (!(lhs == rhs)) &&
(lhs != rhs) && (lhs >= rhs) && (lhs > rhs);
return (!(lhs < rhs)) && (!(lhs <= rhs)) && (!(lhs == rhs)) && (lhs != rhs) && (lhs >= rhs) && (lhs > rhs);
}
// Verify streaming.
@@ -52,8 +48,7 @@ struct SeqProxy_test : public beast::unit_test::suite
ss << seqProx;
std::string str{ss.str()};
return str.find(type) == 0 && str[type.size()] == ' ' &&
str.find(value) == (type.size() + 1);
return str.find(type) == 0 && str[type.size()] == ' ' && str.find(value) == (type.size() + 1);
}
void
@@ -62,8 +57,7 @@ struct SeqProxy_test : public beast::unit_test::suite
// While SeqProxy supports values of zero, they are not
// expected in the wild. Nevertheless they are tested here.
// But so are values of 1, which are expected to occur in the wild.
static constexpr std::uint32_t uintMax{
std::numeric_limits<std::uint32_t>::max()};
static constexpr std::uint32_t uintMax{std::numeric_limits<std::uint32_t>::max()};
static constexpr SeqProxy::Type seq{SeqProxy::seq};
static constexpr SeqProxy::Type ticket{SeqProxy::ticket};