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

Method MemoryLeakWarningPlugin

src/CppUTest/MemoryLeakWarningPlugin.cpp:595–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593}
594
595MemoryLeakWarningPlugin::MemoryLeakWarningPlugin(const SimpleString& name, MemoryLeakDetector* localDetector) :
596 TestPlugin(name), ignoreAllWarnings_(false), destroyGlobalDetectorAndTurnOfMemoryLeakDetectionInDestructor_(false), expectedLeaks_(0)
597{
598 if (firstPlugin_ == NULLPTR) firstPlugin_ = this;
599
600 if (localDetector) memLeakDetector_ = localDetector;
601 else memLeakDetector_ = getGlobalDetector();
602
603 memLeakDetector_->enable();
604}
605
606MemoryLeakWarningPlugin::~MemoryLeakWarningPlugin()
607{

Callers

nothing calls this directly

Calls 1

enableMethod · 0.45

Tested by

no test coverage detected