CheckClass: Disable noDestructor for now, we need to handle new better

This commit is contained in:
Daniel Marjamäki 2018-05-01 09:26:03 +02:00
parent 42100fdf11
commit 9710e819be
2 changed files with 4 additions and 3 deletions

View File

@ -345,8 +345,9 @@ void CheckClass::copyconstructors()
}
if (!hasOperatorEq)
noOperatorEqError(scope);
if (!hasDestructor)
noDestructorError(scope);
if (!hasDestructor) {
// TODO: how are pointers allocated? noDestructorError(scope);
}
}
std::set<const Token*> copiedVars;

View File

@ -824,7 +824,7 @@ private:
" F(const F &f);\n"
" F&operator=(const F&);"
"};");
ASSERT_EQUALS("[test.cpp:1]: (style) struct 'F' does not have a destructor which is recommended since the class contains a pointer to allocated memory.\n", errout.str());
// TODO ASSERT_EQUALS("[test.cpp:1]: (style) struct 'F' does not have a destructor which is recommended since the class contains a pointer to allocated memory.\n", errout.str());
}
// Check the operator Equal