Skip to content

Commit 0de0a95

Browse files
authored
Typos found by running "codespell" (cppcheck-opensource#3042)
1 parent fc42388 commit 0de0a95

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

addons/misra.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,7 @@ def misra_5_5(self, data):
13251325

13261326

13271327
def misra_6_1(self, data):
1328-
# Bitfield type must be bool or explicity signed/unsigned int
1328+
# Bitfield type must be bool or explicitly signed/unsigned int
13291329
for token in data.tokenlist:
13301330
if not token.valueType:
13311331
continue

lib/valueflow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4091,7 +4091,7 @@ struct ConditionHandler {
40914091
if (cond.vartok->exprId() == 0)
40924092
return;
40934093

4094-
// If condition is known then dont propogate value
4094+
// If condition is known then don't propagate value
40954095
if (tok->hasKnownIntValue())
40964096
return;
40974097

test/testtoken.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ class TestToken : public TestFixture {
120120
Token *last = token->tokAt(2);
121121
ASSERT_EQUALS(token->str(), "1");
122122
ASSERT_EQUALS(token->next()->str(), "2");
123-
// cppcheck-suppress redundantNextPrevious - this is itentional
123+
// cppcheck-suppress redundantNextPrevious - this is intentional
124124
ASSERT_EQUALS(token->tokAt(2)->str(), "3");
125125
ASSERT_EQUALS_MSG(true, last->next() == nullptr, "Null was expected");
126126

127127
ASSERT_EQUALS(last->str(), "3");
128128
ASSERT_EQUALS(last->previous()->str(), "2");
129-
// cppcheck-suppress redundantNextPrevious - this is itentional
129+
// cppcheck-suppress redundantNextPrevious - this is intentional
130130
ASSERT_EQUALS(last->tokAt(-2)->str(), "1");
131131
ASSERT_EQUALS_MSG(true, token->previous() == nullptr, "Null was expected");
132132

@@ -721,24 +721,24 @@ class TestToken : public TestFixture {
721721

722722
void matchOr() const {
723723
givenACodeSampleToTokenize bitwiseOr(";|;", true);
724-
// cppcheck-suppress simplePatternError - this is itentional
724+
// cppcheck-suppress simplePatternError - this is intentional
725725
ASSERT_EQUALS(true, Token::Match(bitwiseOr.tokens(), "; %or%"));
726726
ASSERT_EQUALS(true, Token::Match(bitwiseOr.tokens(), "; %op%"));
727-
// cppcheck-suppress simplePatternError - this is itentional
727+
// cppcheck-suppress simplePatternError - this is intentional
728728
ASSERT_EQUALS(false, Token::Match(bitwiseOr.tokens(), "; %oror%"));
729729

730730
givenACodeSampleToTokenize bitwiseOrAssignment(";|=;");
731-
// cppcheck-suppress simplePatternError - this is itentional
731+
// cppcheck-suppress simplePatternError - this is intentional
732732
ASSERT_EQUALS(false, Token::Match(bitwiseOrAssignment.tokens(), "; %or%"));
733733
ASSERT_EQUALS(true, Token::Match(bitwiseOrAssignment.tokens(), "; %op%"));
734-
// cppcheck-suppress simplePatternError - this is itentional
734+
// cppcheck-suppress simplePatternError - this is intentional
735735
ASSERT_EQUALS(false, Token::Match(bitwiseOrAssignment.tokens(), "; %oror%"));
736736

737737
givenACodeSampleToTokenize logicalOr(";||;", true);
738-
// cppcheck-suppress simplePatternError - this is itentional
738+
// cppcheck-suppress simplePatternError - this is intentional
739739
ASSERT_EQUALS(false, Token::Match(logicalOr.tokens(), "; %or%"));
740740
ASSERT_EQUALS(true, Token::Match(logicalOr.tokens(), "; %op%"));
741-
// cppcheck-suppress simplePatternError - this is itentional
741+
// cppcheck-suppress simplePatternError - this is intentional
742742
ASSERT_EQUALS(true, Token::Match(logicalOr.tokens(), "; %oror%"));
743743
ASSERT_EQUALS(true, Token::Match(logicalOr.tokens(), "; &&|%oror%"));
744744
ASSERT_EQUALS(true, Token::Match(logicalOr.tokens(), "; %oror%|&&"));

0 commit comments

Comments
 (0)