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;
|
unsigned int depth = 0;
|
||||||
std::string className = "";
|
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())
|
for (const Token *tok = _tokenizer->tokens(); tok; tok = tok->next())
|
||||||
{
|
{
|
||||||
withinFunction |= Token::Match(tok, ") const| {");
|
withinFunction |= Token::Match(tok, ") const| {");
|
||||||
|
|
|
@ -126,6 +126,7 @@ private:
|
||||||
// Check..
|
// Check..
|
||||||
Settings settings;
|
Settings settings;
|
||||||
settings._checkCodingStyle = true;
|
settings._checkCodingStyle = true;
|
||||||
|
settings.inconclusive = true;
|
||||||
CheckOther checkOther(&tokenizer, &settings, this);
|
CheckOther checkOther(&tokenizer, &settings, this);
|
||||||
|
|
||||||
// Clear the error buffer..
|
// Clear the error buffer..
|
||||||
|
@ -3039,6 +3040,7 @@ private:
|
||||||
tokenizer.simplifyTokenList();
|
tokenizer.simplifyTokenList();
|
||||||
|
|
||||||
Settings settings;
|
Settings settings;
|
||||||
|
settings.inconclusive = true;
|
||||||
|
|
||||||
CheckOther checkOther(&tokenizer, &settings, this);
|
CheckOther checkOther(&tokenizer, &settings, this);
|
||||||
checkOther.checkMisusedScopedObject();
|
checkOther.checkMisusedScopedObject();
|
||||||
|
|
Loading…
Reference in New Issue