Spell fix: dont => do not
This commit is contained in:
parent
a02bbfa47e
commit
87c4508954
|
@ -5032,7 +5032,7 @@ void Tokenizer::simplifyPointerToStandardType()
|
|||
void Tokenizer:: simplifyFunctionPointers()
|
||||
{
|
||||
for (Token *tok = list.front(); tok; tok = tok->next()) {
|
||||
// #2873 - dont simplify function pointer usage here:
|
||||
// #2873 - do not simplify function pointer usage here:
|
||||
// (void)(xy(*p)(0));
|
||||
if (Token::simpleMatch(tok, ") (")) {
|
||||
tok = tok->next()->link();
|
||||
|
|
|
@ -72,10 +72,10 @@ static bool bailoutFunctionPar(const Token *tok, const ValueFlow::Value &value,
|
|||
}
|
||||
tok = tok ? tok->previous() : nullptr;
|
||||
if (!Token::Match(tok,"%var% ("))
|
||||
return false; // not a function => dont bailout
|
||||
return false; // not a function => do not bailout
|
||||
|
||||
if (!tok->function()) {
|
||||
// if value is 0 and the library says 0 is invalid => dont bailout
|
||||
// if value is 0 and the library says 0 is invalid => do not bailout
|
||||
if (value.intvalue==0 && settings->library.isnullargbad(tok->str(), 1+argnr))
|
||||
return false;
|
||||
// inconclusive => don't bailout
|
||||
|
|
Loading…
Reference in New Issue