![]() |
ATLAS Offline Software
|
Pitifully simple leak checker for unit tests. Just verifies that allocations/deallocations match over an RAII region. More...
#include <malloc.h>#include <unordered_set>#include <iostream>#include <cassert>Go to the source code of this file.
Classes | |
| struct | Athena_test::LeakCheckDisable |
| struct | Athena_test::Leakcheck |
Namespaces | |
| namespace | Athena_test |
| functions & macros to test the difference between floats | |
Functions | |
| void * | newImpl (std::size_t size) |
| void * | operator new (std::size_t size) |
| void | deleteImpl (void *ptr) noexcept |
| void | operator delete (void *ptr) noexcept |
| void | operator delete (void *ptr, size_t) noexcept |
Variables | |
| std::unordered_set< void * > * | Athena_test::allocs = nullptr |
Pitifully simple leak checker for unit tests. Just verifies that allocations/deallocations match over an RAII region.
Overrides the standard new/delete functions, so should not be #included from any code that would be included in a library.
Definition in file leakcheck.h.
|
noexcept |
Definition at line 81 of file leakcheck.h.
| void * newImpl | ( | std::size_t | size | ) |
Definition at line 65 of file leakcheck.h.
|
noexcept |
Definition at line 90 of file leakcheck.h.
|
noexcept |
Definition at line 95 of file leakcheck.h.
| void * operator new | ( | std::size_t | size | ) |
Definition at line 75 of file leakcheck.h.