Typos found by running "codespell" (#1355)

* Update astutils.cpp

* Update checksizeof.cpp
This commit is contained in:
Armin Müller 2018-08-30 19:51:39 +02:00 committed by Daniel Marjamäki
parent 7591616f43
commit b9cd7368f5
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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);
}