Typos found by running "codespell" (#4702)
This commit is contained in:
parent
491721a6ff
commit
a77f0d9403
|
@ -345,7 +345,7 @@ public:
|
||||||
* text mode, e.g. "{file}:{line} {info}" */
|
* text mode, e.g. "{file}:{line} {info}" */
|
||||||
std::string templateLocation;
|
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;
|
std::size_t templateMaxTime;
|
||||||
|
|
||||||
/** @brief The maximum time in seconds for the typedef simplification */
|
/** @brief The maximum time in seconds for the typedef simplification */
|
||||||
|
|
|
@ -3120,7 +3120,7 @@ bool TemplateSimplifier::simplifyTemplateInstantiations(
|
||||||
ErrorMessage errmsg({std::move(loc)},
|
ErrorMessage errmsg({std::move(loc)},
|
||||||
emptyString,
|
emptyString,
|
||||||
Severity::debug,
|
Severity::debug,
|
||||||
"Template instantation maximum time exceeded",
|
"Template instantiation maximum time exceeded",
|
||||||
"templateMaxTime",
|
"templateMaxTime",
|
||||||
Certainty::normal);
|
Certainty::normal);
|
||||||
mErrorLogger->reportErr(errmsg);
|
mErrorLogger->reportErr(errmsg);
|
||||||
|
@ -3191,7 +3191,7 @@ bool TemplateSimplifier::simplifyTemplateInstantiations(
|
||||||
ErrorMessage errmsg({std::move(loc)},
|
ErrorMessage errmsg({std::move(loc)},
|
||||||
emptyString,
|
emptyString,
|
||||||
Severity::debug,
|
Severity::debug,
|
||||||
"Template instantation maximum time exceeded",
|
"Template instantiation maximum time exceeded",
|
||||||
"templateMaxTime",
|
"templateMaxTime",
|
||||||
Certainty::normal);
|
Certainty::normal);
|
||||||
mErrorLogger->reportErr(errmsg);
|
mErrorLogger->reportErr(errmsg);
|
||||||
|
|
|
@ -624,7 +624,7 @@ void Tokenizer::simplifyTypedef()
|
||||||
ErrorMessage errmsg({std::move(loc)},
|
ErrorMessage errmsg({std::move(loc)},
|
||||||
emptyString,
|
emptyString,
|
||||||
Severity::debug,
|
Severity::debug,
|
||||||
"Typedef simplification instantation maximum time exceeded",
|
"Typedef simplification instantiation maximum time exceeded",
|
||||||
"typedefMaxTime",
|
"typedefMaxTime",
|
||||||
Certainty::normal);
|
Certainty::normal);
|
||||||
mErrorLogger->reportErr(errmsg);
|
mErrorLogger->reportErr(errmsg);
|
||||||
|
|
|
@ -602,7 +602,7 @@ static void setTokenValue(Token* tok,
|
||||||
const Token* callParent = findParent(parent, [](const Token* p) {
|
const Token* callParent = findParent(parent, [](const Token* p) {
|
||||||
return !Token::simpleMatch(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, "{"))) {
|
if (!callParent || (!Token::Match(callParent->previous(), "%name%|> (") && !Token::simpleMatch(callParent, "{"))) {
|
||||||
setTokenValue(parent, std::move(value), settings);
|
setTokenValue(parent, std::move(value), settings);
|
||||||
return;
|
return;
|
||||||
|
@ -5482,7 +5482,7 @@ static void valueFlowForwardConst(Token* start,
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Follow symbolic vaues
|
// Follow symbolic values
|
||||||
for (const ValueFlow::Value& v : tok->values()) {
|
for (const ValueFlow::Value& v : tok->values()) {
|
||||||
if (!v.isSymbolicValue())
|
if (!v.isSymbolicValue())
|
||||||
continue;
|
continue;
|
||||||
|
@ -9205,7 +9205,7 @@ static std::vector<ValueFlow::Value> isOutOfBoundsImpl(const ValueFlow::Value& s
|
||||||
return {};
|
return {};
|
||||||
if (size.bound == ValueFlow::Value::Bound::Lower)
|
if (size.bound == ValueFlow::Value::Bound::Lower)
|
||||||
return {};
|
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)
|
if (indexValue->intvalue == 0)
|
||||||
return {};
|
return {};
|
||||||
ValueFlow::Value value = inferCondition(">=", indexTok, indexValue->intvalue);
|
ValueFlow::Value value = inferCondition(">=", indexTok, indexValue->intvalue);
|
||||||
|
|
|
@ -1110,7 +1110,7 @@ def read_data(connection, cmd, pos_nl, max_data_size, check_done, cmd_name, time
|
||||||
t += 0.2
|
t += 0.2
|
||||||
connection.close()
|
connection.close()
|
||||||
except socket.error as e:
|
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
|
data = None
|
||||||
|
|
||||||
if (timeout > 0 and t >= timeout):
|
if (timeout > 0 and t >= timeout):
|
||||||
|
|
Loading…
Reference in New Issue