Skip to content

Commit 4f96e60

Browse files
committed
fix(docs): correct typos found during code review
Non-functional changes only: - Fixed minor spelling mistakes in comments - Corrected typos in user-facing strings - No variables, logic, or functional code was modified. Signed-off-by: Marcel Petrick <mail@marcelpetrick.it>
1 parent 3a4850c commit 4f96e60

29 files changed

Lines changed: 35 additions & 35 deletions

TUNING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ In our case Clang is mostly faster than GCC. See https://trac.cppcheck.net/ticke
4646

4747
### Use More Advanced Optimizations
4848

49-
By default we enforce the `-O2` optimization level. Even when using the `Release` build type in CMake which defaults to `-O3`. It might be possible that building with `-O3` might yield a perfomance increase.
49+
By default we enforce the `-O2` optimization level. Even when using the `Release` build type in CMake which defaults to `-O3`. It might be possible that building with `-O3` might yield a performance increase.
5050

5151
There are also no additional code generation flags provided so the resulting binary can run on any system. You might be able to tune this and apply more optimization which is tailored to the system you will be running the binary on.
5252

addons/cppcheckdata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ class Token:
274274
astParent ast parent
275275
astOperand1 ast operand1
276276
astOperand2 ast operand2
277-
orriginalName orriginal name of the token
277+
orriginalName original name of the token
278278
valueType type information: container/..
279279
file file name
280280
linenr line number
@@ -1003,7 +1003,7 @@ def isMatch(self, file, line, message, errorId):
10031003
and (self.symbolName is None or fnmatch(message, '*'+self.symbolName+'*'))
10041004
and fnmatch(errorId, self.errorId)):
10051005
return True
1006-
# Other Suppression (Globaly set via suppression file or cli command)
1006+
# Other Suppression (Globally set via suppression file or cli command)
10071007
if ((self.fileName is None or fnmatch(file, self.fileName))
10081008
and (self.suppressionType is None)
10091009
and (self.symbolName is None or fnmatch(message, '*'+self.symbolName+'*'))

addons/test/misra/crash10.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
extern uint32_t end;
44

5-
//#define KEEP // if uncomment this then wont crash
5+
//#define KEEP // if uncomment this then won't crash
66

77
KEEP static const int32_t ptr_to_end = &end;
88

clang-tidy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ We are currently using our own `naming.json` to enforce naming schemes. Also dis
187187

188188
`portability-simd-intrinsics`<br/>
189189

190-
We are not using SIMD instructions and it suggests to use `std::experiemental::` features which might not be commonly available. Also disabled for performance reasons - see https://github.com/llvm/llvm-project/issues/57527#issuecomment-1237935132.
190+
We are not using SIMD instructions and it suggests to use `std::experimental::` features which might not be commonly available. Also disabled for performance reasons - see https://github.com/llvm/llvm-project/issues/57527#issuecomment-1237935132.
191191

192192
`modernize-macro-to-enum`<br/>
193193

cli/filelister.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ std::string FileLister::addFiles(std::list<FileWithDetails> &files, const std::s
172172

173173
std::string err = addFiles2(filesSorted, path, extra, recursive, ignored, debug);
174174

175-
// files need to be sorted as the filesystems dosn't provide a stable order
175+
// files need to be sorted as the filesystems doesn't provide a stable order
176176
filesSorted.sort([](const FileWithDetails& a, const FileWithDetails& b) {
177177
return a.path() < b.path();
178178
});
@@ -293,7 +293,7 @@ std::string FileLister::addFiles(std::list<FileWithDetails> &files, const std::s
293293

294294
std::string err = addFiles2(filesSorted, corrected_path, extra, recursive, ignored, debug);
295295

296-
// files need to be sorted as the filesystems dosn't provide a stable order
296+
// files need to be sorted as the filesystems doesn't provide a stable order
297297
filesSorted.sort([](const FileWithDetails& a, const FileWithDetails& b) {
298298
return a.path() < b.path();
299299
});

cli/processexecutor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ unsigned int ProcessExecutor::check()
449449
}
450450
}
451451

452-
// TODO: wee need to get the timing information from the subprocess
452+
// TODO: we need to get the timing information from the subprocess
453453
if (mTimerResults && (mSettings.showtime == ShowTime::SUMMARY || mSettings.showtime == ShowTime::TOP5_SUMMARY))
454454
mTimerResults->showResults(mSettings.showtime);
455455

cmake/options.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
140140
string(LENGTH "${FILESDIR}" _filesdir_len)
141141
# override FILESDIR if it is set or empty
142142
if(FILESDIR OR ${_filesdir_len} EQUAL 0)
143-
# TODO: verify that it is an abolute path?
143+
# TODO: verify that it is an absolute path?
144144
set(FILESDIR_DEF ${FILESDIR})
145145
else()
146146
set(FILESDIR_DEF ${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME} CACHE STRING "Cppcheck files directory")

cppcheckpremium-suppressions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ premium-misra-cpp-2023-12.3.1
196196
# TODO ensure overrides match
197197
premium-misra-cpp-2023-13.3.2
198198

199-
# TODO use the same parameter names in overriden methods.
199+
# TODO use the same parameter names in overridden methods.
200200
premium-misra-cpp-2023-13.3.3
201201

202202
# we sometimes use both public/private data members by intention

externals/simplecpp/simplecpp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ namespace simplecpp {
8383
, mSize(strlen(data))
8484
{}
8585

86-
// only provide when std::span is not available so using untyped initilization won't use View
86+
// only provide when std::span is not available so using untyped initialization won't use View
8787
#if !defined(__cpp_lib_span)
8888
View(const char* data, std::size_t size)
8989
: mData(data)

gui/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ static void ShowUsage()
124124

125125
static void ShowVersion()
126126
{
127-
// TODO: should only *not* show a dialog when we are on a commnd-line
127+
// TODO: should only *not* show a dialog when we are on a command-line
128128
#if defined(_WIN32)
129129
AboutDialog *dlg = new AboutDialog(CppCheck::version(), CppCheck::extraVersion(), 0);
130130
dlg->exec();

0 commit comments

Comments
 (0)