Merge branch 'debug-warnings' of https://github.com/rgeissert/cppcheck into rgeissert-debug-warnings
This commit is contained in:
commit
85897c3991
|
@ -2357,7 +2357,7 @@ void CheckMemoryLeakInFunction::checkScope(const Token *Tok1, const std::string
|
||||||
if (! noerr)
|
if (! noerr)
|
||||||
{
|
{
|
||||||
std::ostringstream errmsg;
|
std::ostringstream errmsg;
|
||||||
errmsg << "inconclusive leak: ";
|
errmsg << "inconclusive leak of " << varname << ": ";
|
||||||
for (const Token *tok2 = tok; tok2; tok2 = tok2->next())
|
for (const Token *tok2 = tok; tok2; tok2 = tok2->next())
|
||||||
errmsg << " " << tok2->str();
|
errmsg << " " << tok2->str();
|
||||||
reportError(_tokenizer->tokens(), Severity::debug, "debug", errmsg.str());
|
reportError(_tokenizer->tokens(), Severity::debug, "debug", errmsg.str());
|
||||||
|
|
Loading…
Reference in New Issue