Typos found by running "codespell" (#3324)

This commit is contained in:
Armin Müller 2021-07-02 17:41:51 +02:00 committed by GitHub
parent 30af910b85
commit fc90598077
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 7 deletions

View File

@ -362,7 +362,7 @@ void CheckExceptionSafety::rethrowNoCurrentException()
// Rethrow can be used in 'exception dispatcher' idiom which is FP in such case
// https://isocpp.org/wiki/faq/exceptions#throw-without-an-object
// We check the beggining of the function with idiom pattern
// We check the beginning of the function with idiom pattern
if (Token::simpleMatch(function->functionScope->bodyStart->next(), "try { throw ; } catch ("))
continue;

View File

@ -423,7 +423,7 @@ struct ForwardTraversal {
}
if (allAnalysis.isModified() || !forkContinue) {
// TODO: Dont bail on missing condition
// TODO: Don't bail on missing condition
if (!condTok)
return Break(Analyzer::Terminate::Bail);
if (analyzer->isConditional() && stopUpdates())

View File

@ -1661,7 +1661,7 @@ void TokenList::validateAst() const
// Check for endless recursion
const Token* parent = tok->astParent();
if (parent) {
std::set < const Token* > astTokens; // list of anchestors
std::set < const Token* > astTokens; // list of ancestors
astTokens.insert(tok);
do {
if (safeAstTokens.find(parent) != safeAstTokens.end())

View File

@ -6422,7 +6422,7 @@ static std::vector<ValueFlow::Value> getInitListSize(const Token* tok,
bool known = true)
{
std::vector<const Token*> args = getArguments(tok);
// Strings dont use an init list
// Strings don't use an init list
if (!args.empty() && container->stdStringLike) {
if (astIsIntegral(args[0], false)) {
if (args.size() > 1)

View File

@ -328,9 +328,9 @@ namespace ValueFlow {
Object,
// A member of object points to the lifetime
SubObject,
// Lambda has captured lifetime(similiar to SubObject)
// Lambda has captured lifetime(similar to SubObject)
Lambda,
// Iterator points to the lifetime of a container(similiar to Object)
// Iterator points to the lifetime of a container(similar to Object)
Iterator,
// A pointer that holds the address of the lifetime
Address

View File

@ -3527,7 +3527,7 @@ private:
"}", settings);
ASSERT_EQUALS("", errout.str());
// #3124 - multidimension array
// #3124 - multidimensional array
check("int main() {\n"
" char b[5][6];\n"
" mymemset(b, 0, 5 * 6);\n"