chore: Enable clang-tidy v21 new checks (#7031)

This commit is contained in:
Alex Kremer
2026-04-29 16:17:35 +01:00
committed by GitHub
parent 46b997b774
commit f7275b7ad9
259 changed files with 2193 additions and 1888 deletions

View File

@@ -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);
}