From 190db5ade19aa86b3d08ea95341040d9aa86918f Mon Sep 17 00:00:00 2001 From: Trent Houliston Date: Mon, 2 Sep 2024 10:56:51 +1000 Subject: [PATCH] clang-tidy --- src/util/TypeMap.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/util/TypeMap.hpp b/src/util/TypeMap.hpp index d8c76d1f..e3c9cc42 100644 --- a/src/util/TypeMap.hpp +++ b/src/util/TypeMap.hpp @@ -86,7 +86,7 @@ namespace util { */ static std::shared_ptr get() { #if __cplusplus >= 202002L - return data.load(std::memory_order_acquire); + return data.load(std::memory_order_acquire); #else return std::atomic_load_explicit(&data, std::memory_order_acquire); #endif @@ -96,8 +96,10 @@ namespace util { /// Initialize our shared_ptr data template #if __cplusplus >= 202002L + // NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables) std::atomic> TypeMap::data; #else + // NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables) std::shared_ptr TypeMap::data; #endif