| 612 | */ |
| 613 | |
| 614 | void CheckClassImpl::copyConstructorShallowCopyError(const Token *tok, const std::string& varname) |
| 615 | { |
| 616 | reportError(tok, Severity::warning, "copyCtorPointerCopying", |
| 617 | "$symbol:" + varname + "\nValue of pointer '$symbol', which points to allocated memory, is copied in copy constructor instead of allocating new memory.", CWE398, Certainty::normal); |
| 618 | } |
| 619 | |
| 620 | static std::string noMemberErrorMessage(const Scope *scope, const char function[], bool isdefault) |
| 621 | { |
no test coverage detected