From d5a174a6d4f8be5e7cffe7c2adbb8db23b578f56 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Thu, 2 Jan 2025 18:49:56 -0600 Subject: Fixing errors in Vector. --- test/test_common.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/test_common.hpp') diff --git a/test/test_common.hpp b/test/test_common.hpp index 5f6828f..3be26f0 100644 --- a/test/test_common.hpp +++ b/test/test_common.hpp @@ -58,16 +58,22 @@ static_assert(sizeof(FOUR_BYTE) == 4 + 1); // NOLINTEND(cppcoreguidelines-macro-usage) +// NOLINTNEXTLINE(cppcoreguidelines-special-member-functions) struct MockFudAlloc { + virtual ~MockFudAlloc() = default; virtual std::byte* operator()(size_t size); }; +// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables) extern MockFudAlloc globalDefaultMockAlloc; +// NOLINTNEXTLINE(cppcoreguidelines-special-member-functions) struct MockFudDealloc { + virtual ~MockFudDealloc() = default; virtual void operator()(std::byte* pointer); }; +// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables) extern MockFudDealloc globalDefaultMockDealloc; struct MockFudAllocator { @@ -78,6 +84,7 @@ struct MockFudAllocator { MockFudDealloc* m_deallocator{&globalDefaultMockDealloc}; }; +// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables) extern MockFudAllocator globalMockFudAlloc; class String; -- cgit v1.2.3