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;
|
||||
if (!var->isConst() && isVariableChanged(varTok, endToken, tok->varId(), false, nullptr, cpp))
|
||||
return tok;
|
||||
// Start at begining of initialization
|
||||
// Start at beginning of initialization
|
||||
const Token * startToken = varTok;
|
||||
while (Token::Match(startToken, "%op%|.|(|{") && startToken->astOperand1())
|
||||
startToken = startToken->astOperand1();
|
||||
|
|
|
@ -336,7 +336,7 @@ void CheckSizeof::sizeofFunction()
|
|||
if (checkToken->tokType() == Token::eName)
|
||||
break;
|
||||
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) {
|
||||
sizeofFunctionError(tok);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue