MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / noDestructorError

Method noDestructorError

lib/checkclass.cpp:650–653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

648}
649
650void CheckClassImpl::noDestructorError(const Scope *scope, bool isdefault, const Token *alloc)
651{
652 reportError(alloc, Severity::warning, "noDestructor", noMemberErrorMessage(scope, "destructor", isdefault), CWE398, Certainty::normal);
653}
654
655bool CheckClassImpl::canNotCopy(const Scope *scope)
656{

Callers 1

getErrorMessagesMethod · 0.80

Calls 2

noMemberErrorMessageFunction · 0.85
reportErrorFunction · 0.70

Tested by

no test coverage detected