From a215b86043558578103e28dd6897bac6bc63aff8 Mon Sep 17 00:00:00 2001 From: Trent Houliston Date: Sat, 24 Aug 2024 19:49:16 +1000 Subject: [PATCH] clang-tidy --- src/dsl/word/Pool.hpp | 2 +- tests/tests/dsl/FusionInOrder.cpp | 2 +- tests/tests/dsl/IdleGlobal.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dsl/word/Pool.hpp b/src/dsl/word/Pool.hpp index 9ac0f6a1..9d47eb32 100644 --- a/src/dsl/word/Pool.hpp +++ b/src/dsl/word/Pool.hpp @@ -49,7 +49,7 @@ namespace dsl { } template - static constexpr bool check(A&&... /*unused*/) { + static constexpr bool check(const A&... /*unused*/) { return true; } diff --git a/tests/tests/dsl/FusionInOrder.cpp b/tests/tests/dsl/FusionInOrder.cpp index 7e1f9608..e5235968 100644 --- a/tests/tests/dsl/FusionInOrder.cpp +++ b/tests/tests/dsl/FusionInOrder.cpp @@ -23,7 +23,7 @@ #include #include -std::vector events; +std::vector events; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables,-warnings-as-errors) template struct Extension { diff --git a/tests/tests/dsl/IdleGlobal.cpp b/tests/tests/dsl/IdleGlobal.cpp index d83829bd..b45122e8 100644 --- a/tests/tests/dsl/IdleGlobal.cpp +++ b/tests/tests/dsl/IdleGlobal.cpp @@ -97,7 +97,7 @@ class TestReactor : public test_util::TestBase { }); } - void wait_for_set(const std::atomic& flag) { + static void wait_for_set(const std::atomic& flag) { while (!flag.load(std::memory_order_acquire)) { std::this_thread::sleep_for(test_util::TimeUnit(1)); }