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; } }