| 730 | } |
| 731 | |
| 732 | void CheckOtherImpl::redundantCopyError(const Token *tok1, const Token* tok2, const std::string& var) |
| 733 | { |
| 734 | const std::list<const Token *> callstack = { tok1, tok2 }; |
| 735 | reportError(callstack, Severity::performance, "redundantCopy", |
| 736 | "$symbol:" + var + "\n" |
| 737 | "Buffer '$symbol' is being written before its old content has been used.", CWE563, Certainty::normal); |
| 738 | } |
| 739 | |
| 740 | void CheckOtherImpl::redundantAssignmentError(const Token *tok1, const Token* tok2, const std::string& var, bool inconclusive) |
| 741 | { |
no test coverage detected