Typos found by running "codespell" (#2542)

This commit is contained in:
Armin Müller 2020-02-17 18:28:58 +01:00 committed by GitHub
parent f6da17eda5
commit 75b1ade316
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View File

@ -796,7 +796,7 @@ def isTernaryOperator(token):
def getTernaryOperandsRecursive(token): def getTernaryOperandsRecursive(token):
"""Returns list of ternary operands including nested onces.""" """Returns list of ternary operands including nested ones."""
if not isTernaryOperator(token): if not isTernaryOperator(token):
return [] return []
result = [] result = []

View File

@ -706,7 +706,7 @@
<item> <item>
<widget class="QLabel" name="label_addons_require_python"> <widget class="QLabel" name="label_addons_require_python">
<property name="text"> <property name="text">
<string>Note: Addons require &lt;a href=&quot;https://www.python.org/&quot;&gt;Python&lt;/a&gt; beeing installed.</string> <string>Note: Addons require &lt;a href=&quot;https://www.python.org/&quot;&gt;Python&lt;/a&gt; being installed.</string>
</property> </property>
<property name="openExternalLinks"> <property name="openExternalLinks">
<bool>true</bool> <bool>true</bool>

View File

@ -223,7 +223,7 @@ struct ForwardTraversal {
if (stepTok && updateRecursive(stepTok) == Progress::Break) if (stepTok && updateRecursive(stepTok) == Progress::Break)
return Progress::Break; return Progress::Break;
} }
// TODO: Shoule we traverse the body? // TODO: Should we traverse the body?
// updateRange(endBlock->link(), endBlock); // updateRange(endBlock->link(), endBlock);
return Progress::Continue; return Progress::Continue;
} }
@ -250,7 +250,7 @@ struct ForwardTraversal {
tok = skipTo(tok, scope->bodyEnd, end); tok = skipTo(tok, scope->bodyEnd, end);
if (!analyzer->lowerToPossible()) if (!analyzer->lowerToPossible())
return Progress::Break; return Progress::Break;
// TODO: Dont break, instead move to the outer scope // TODO: Don't break, instead move to the outer scope
if (!tok) if (!tok)
return Progress::Break; return Progress::Break;
} else if (Token::Match(tok, "%name% :") || Token::simpleMatch(tok, "case")) { } else if (Token::Match(tok, "%name% :") || Token::simpleMatch(tok, "case")) {

View File

@ -108,7 +108,7 @@ struct ForwardAnalyzer {
virtual bool updateScope(const Token* endBlock, bool modified) const = 0; virtual bool updateScope(const Token* endBlock, bool modified) const = 0;
/// If the value is conditional /// If the value is conditional
virtual bool isConditional() const = 0; 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 void assume(const Token* tok, bool state) = 0;
virtual ~ForwardAnalyzer() {} virtual ~ForwardAnalyzer() {}
}; };

View File

@ -2366,7 +2366,7 @@ struct SingleValueFlowForwardAnalyzer : ValueFlowForwardAnalyzer {
value.infoString()); value.infoString());
value.errorPath.emplace_back(tok, info); value.errorPath.emplace_back(tok, info);
} else { } else {
// TODO: Dont set to zero // TODO: Don't set to zero
value.intvalue = 0; value.intvalue = 0;
} }
} }