Sequoia
Loading...
Searching...
No Matches
RegularAllocationTestFalseNegativeDiagnosticsBrokenSemantics.hpp
Go to the documentation of this file.
1
2// Copyright Oliver J. Rosten 2020. //
3// Distributed under the GNU GENERAL PUBLIC LICENSE, Version 3.0. //
4// (See accompanying file LICENSE.md or copy at //
5// https://www.gnu.org/licenses/gpl-3.0.en.html) //
7
8#pragma once
9
13
14namespace sequoia::testing
15{
18 {
19 public:
20 using regular_allocation_false_negative_test::regular_allocation_false_negative_test;
21
22 [[nodiscard]]
23 std::filesystem::path source_file() const;
24
25 template<bool PropagateCopy, bool PropagateMove, bool PropagateSwap>
26 void test_allocation();
27
28 void run_tests();
29 private:
30
31 template<bool PropagateCopy, bool PropagateMove, bool PropagateSwap>
32 void test_regular_semantics();
33 };
34}
Extension for checking allocations for types with regular semantics, see here.
Definition: RegularAllocationTestFalseNegativeDiagnosticsBrokenSemantics.hpp:18
Templated on the test_mode, this forms the basis of all allocation tests for regular types.
Definition: RegularAllocationTestCore.hpp:104