Skip to content

Commit b9cd736

Browse files
arm-indanmar
authored andcommitted
Typos found by running "codespell" (#1355)
* Update astutils.cpp * Update checksizeof.cpp
1 parent 7591616 commit b9cd736

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/astutils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ static const Token * followVariableExpression(const Token * tok, bool cpp)
181181
const Token * endToken = (isInLoopCondition(tok) || isInLoopCondition(varTok) || var->scope() != tok->scope()) ? var->scope()->bodyEnd : tok;
182182
if (!var->isConst() && isVariableChanged(varTok, endToken, tok->varId(), false, nullptr, cpp))
183183
return tok;
184-
// Start at begining of initialization
184+
// Start at beginning of initialization
185185
const Token * startToken = varTok;
186186
while (Token::Match(startToken, "%op%|.|(|{") && startToken->astOperand1())
187187
startToken = startToken->astOperand1();

lib/checksizeof.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ void CheckSizeof::sizeofFunction()
336336
if (checkToken->tokType() == Token::eName)
337337
break;
338338
const Function * fun = checkToken->function();
339-
// Dont report error if the function is overloaded
339+
// Don't report error if the function is overloaded
340340
if (fun && fun->nestedIn->functionMap.count(checkToken->str()) == 1) {
341341
sizeofFunctionError(tok);
342342
}

0 commit comments

Comments
 (0)