Typos found by running "codespell" (#1355)
* Update astutils.cpp * Update checksizeof.cpp
This commit is contained in:
parent
7591616f43
commit
b9cd7368f5
|
@ -181,7 +181,7 @@ static const Token * followVariableExpression(const Token * tok, bool cpp)
|
||||||
const Token * endToken = (isInLoopCondition(tok) || isInLoopCondition(varTok) || var->scope() != tok->scope()) ? var->scope()->bodyEnd : tok;
|
const Token * endToken = (isInLoopCondition(tok) || isInLoopCondition(varTok) || var->scope() != tok->scope()) ? var->scope()->bodyEnd : tok;
|
||||||
if (!var->isConst() && isVariableChanged(varTok, endToken, tok->varId(), false, nullptr, cpp))
|
if (!var->isConst() && isVariableChanged(varTok, endToken, tok->varId(), false, nullptr, cpp))
|
||||||
return tok;
|
return tok;
|
||||||
// Start at begining of initialization
|
// Start at beginning of initialization
|
||||||
const Token * startToken = varTok;
|
const Token * startToken = varTok;
|
||||||
while (Token::Match(startToken, "%op%|.|(|{") && startToken->astOperand1())
|
while (Token::Match(startToken, "%op%|.|(|{") && startToken->astOperand1())
|
||||||
startToken = startToken->astOperand1();
|
startToken = startToken->astOperand1();
|
||||||
|
|
|
@ -336,7 +336,7 @@ void CheckSizeof::sizeofFunction()
|
||||||
if (checkToken->tokType() == Token::eName)
|
if (checkToken->tokType() == Token::eName)
|
||||||
break;
|
break;
|
||||||
const Function * fun = checkToken->function();
|
const Function * fun = checkToken->function();
|
||||||
// Dont report error if the function is overloaded
|
// Don't report error if the function is overloaded
|
||||||
if (fun && fun->nestedIn->functionMap.count(checkToken->str()) == 1) {
|
if (fun && fun->nestedIn->functionMap.count(checkToken->str()) == 1) {
|
||||||
sizeofFunctionError(tok);
|
sizeofFunctionError(tok);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue