Skip to content

Commit 85907f5

Browse files
committed
fixed some typos
1 parent dd76504 commit 85907f5

18 files changed

+20
-20
lines changed

cli/cppcheckexecutor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ int CppCheckExecutor::executeCommand(std::string exe, std::vector<std::string> a
624624
#else
625625
const int res = pclose(p);
626626
#endif
627-
if (res == -1) { // error occured
627+
if (res == -1) { // error occurred
628628
// TODO: how to provide to caller?
629629
//const int err = errno;
630630
//std::cout << "pclose() errno " << std::to_string(err) << std::endl;

cli/cppcheckexecutorsig.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
# include <ucontext.h>
5050
#endif
5151

52-
// TODO: __USE_DYNAMIC_STACK_SIZE is depedent on the features.h include and not a built-in compiler define, so it might be problematic to depedent on it
52+
// TODO: __USE_DYNAMIC_STACK_SIZE is dependent on the features.h include and not a built-in compiler define, so it might be problematic to depend on it
5353
#ifdef __USE_DYNAMIC_STACK_SIZE
5454
static const size_t MYSTACKSIZE = 16*1024+32768; // wild guess about a reasonable buffer
5555
#else

cmake/clang_tidy.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
if (NOT CMAKE_DISABLE_PRECOMPILE_HEADERS)
2-
# clang-tidy and clang need to have the same version when precompiled headers are beign used
2+
# clang-tidy and clang need to have the same version when precompiled headers are being used
33
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
44
string(REGEX MATCHALL "[0-9]+" _clang_ver_parts "${CMAKE_CXX_COMPILER_VERSION}")
55
LIST(GET _clang_ver_parts 0 _clang_major)

cmake/compileroptions.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ if (MSVC)
187187
# Linker - General
188188
add_link_options($<$<CONFIG:Debug>:/INCREMENTAL>) # Enable Incremental Linking - Yes
189189

190-
add_link_options(/NOLOGO) # SUppress Startup Banner - Yes
190+
add_link_options(/NOLOGO) # Suppress Startup Banner - Yes
191191
# Ignore Import Library - Yes
192192

193193
# Linker - Debugging

externals/simplecpp/simplecpp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ static bool isOct(const std::string &s)
7979
return s.size()>1 && (s[0]=='0') && (s[1] >= '0') && (s[1] < '8');
8080
}
8181

82-
// TODO: added an undercore since this conflicts with a function of the same name in utils.h from Cppcheck source when building Cppcheck with MSBuild
82+
// TODO: added an underscore since this conflicts with a function of the same name in utils.h from Cppcheck source when building Cppcheck with MSBuild
8383
static bool isStringLiteral_(const std::string &s)
8484
{
8585
return s.size() > 1 && (s[0]=='\"') && (*s.rbegin()=='\"');
8686
}
8787

88-
// TODO: added an undercore since this conflicts with a function of the same name in utils.h from Cppcheck source when building Cppcheck with MSBuild
88+
// TODO: added an underscore since this conflicts with a function of the same name in utils.h from Cppcheck source when building Cppcheck with MSBuild
8989
static bool isCharLiteral_(const std::string &s)
9090
{
9191
// char literal patterns can include 'a', '\t', '\000', '\xff', 'abcd', and maybe ''

gui/codeeditor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ Highlighter::Highlighter(QTextDocument *parent,
152152
mQuotationFormat.setForeground(mWidgetStyle->quoteColor);
153153
mQuotationFormat.setFontWeight(mWidgetStyle->quoteWeight);
154154
// We use lazy `*?` instead greed `*` quantifier to find the real end of the c-string.
155-
// We use negative lookbehind assertion `(?<!\)` to ignore `\"` sequience in the c-string.
155+
// We use negative lookbehind assertion `(?<!\)` to ignore `\"` sequence in the c-string.
156156
rule.pattern = QRegularExpression("\".*?(?<!\\\\)\"");
157157
rule.format = mQuotationFormat;
158158
rule.ruleRole = RuleRole::Quote;

lib/checkers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ namespace checkers {
6565
{"CheckBoost::checkBoostForeachModification",""},
6666
{"CheckNullPointer::nullPointer",""},
6767
{"CheckNullPointer::nullConstantDereference",""},
68-
{"CheckNullPointer::aithmetic",""},
68+
{"CheckNullPointer::arithmetic",""},
6969
{"CheckNullPointer::analyseWholeProgram","unusedfunctions"},
7070
{"CheckBufferOverrun::arrayIndex",""},
7171
{"CheckBufferOverrun::pointerArithmetic","portability"},

lib/checknullpointer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ void CheckNullPointer::nullPointerError(const Token *tok, const std::string &var
467467

468468
void CheckNullPointer::arithmetic()
469469
{
470-
logChecker("CheckNullPointer::aithmetic");
470+
logChecker("CheckNullPointer::arithmetic");
471471
const SymbolDatabase *symbolDatabase = mTokenizer->getSymbolDatabase();
472472
for (const Scope * scope : symbolDatabase->functionScopes) {
473473
for (const Token* tok = scope->bodyStart->next(); tok != scope->bodyEnd; tok = tok->next()) {

lib/checkstl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1512,7 +1512,7 @@ void CheckStl::if_find()
15121512
for (int j = 0; j < container->type_templateArgNo; j++)
15131513
tok2 = tok2->nextTemplateArgument();
15141514

1515-
container = mSettings->library.detectContainer(tok2); // innner container
1515+
container = mSettings->library.detectContainer(tok2); // inner container
15161516
} else
15171517
container = nullptr;
15181518
}

lib/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ static const std::string emptyString;
159159
#define USE_WINDOWS_SEH
160160
#endif
161161

162-
// TODO: __GLIBC__ is depedent on the features.h include and not a built-in compiler define, so it might be problematic to depedent on it
162+
// TODO: __GLIBC__ is dependent on the features.h include and not a built-in compiler define, so it might be problematic to depend on it
163163
#if !defined(NO_UNIX_BACKTRACE_SUPPORT) && defined(__GNUC__) && defined(__GLIBC__) && !defined(__CYGWIN__) && !defined(__MINGW32__) && !defined(__NetBSD__) && !defined(__SVR4) && !defined(__QNX__)
164164
#define USE_UNIX_BACKTRACE_SUPPORT
165165
#endif

0 commit comments

Comments
 (0)