Define error messages for --errorlist for CheckMemoryLeakNoVar class

This commit is contained in:
Pierre Schweitzer 2012-03-14 23:44:04 +01:00
parent 81318b3f4a
commit f3b1c46c7d
1 changed files with 7 additions and 3 deletions

View File

@ -452,15 +452,19 @@ public:
void check();
void getErrorMessages(ErrorLogger *e, const Settings *settings) const {
CheckMemoryLeakNoVar c(0, settings, e);
c.functionCallLeak(0, "funcName", "funcName");
c.missingAssignementLeak(0, "funcName");
}
private:
void functionCallLeak(const Token *loc, const std::string &alloc, const std::string &functionCall);
void missingAssignementLeak(const Token *loc, const std::string &alloc);
void getErrorMessages(ErrorLogger * /*errorLogger*/, const Settings * /*settings*/) const
{ }
std::string myName() const {
return "Memory leaks (address not taken)";
}