From 75b1ade316bc87b07bfdcba507db5971d9c258b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Armin=20M=C3=BCller?= <27155134+arm-in@users.noreply.github.com> Date: Mon, 17 Feb 2020 18:28:58 +0100 Subject: [PATCH] Typos found by running "codespell" (#2542) --- addons/misra.py | 2 +- gui/projectfiledialog.ui | 2 +- lib/forwardanalyzer.cpp | 4 ++-- lib/forwardanalyzer.h | 2 +- lib/valueflow.cpp | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/misra.py b/addons/misra.py index 11caea863..ca2b7fe71 100755 --- a/addons/misra.py +++ b/addons/misra.py @@ -796,7 +796,7 @@ def isTernaryOperator(token): def getTernaryOperandsRecursive(token): - """Returns list of ternary operands including nested onces.""" + """Returns list of ternary operands including nested ones.""" if not isTernaryOperator(token): return [] result = [] diff --git a/gui/projectfiledialog.ui b/gui/projectfiledialog.ui index 0072b5ce9..fda8ca812 100644 --- a/gui/projectfiledialog.ui +++ b/gui/projectfiledialog.ui @@ -706,7 +706,7 @@ - Note: Addons require <a href="https://www.python.org/">Python</a> beeing installed. + Note: Addons require <a href="https://www.python.org/">Python</a> being installed. true diff --git a/lib/forwardanalyzer.cpp b/lib/forwardanalyzer.cpp index 032a99eb7..a9e243cae 100644 --- a/lib/forwardanalyzer.cpp +++ b/lib/forwardanalyzer.cpp @@ -223,7 +223,7 @@ struct ForwardTraversal { if (stepTok && updateRecursive(stepTok) == Progress::Break) return Progress::Break; } - // TODO: Shoule we traverse the body? + // TODO: Should we traverse the body? // updateRange(endBlock->link(), endBlock); return Progress::Continue; } @@ -250,7 +250,7 @@ struct ForwardTraversal { tok = skipTo(tok, scope->bodyEnd, end); if (!analyzer->lowerToPossible()) return Progress::Break; - // TODO: Dont break, instead move to the outer scope + // TODO: Don't break, instead move to the outer scope if (!tok) return Progress::Break; } else if (Token::Match(tok, "%name% :") || Token::simpleMatch(tok, "case")) { diff --git a/lib/forwardanalyzer.h b/lib/forwardanalyzer.h index a18205722..44f07a554 100644 --- a/lib/forwardanalyzer.h +++ b/lib/forwardanalyzer.h @@ -108,7 +108,7 @@ struct ForwardAnalyzer { virtual bool updateScope(const Token* endBlock, bool modified) const = 0; /// If the value is conditional virtual bool isConditional() const = 0; - /// The condtion that wil be assumes during analysis + /// The condition that will be assumed during analysis virtual void assume(const Token* tok, bool state) = 0; virtual ~ForwardAnalyzer() {} }; diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index 2c0a8ac1f..a6a349c7b 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -2366,7 +2366,7 @@ struct SingleValueFlowForwardAnalyzer : ValueFlowForwardAnalyzer { value.infoString()); value.errorPath.emplace_back(tok, info); } else { - // TODO: Dont set to zero + // TODO: Don't set to zero value.intvalue = 0; } }