diff --git a/lib/astutils.cpp b/lib/astutils.cpp index 65b0512e0..49bd15e82 100644 --- a/lib/astutils.cpp +++ b/lib/astutils.cpp @@ -1663,7 +1663,7 @@ Token* findVariableChanged(Token *start, const Token *end, int indirect, const n // Is aliased function call if (Token::Match(tok, "%var% (") && std::any_of(tok->values().begin(), tok->values().end(), std::mem_fn(&ValueFlow::Value::isLifetimeValue))) { bool aliased = false; - // If we cant find the expression then assume it was modified + // If we can't find the expression then assume it was modified if (!getExprTok()) return tok; visitAstNodes(getExprTok(), [&](const Token* childTok) { diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 76d8905f0..5ba99c6f5 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -8098,7 +8098,7 @@ bool Tokenizer::simplifyRedundantParentheses() continue; } - // Do not simplify if there is comma inside parantheses.. + // Do not simplify if there is comma inside parentheses.. if (Token::Match(tok->previous(), "%op% (") || Token::Match(tok->link(), ") %op%")) { bool innerComma = false; for (const Token *inner = tok->link()->previous(); inner != tok; inner = inner->previous()) { diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index 2575319a4..951636ae7 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -5978,7 +5978,7 @@ struct ContainerVariableForwardAnalyzer : VariableForwardAnalyzer { virtual Action isModified(const Token* tok) const OVERRIDE { Action read = Action::Read; - // An iterator wont change the container size + // An iterator won't change the container size if (astIsIterator(tok)) return read; if (Token::Match(tok->astParent(), "%assign%") && astIsLHS(tok))