chore: Enable clang-tidy misc checks (#6655)

This commit is contained in:
Alex Kremer
2026-03-31 18:29:45 +01:00
committed by GitHub
parent c3fae847f3
commit 2502befb42
469 changed files with 3915 additions and 3965 deletions

View File

@@ -56,7 +56,7 @@ private:
using boost::asio::buffer;
using boost::asio::buffer_copy;
using boost::asio::buffer_size;
boost::asio::const_buffer buf(s.data(), s.size());
boost::asio::const_buffer const buf(s.data(), s.size());
sb.commit(buffer_copy(sb.prepare(buffer_size(buf)), buf));
}
@@ -100,14 +100,14 @@ private:
void
add(std::shared_ptr<Child> const& child)
{
std::lock_guard lock(mutex_);
std::lock_guard const lock(mutex_);
list_.emplace(child.get(), child);
}
void
remove(Child* child)
{
std::lock_guard lock(mutex_);
std::lock_guard const lock(mutex_);
list_.erase(child);
if (list_.empty())
cond_.notify_one();
@@ -118,7 +118,7 @@ private:
{
std::vector<std::shared_ptr<Child>> v;
{
std::lock_guard lock(mutex_);
std::lock_guard const lock(mutex_);
v.reserve(list_.size());
if (closed_)
return;
@@ -636,7 +636,7 @@ public:
void
run() override
{
Server s(*this);
Server const s(*this);
Client c(*this, s.endpoint());
c.wait();
pass();