Skip to content

Commit a77f0d9

Browse files
authored
Typos found by running "codespell" (danmar#4702)
1 parent 491721a commit a77f0d9

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

lib/settings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ class CPPCHECKLIB Settings : public cppcheck::Platform {
345345
* text mode, e.g. "{file}:{line} {info}" */
346346
std::string templateLocation;
347347

348-
/** @brief The maximum time in seconds for the template instantation */
348+
/** @brief The maximum time in seconds for the template instantiation */
349349
std::size_t templateMaxTime;
350350

351351
/** @brief The maximum time in seconds for the typedef simplification */

lib/templatesimplifier.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3120,7 +3120,7 @@ bool TemplateSimplifier::simplifyTemplateInstantiations(
31203120
ErrorMessage errmsg({std::move(loc)},
31213121
emptyString,
31223122
Severity::debug,
3123-
"Template instantation maximum time exceeded",
3123+
"Template instantiation maximum time exceeded",
31243124
"templateMaxTime",
31253125
Certainty::normal);
31263126
mErrorLogger->reportErr(errmsg);
@@ -3191,7 +3191,7 @@ bool TemplateSimplifier::simplifyTemplateInstantiations(
31913191
ErrorMessage errmsg({std::move(loc)},
31923192
emptyString,
31933193
Severity::debug,
3194-
"Template instantation maximum time exceeded",
3194+
"Template instantiation maximum time exceeded",
31953195
"templateMaxTime",
31963196
Certainty::normal);
31973197
mErrorLogger->reportErr(errmsg);

lib/tokenize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ void Tokenizer::simplifyTypedef()
624624
ErrorMessage errmsg({std::move(loc)},
625625
emptyString,
626626
Severity::debug,
627-
"Typedef simplification instantation maximum time exceeded",
627+
"Typedef simplification instantiation maximum time exceeded",
628628
"typedefMaxTime",
629629
Certainty::normal);
630630
mErrorLogger->reportErr(errmsg);

lib/valueflow.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ static void setTokenValue(Token* tok,
602602
const Token* callParent = findParent(parent, [](const Token* p) {
603603
return !Token::simpleMatch(p, ",");
604604
});
605-
// Ensure that the comma isnt a function call
605+
// Ensure that the comma isn't a function call
606606
if (!callParent || (!Token::Match(callParent->previous(), "%name%|> (") && !Token::simpleMatch(callParent, "{"))) {
607607
setTokenValue(parent, std::move(value), settings);
608608
return;
@@ -5482,7 +5482,7 @@ static void valueFlowForwardConst(Token* start,
54825482
}
54835483
return;
54845484
}
5485-
// Follow symbolic vaues
5485+
// Follow symbolic values
54865486
for (const ValueFlow::Value& v : tok->values()) {
54875487
if (!v.isSymbolicValue())
54885488
continue;
@@ -9205,7 +9205,7 @@ static std::vector<ValueFlow::Value> isOutOfBoundsImpl(const ValueFlow::Value& s
92059205
return {};
92069206
if (size.bound == ValueFlow::Value::Bound::Lower)
92079207
return {};
9208-
// Checking for underflow doesnt mean it could be out of bounds
9208+
// Checking for underflow doesn't mean it could be out of bounds
92099209
if (indexValue->intvalue == 0)
92109210
return {};
92119211
ValueFlow::Value value = inferCondition(">=", indexTok, indexValue->intvalue);

tools/donate-cpu-server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1110,7 +1110,7 @@ def read_data(connection, cmd, pos_nl, max_data_size, check_done, cmd_name, time
11101110
t += 0.2
11111111
connection.close()
11121112
except socket.error as e:
1113-
print_ts('Socket error occured ({}): {}'.format(cmd_name, e))
1113+
print_ts('Socket error occurred ({}): {}'.format(cmd_name, e))
11141114
data = None
11151115

11161116
if (timeout > 0 and t >= timeout):

0 commit comments

Comments
 (0)