split "autoNoType" and "bailoutUninitVar" from more generic "debug" (#3209)
This commit is contained in:
parent
c98afa83fd
commit
155ff890a5
|
@ -14,6 +14,8 @@ valueFlowBailout
|
|||
valueFlowBailoutIncompleteVar
|
||||
debug
|
||||
varid0
|
||||
autoNoType
|
||||
bailoutUninitVar
|
||||
|
||||
*:gui/test/*
|
||||
*:test/test.cxx
|
||||
|
|
|
@ -465,7 +465,7 @@ bool CheckUninitVar::checkScopeForVariable(const Token *tok, const Variable& var
|
|||
if (tok2->isName() && tok2->next()->isName())
|
||||
condition += ' ';
|
||||
}
|
||||
reportError(tok, Severity::debug, "debug", "bailout uninitialized variable checking for '" + var.name() + "'. can't determine if this condition can be false when previous condition is false: " + condition);
|
||||
reportError(tok, Severity::debug, "bailoutUninitVar", "bailout uninitialized variable checking for '" + var.name() + "'. can't determine if this condition can be false when previous condition is false: " + condition);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -6498,7 +6498,7 @@ void SymbolDatabase::setValueTypeInTokenList(bool reportDebugWarnings, Token *to
|
|||
if (reportDebugWarnings && mSettings->debugwarnings) {
|
||||
for (Token *tok = tokens; tok; tok = tok->next()) {
|
||||
if (tok->str() == "auto" && !tok->valueType())
|
||||
debugMessage(tok, "debug", "auto token with no type.");
|
||||
debugMessage(tok, "autoNoType", "auto token with no type.");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue