Typos found by running "codespell" (#4702)

This commit is contained in:
Armin Müller 2023-01-10 15:15:27 +01:00 committed by GitHub
parent 491721a6ff
commit a77f0d9403
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 8 deletions

View File

@ -345,7 +345,7 @@ public:
* text mode, e.g. "{file}:{line} {info}" */
std::string templateLocation;
/** @brief The maximum time in seconds for the template instantation */
/** @brief The maximum time in seconds for the template instantiation */
std::size_t templateMaxTime;
/** @brief The maximum time in seconds for the typedef simplification */

View File

@ -3120,7 +3120,7 @@ bool TemplateSimplifier::simplifyTemplateInstantiations(
ErrorMessage errmsg({std::move(loc)},
emptyString,
Severity::debug,
"Template instantation maximum time exceeded",
"Template instantiation maximum time exceeded",
"templateMaxTime",
Certainty::normal);
mErrorLogger->reportErr(errmsg);
@ -3191,7 +3191,7 @@ bool TemplateSimplifier::simplifyTemplateInstantiations(
ErrorMessage errmsg({std::move(loc)},
emptyString,
Severity::debug,
"Template instantation maximum time exceeded",
"Template instantiation maximum time exceeded",
"templateMaxTime",
Certainty::normal);
mErrorLogger->reportErr(errmsg);

View File

@ -624,7 +624,7 @@ void Tokenizer::simplifyTypedef()
ErrorMessage errmsg({std::move(loc)},
emptyString,
Severity::debug,
"Typedef simplification instantation maximum time exceeded",
"Typedef simplification instantiation maximum time exceeded",
"typedefMaxTime",
Certainty::normal);
mErrorLogger->reportErr(errmsg);

View File

@ -602,7 +602,7 @@ static void setTokenValue(Token* tok,
const Token* callParent = findParent(parent, [](const Token* p) {
return !Token::simpleMatch(p, ",");
});
// Ensure that the comma isnt a function call
// Ensure that the comma isn't a function call
if (!callParent || (!Token::Match(callParent->previous(), "%name%|> (") && !Token::simpleMatch(callParent, "{"))) {
setTokenValue(parent, std::move(value), settings);
return;
@ -5482,7 +5482,7 @@ static void valueFlowForwardConst(Token* start,
}
return;
}
// Follow symbolic vaues
// Follow symbolic values
for (const ValueFlow::Value& v : tok->values()) {
if (!v.isSymbolicValue())
continue;
@ -9205,7 +9205,7 @@ static std::vector<ValueFlow::Value> isOutOfBoundsImpl(const ValueFlow::Value& s
return {};
if (size.bound == ValueFlow::Value::Bound::Lower)
return {};
// Checking for underflow doesnt mean it could be out of bounds
// Checking for underflow doesn't mean it could be out of bounds
if (indexValue->intvalue == 0)
return {};
ValueFlow::Value value = inferCondition(">=", indexTok, indexValue->intvalue);

View File

@ -1110,7 +1110,7 @@ def read_data(connection, cmd, pos_nl, max_data_size, check_done, cmd_name, time
t += 0.2
connection.close()
except socket.error as e:
print_ts('Socket error occured ({}): {}'.format(cmd_name, e))
print_ts('Socket error occurred ({}): {}'.format(cmd_name, e))
data = None
if (timeout > 0 and t >= timeout):