mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
chore: Enable clang-tidy misc checks (#6655)
This commit is contained in:
@@ -154,7 +154,7 @@ template <bool IsParent>
|
||||
std::size_t
|
||||
multi_runner_base<IsParent>::inner::tests() const
|
||||
{
|
||||
std::lock_guard l{m_};
|
||||
std::lock_guard const l{m_};
|
||||
return results_.total;
|
||||
}
|
||||
|
||||
@@ -162,7 +162,7 @@ template <bool IsParent>
|
||||
std::size_t
|
||||
multi_runner_base<IsParent>::inner::suites() const
|
||||
{
|
||||
std::lock_guard l{m_};
|
||||
std::lock_guard const l{m_};
|
||||
return results_.suites;
|
||||
}
|
||||
|
||||
@@ -184,7 +184,7 @@ template <bool IsParent>
|
||||
void
|
||||
multi_runner_base<IsParent>::inner::add(results const& r)
|
||||
{
|
||||
std::lock_guard l{m_};
|
||||
std::lock_guard const l{m_};
|
||||
results_.merge(r);
|
||||
}
|
||||
|
||||
@@ -193,7 +193,7 @@ template <class S>
|
||||
void
|
||||
multi_runner_base<IsParent>::inner::print_results(S& s)
|
||||
{
|
||||
std::lock_guard l{m_};
|
||||
std::lock_guard const l{m_};
|
||||
results_.print(s);
|
||||
}
|
||||
|
||||
@@ -326,7 +326,7 @@ void
|
||||
multi_runner_base<IsParent>::message_queue_send(MessageType mt, std::string const& s)
|
||||
{
|
||||
// must use a mutex since the two "sends" must happen in order
|
||||
std::lock_guard l{inner_->m_};
|
||||
std::lock_guard const l{inner_->m_};
|
||||
message_queue_->send(&mt, sizeof(mt), /*priority*/ 0);
|
||||
message_queue_->send(s.c_str(), s.size(), /*priority*/ 0);
|
||||
}
|
||||
@@ -386,7 +386,7 @@ multi_runner_parent::multi_runner_parent() : os_(std::cout)
|
||||
if (!recvd_size)
|
||||
continue;
|
||||
assert(recvd_size == 1);
|
||||
MessageType mt{*reinterpret_cast<MessageType*>(buf.data())};
|
||||
MessageType const mt{*reinterpret_cast<MessageType*>(buf.data())};
|
||||
|
||||
this->message_queue_->receive(buf.data(), buf.size(), recvd_size, priority);
|
||||
if (recvd_size)
|
||||
|
||||
Reference in New Issue
Block a user