diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2025-01-02 18:49:56 -0600 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2025-01-02 18:49:56 -0600 |
commit | d5a174a6d4f8be5e7cffe7c2adbb8db23b578f56 (patch) | |
tree | 536a10802f418e3e71f3828597439537d9e62f21 /test/test_common.hpp | |
parent | 908fdf06b41f9084d719a4b517c868b1ad29a9ac (diff) |
Fixing errors in Vector.
Diffstat (limited to 'test/test_common.hpp')
-rw-r--r-- | test/test_common.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
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; |