[CI] clang-tidy auto fixes (#1190)

This commit is contained in:
github-actions[bot]
2024-02-16 10:21:59 +00:00
committed by GitHub
parent 97a63db51d
commit 9b0dab602f
3 changed files with 4 additions and 5 deletions

View File

@@ -71,7 +71,7 @@ struct BasicScheduledOperation {
void
emplace(auto&& op)
{
std::lock_guard lock{m_};
std::lock_guard const lock{m_};
op_.emplace(std::forward<decltype(op)>(op));
ready_.notify_all();
}

View File

@@ -43,8 +43,8 @@ INSTANTIATE_TEST_CASE_P(AnyStopTokenGroup, AnyStopTokenTests, ValuesIn({true, fa
TEST_P(AnyStopTokenTests, CanCopy)
{
AnyStopToken stopToken{FakeStopToken{GetParam()}};
AnyStopToken token = stopToken;
AnyStopToken const stopToken{FakeStopToken{GetParam()}};
AnyStopToken const token = stopToken;
EXPECT_EQ(token, stopToken);
}
@@ -52,7 +52,7 @@ TEST_P(AnyStopTokenTests, CanCopy)
TEST_P(AnyStopTokenTests, IsStopRequestedCallPropagated)
{
auto const flag = GetParam();
AnyStopToken stopToken{FakeStopToken{flag}};
AnyStopToken const stopToken{FakeStopToken{flag}};
EXPECT_EQ(stopToken.isStopRequested(), flag);
EXPECT_EQ(stopToken, flag);

View File

@@ -20,7 +20,6 @@
#include "util/async/context/BasicExecutionContext.hpp"
#include "util/async/context/SyncExecutionContext.hpp"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <chrono>