Typos found by running "codespell" (#2542)
This commit is contained in:
parent
f6da17eda5
commit
75b1ade316
|
@ -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 = []
|
||||||
|
|
|
@ -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 <a href="https://www.python.org/">Python</a> beeing installed.</string>
|
<string>Note: Addons require <a href="https://www.python.org/">Python</a> being installed.</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="openExternalLinks">
|
<property name="openExternalLinks">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
|
|
|
@ -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")) {
|
||||||
|
|
|
@ -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() {}
|
||||||
};
|
};
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue