Typos found by running "codespell" (#2227)
This commit is contained in:
parent
1ccc303602
commit
b4af8bdc2e
|
@ -473,9 +473,9 @@ def isalnum(c):
|
||||||
def isHexEscapeSequence(symbols):
|
def isHexEscapeSequence(symbols):
|
||||||
"""Checks that given symbols are valid hex escape sequence.
|
"""Checks that given symbols are valid hex escape sequence.
|
||||||
|
|
||||||
hexademical-escape-sequence:
|
hexadecimal-escape-sequence:
|
||||||
\\x hexademical-digit
|
\\x hexadecimal-digit
|
||||||
hexademical-escape-sequence hexademical-digit
|
hexadecimal-escape-sequence hexadecimal-digit
|
||||||
|
|
||||||
Reference: n1570 6.4.4.4"""
|
Reference: n1570 6.4.4.4"""
|
||||||
if len(symbols) < 3 or symbols[:2] != '\\x':
|
if len(symbols) < 3 or symbols[:2] != '\\x':
|
||||||
|
@ -506,7 +506,7 @@ def isSimpleEscapeSequence(symbols):
|
||||||
|
|
||||||
|
|
||||||
def hasNumericEscapeSequence(symbols):
|
def hasNumericEscapeSequence(symbols):
|
||||||
"""Check that given string contains octal or hexademical escape sequences."""
|
"""Check that given string contains octal or hexadecimal escape sequences."""
|
||||||
if '\\' not in symbols:
|
if '\\' not in symbols:
|
||||||
return False
|
return False
|
||||||
for c, cn in grouped(symbols, 2):
|
for c, cn in grouped(symbols, 2):
|
||||||
|
|
|
@ -1937,7 +1937,7 @@ static void valueFlowReverse(TokenList *tokenlist,
|
||||||
bailout(tokenlist, errorLogger, tok2, "possible assignment of " + tok2->str() + " by subfunction");
|
bailout(tokenlist, errorLogger, tok2, "possible assignment of " + tok2->str() + " by subfunction");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// Impossible values cant be inconclusive
|
// Impossible values can't be inconclusive
|
||||||
if (val.isImpossible() || val2.isImpossible())
|
if (val.isImpossible() || val2.isImpossible())
|
||||||
break;
|
break;
|
||||||
val.setInconclusive(inconclusive);
|
val.setInconclusive(inconclusive);
|
||||||
|
@ -2308,7 +2308,7 @@ static void valueFlowForwardExpression(Token* startToken,
|
||||||
FwdAnalysis fwdAnalysis(tokenlist->isCPP(), settings->library);
|
FwdAnalysis fwdAnalysis(tokenlist->isCPP(), settings->library);
|
||||||
for (const FwdAnalysis::KnownAndToken read : fwdAnalysis.valueFlow(exprTok, startToken, endToken)) {
|
for (const FwdAnalysis::KnownAndToken read : fwdAnalysis.valueFlow(exprTok, startToken, endToken)) {
|
||||||
for (const ValueFlow::Value& value : values) {
|
for (const ValueFlow::Value& value : values) {
|
||||||
// Dont set inconclusive values
|
// Don't set inconclusive values
|
||||||
if (value.isInconclusive())
|
if (value.isInconclusive())
|
||||||
continue;
|
continue;
|
||||||
ValueFlow::Value v = value;
|
ValueFlow::Value v = value;
|
||||||
|
|
Loading…
Reference in New Issue