temporarily disable the 'object destroyed immediately' message
This commit is contained in:
parent
3bedc9331e
commit
fa94312c9a
|
@ -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| {");
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue