Code cleanup
This commit is contained in:
parent
3b328f9187
commit
643ddd4caa
|
@ -573,19 +573,6 @@ void CheckMemoryLeakInFunction::checkReallocUsage()
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
// Checks for memory leaks inside function..
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
static bool isInMemberFunc(const Scope* scope)
|
|
||||||
{
|
|
||||||
while (scope->nestedIn && !scope->functionOf)
|
|
||||||
scope = scope->nestedIn;
|
|
||||||
|
|
||||||
return (scope->functionOf != nullptr);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Checks for memory leaks in classes..
|
// Checks for memory leaks in classes..
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
|
@ -156,8 +156,8 @@ private:
|
||||||
LOAD_LIB_2(settings1.library, "std.cfg");
|
LOAD_LIB_2(settings1.library, "std.cfg");
|
||||||
LOAD_LIB_2(settings1.library, "posix.cfg");
|
LOAD_LIB_2(settings1.library, "posix.cfg");
|
||||||
LOAD_LIB_2(settings2.library, "std.cfg");
|
LOAD_LIB_2(settings2.library, "std.cfg");
|
||||||
|
return;
|
||||||
|
|
||||||
/*
|
|
||||||
TEST_CASE(simple5);
|
TEST_CASE(simple5);
|
||||||
TEST_CASE(simple7);
|
TEST_CASE(simple7);
|
||||||
TEST_CASE(simple9); // Bug 2435468 - member function "free"
|
TEST_CASE(simple9); // Bug 2435468 - member function "free"
|
||||||
|
@ -369,7 +369,6 @@ private:
|
||||||
TEST_CASE(crash);
|
TEST_CASE(crash);
|
||||||
TEST_CASE(trac7680);
|
TEST_CASE(trac7680);
|
||||||
TEST_CASE(trac7440);
|
TEST_CASE(trac7440);
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -5526,10 +5525,9 @@ private:
|
||||||
void run() override {
|
void run() override {
|
||||||
LOAD_LIB_2(settings.library, "gtk.cfg");
|
LOAD_LIB_2(settings.library, "gtk.cfg");
|
||||||
settings.addEnabled("all");
|
settings.addEnabled("all");
|
||||||
/*
|
return;
|
||||||
TEST_CASE(glib1);
|
TEST_CASE(glib1);
|
||||||
TEST_CASE(glib2); // #2806 - FP when using redundant assignment
|
TEST_CASE(glib2); // #2806 - FP when using redundant assignment
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void glib1() {
|
void glib1() {
|
||||||
|
@ -5640,11 +5638,10 @@ private:
|
||||||
|
|
||||||
void run() override {
|
void run() override {
|
||||||
LOAD_LIB_2(settings.library, "windows.cfg");
|
LOAD_LIB_2(settings.library, "windows.cfg");
|
||||||
/*
|
return;
|
||||||
TEST_CASE(openfileNoLeak);
|
TEST_CASE(openfileNoLeak);
|
||||||
TEST_CASE(returnValueNotUsed_tfopen_s);
|
TEST_CASE(returnValueNotUsed_tfopen_s);
|
||||||
TEST_CASE(sendMessage);
|
TEST_CASE(sendMessage);
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void openfileNoLeak() {
|
void openfileNoLeak() {
|
||||||
|
|
Loading…
Reference in New Issue