mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-04 01:06:48 +00:00
chore: Enable clang-tidy v21 new checks (#7031)
This commit is contained in:
@@ -167,7 +167,7 @@ template <bool IsParent>
|
||||
std::size_t
|
||||
multi_runner_base<IsParent>::inner::tests() const
|
||||
{
|
||||
std::lock_guard const l{m_};
|
||||
std::scoped_lock const l{m_};
|
||||
return results_.total;
|
||||
}
|
||||
|
||||
@@ -175,7 +175,7 @@ template <bool IsParent>
|
||||
std::size_t
|
||||
multi_runner_base<IsParent>::inner::suites() const
|
||||
{
|
||||
std::lock_guard const l{m_};
|
||||
std::scoped_lock const l{m_};
|
||||
return results_.suites;
|
||||
}
|
||||
|
||||
@@ -197,7 +197,7 @@ template <bool IsParent>
|
||||
void
|
||||
multi_runner_base<IsParent>::inner::add(results const& r)
|
||||
{
|
||||
std::lock_guard const l{m_};
|
||||
std::scoped_lock const l{m_};
|
||||
results_.merge(r);
|
||||
}
|
||||
|
||||
@@ -206,7 +206,7 @@ template <class S>
|
||||
void
|
||||
multi_runner_base<IsParent>::inner::print_results(S& s)
|
||||
{
|
||||
std::lock_guard const l{m_};
|
||||
std::scoped_lock const l{m_};
|
||||
results_.print(s);
|
||||
}
|
||||
|
||||
@@ -339,7 +339,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 const l{inner_->m_};
|
||||
std::scoped_lock const l{inner_->m_};
|
||||
message_queue_->send(&mt, sizeof(mt), /*priority*/ 0);
|
||||
message_queue_->send(s.c_str(), s.size(), /*priority*/ 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user