Skip to content

Commit 6c25934

Browse files
fix(docs): correct typos found during code review (danmar#8291)
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> --------- Signed-off-by: Marcel Petrick <mail@marcelpetrick.it> Co-authored-by: chrchr-github <78114321+chrchr-github@users.noreply.github.com>
1 parent b0f200c commit 6c25934

29 files changed

+33
-32
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ Maarten van der Schrieck
253253
Maksim Derbasov
254254
Malcolm Parsons
255255
Marc-Antoine Perennou
256+
Marcel Petrick
256257
Marcel Raad
257258
Marco Trevisan
258259
Marek Zmysłowski

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
@@ -200,7 +200,7 @@ We are currently using our own `naming.json` to enforce naming schemes. Also dis
200200

201201
`portability-simd-intrinsics`<br/>
202202

203-
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.
203+
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.
204204

205205
`modernize-macro-to-enum`<br/>
206206

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
@@ -144,7 +144,7 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
144144
string(LENGTH "${FILESDIR}" _filesdir_len)
145145
# override FILESDIR if it is set or empty
146146
if(FILESDIR OR ${_filesdir_len} EQUAL 0)
147-
# TODO: verify that it is an abolute path?
147+
# TODO: verify that it is an absolute path?
148148
set(FILESDIR_DEF ${FILESDIR})
149149
else()
150150
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)

0 commit comments

Comments
 (0)