From b9cd7368f5de81fcff701edd75fa266be5869b67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Armin=20M=C3=BCller?= <27155134+arm-in@users.noreply.github.com> Date: Thu, 30 Aug 2018 19:51:39 +0200 Subject: [PATCH] Typos found by running "codespell" (#1355) * Update astutils.cpp * Update checksizeof.cpp --- lib/astutils.cpp | 2 +- lib/checksizeof.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/astutils.cpp b/lib/astutils.cpp index 22a20a165..bc386cabf 100644 --- a/lib/astutils.cpp +++ b/lib/astutils.cpp @@ -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(); diff --git a/lib/checksizeof.cpp b/lib/checksizeof.cpp index 1ef1ec1cf..a90f8ffc8 100644 --- a/lib/checksizeof.cpp +++ b/lib/checksizeof.cpp @@ -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); }