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

@@ -33,7 +33,7 @@ class ServerStatus_test : public beast::unit_test::suite, public beast::test::en
{
};
auto
static auto
makeConfig(std::string const& proto, bool admin = true, bool credentials = false)
{
auto const section_name = boost::starts_with(proto, "h") ? "port_rpc" : "port_ws";
@@ -69,7 +69,7 @@ class ServerStatus_test : public beast::unit_test::suite, public beast::test::en
return p;
}
auto
static auto
makeWSUpgrade(std::string const& host, uint16_t port)
{
using namespace boost::asio;
@@ -97,7 +97,7 @@ class ServerStatus_test : public beast::unit_test::suite, public beast::test::en
return req;
}
auto
static auto
makeHTTPRequest(
std::string const& host,
uint16_t port,
@@ -217,7 +217,7 @@ class ServerStatus_test : public beast::unit_test::suite, public beast::test::en
return;
}
auto
static auto
makeAdminRequest(
jtx::Env& env,
std::string const& proto,

View File

@@ -91,13 +91,13 @@ public:
struct TestHandler
{
bool
static bool
onAccept(Session& session, boost::asio::ip::tcp::endpoint endpoint)
{
return true;
}
Handoff
static Handoff
onHandoff(
Session& session,
std::unique_ptr<stream_type> const& bundle,
@@ -107,7 +107,7 @@ public:
return Handoff{};
}
Handoff
static Handoff
onHandoff(
Session& session,
http_request_type const& request,
@@ -116,7 +116,7 @@ public:
return Handoff{};
}
void
static void
onRequest(Session& session)
{
session.write(std::string("Hello, world!\n"));
@@ -303,13 +303,13 @@ public:
testcase("stress test");
struct NullHandler
{
bool
static bool
onAccept(Session& session, boost::asio::ip::tcp::endpoint endpoint)
{
return true;
}
Handoff
static Handoff
onHandoff(
Session& session,
std::unique_ptr<stream_type> const& bundle,
@@ -319,7 +319,7 @@ public:
return Handoff{};
}
Handoff
static Handoff
onHandoff(
Session& session,
http_request_type const& request,