MCPcopy Create free account
hub / github.com/cpputest/cpputest / addAllocationLocation

Method addAllocationLocation

src/CppUTest/MemoryLeakDetector.cpp:138–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void MemoryLeakOutputStringBuffer::addAllocationLocation(const char* allocationFile, size_t allocationLineNumber, size_t allocationSize, TestMemoryAllocator* allocator)
139{
140 outputBuffer_.add(" allocated at file: %s line: %d size: %lu type: %s\n", allocationFile, (int) allocationLineNumber, (unsigned long) allocationSize, allocator->alloc_name());
141}
142
143void MemoryLeakOutputStringBuffer::addDeallocationLocation(const char* freeFile, size_t freeLineNumber, TestMemoryAllocator* allocator)
144{

Callers

nothing calls this directly

Calls 2

addMethod · 0.45
alloc_nameMethod · 0.45

Tested by

no test coverage detected