Skip to content

Commit fc90598

Browse files
authored
Typos found by running "codespell" (#3324)
1 parent 30af910 commit fc90598

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

lib/checkexceptionsafety.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ void CheckExceptionSafety::rethrowNoCurrentException()
362362

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

lib/forwardanalyzer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ struct ForwardTraversal {
423423
}
424424

425425
if (allAnalysis.isModified() || !forkContinue) {
426-
// TODO: Dont bail on missing condition
426+
// TODO: Don't bail on missing condition
427427
if (!condTok)
428428
return Break(Analyzer::Terminate::Bail);
429429
if (analyzer->isConditional() && stopUpdates())

lib/tokenlist.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1661,7 +1661,7 @@ void TokenList::validateAst() const
16611661
// Check for endless recursion
16621662
const Token* parent = tok->astParent();
16631663
if (parent) {
1664-
std::set < const Token* > astTokens; // list of anchestors
1664+
std::set < const Token* > astTokens; // list of ancestors
16651665
astTokens.insert(tok);
16661666
do {
16671667
if (safeAstTokens.find(parent) != safeAstTokens.end())

lib/valueflow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6422,7 +6422,7 @@ static std::vector<ValueFlow::Value> getInitListSize(const Token* tok,
64226422
bool known = true)
64236423
{
64246424
std::vector<const Token*> args = getArguments(tok);
6425-
// Strings dont use an init list
6425+
// Strings don't use an init list
64266426
if (!args.empty() && container->stdStringLike) {
64276427
if (astIsIntegral(args[0], false)) {
64286428
if (args.size() > 1)

lib/valueflow.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,9 @@ namespace ValueFlow {
328328
Object,
329329
// A member of object points to the lifetime
330330
SubObject,
331-
// Lambda has captured lifetime(similiar to SubObject)
331+
// Lambda has captured lifetime(similar to SubObject)
332332
Lambda,
333-
// Iterator points to the lifetime of a container(similiar to Object)
333+
// Iterator points to the lifetime of a container(similar to Object)
334334
Iterator,
335335
// A pointer that holds the address of the lifetime
336336
Address

test/testbufferoverrun.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3527,7 +3527,7 @@ class TestBufferOverrun : public TestFixture {
35273527
"}", settings);
35283528
ASSERT_EQUALS("", errout.str());
35293529

3530-
// #3124 - multidimension array
3530+
// #3124 - multidimensional array
35313531
check("int main() {\n"
35323532
" char b[5][6];\n"
35333533
" mymemset(b, 0, 5 * 6);\n"

0 commit comments

Comments
 (0)