Typos found by running "codespell" (#2380)

This commit is contained in:
Armin Müller 2019-11-19 20:02:24 +01:00 committed by orbitcowboy
parent cfac54c42a
commit 130ebe4b85
4 changed files with 5 additions and 5 deletions

View File

@ -547,7 +547,7 @@ bool CmdLineParser::parseFromArgs(int argc, const char* const argv[])
// --project
else if (std::strncmp(argv[i], "--project=", 10) == 0) {
mSettings->checkAllConfigurations = false; // Can be overriden with --max-configs or --force
mSettings->checkAllConfigurations = false; // Can be overridden with --max-configs or --force
const std::string projectFile = argv[i]+10;
ImportProject::Type projType = mSettings->project.import(projectFile, mSettings);
if (projType == ImportProject::Type::CPPCHECK_GUI) {

View File

@ -620,7 +620,7 @@ You can also suppress some unwanted rules using `--suppress-rules` option. Suppr
### threadsafety.py
[threadsafety.py](https://github.com/danmar/cppcheck/blob/master/addons/threadsafety.py) analyse Cppcheck dump files to locate threadsafety issues like static local objects used by multiple threads.
[threadsafety.py](https://github.com/danmar/cppcheck/blob/master/addons/threadsafety.py) analyse Cppcheck dump files to locate thread safety issues like static local objects used by multiple threads.
## Running Addons
@ -628,7 +628,7 @@ Addons could be run through Cppcheck command line utility as follows:
cppcheck --addon=misra.py somefile.c
This will launch all Cppcheck checks and additionaly calls specific checks provided by selected addon.
This will launch all Cppcheck checks and additionally calls specific checks provided by selected addon.
Some addons need extra arguments. You can configure how you want to execute an addon in a json file. For example put this in misra.json:

View File

@ -3147,7 +3147,7 @@ void uninitvar_strlen(const char *str)
// cppcheck-suppress uninitvar
(void)strlen(xPtr);
// No waring is expected
// No warning is expected
(void)strlen(str);
}

View File

@ -284,7 +284,7 @@ void MainWindow::findInFilesClicked()
QMimeDatabase mimeDatabase;
QDirIterator it(WORK_FOLDER, filter, QDir::AllEntries | QDir::NoSymLinks | QDir::NoDotAndDotDot, QDirIterator::Subdirectories);
const auto common_path_len = WORK_FOLDER.length() + 1; // let's remove common part of path imporve UI
const auto common_path_len = WORK_FOLDER.length() + 1; // let's remove common part of path improve UI
while (it.hasNext()) {
const QString fileName = it.next();