CheckClass: Disable noDestructor for now, we need to handle new better
This commit is contained in:
parent
42100fdf11
commit
9710e819be
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue