temporarily disable the 'object destroyed immediately' message

This commit is contained in:
Daniel Marjamäki 2010-10-03 16:59:13 +02:00
parent 3bedc9331e
commit fa94312c9a
2 changed files with 6 additions and 0 deletions

View File

@ -3865,6 +3865,10 @@ void CheckOther::checkMisusedScopedObject()
unsigned int depth = 0;
std::string className = "";
// This condition can be removed after the release. it is here because of #2072
if (!_settings->inconclusive)
return;
for (const Token *tok = _tokenizer->tokens(); tok; tok = tok->next())
{
withinFunction |= Token::Match(tok, ") const| {");

View File

@ -126,6 +126,7 @@ private:
// Check..
Settings settings;
settings._checkCodingStyle = true;
settings.inconclusive = true;
CheckOther checkOther(&tokenizer, &settings, this);
// Clear the error buffer..
@ -3039,6 +3040,7 @@ private:
tokenizer.simplifyTokenList();
Settings settings;
settings.inconclusive = true;
CheckOther checkOther(&tokenizer, &settings, this);
checkOther.checkMisusedScopedObject();