refactor: Enable more clang-tidy readability checks (#6595)

Co-authored-by: Sergey Kuznetsov <kuzzz99@gmail.com>
This commit is contained in:
Alex Kremer
2026-03-24 15:42:12 +00:00
committed by GitHub
parent 8b986e4ab0
commit 0eedefbf45
248 changed files with 948 additions and 935 deletions

View File

@@ -46,7 +46,7 @@ public:
}
}
blob
static blob
sig(std::string const& hex)
{
blob b;
@@ -54,7 +54,7 @@ public:
return b;
}
bool
static bool
check(std::optional<ECDSACanonicality> answer, std::string const& s)
{
return ecdsaCanonicality(makeSlice(sig(s))) == answer;

View File

@@ -21,7 +21,7 @@ public:
}
//--------------------------------------------------------------------------
STAmount
static STAmount
roundSelf(STAmount const& amount)
{
if (amount.native())

View File

@@ -11,7 +11,7 @@ namespace xrpl {
class STParsedJSON_test : public beast::unit_test::suite
{
bool
static bool
parseJSONString(std::string const& json, Json::Value& to)
{
Json::Reader reader;

View File

@@ -42,7 +42,7 @@ struct SeqProxy_test : public beast::unit_test::suite
}
// Verify streaming.
bool
static bool
streamTest(SeqProxy seqProx)
{
std::string const type{seqProx.isSeq() ? "sequence" : "ticket"};