Typos found by running "codespell" (#3702)
This commit is contained in:
parent
95dc05b21d
commit
5a05631c84
|
@ -746,7 +746,7 @@ bool precedes(const Token * tok1, const Token * tok2)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// If tok1 comes after tok2
|
/// If tok1 comes after tok2
|
||||||
bool succedes(const Token* tok1, const Token* tok2)
|
bool succeeds(const Token* tok1, const Token* tok2)
|
||||||
{
|
{
|
||||||
if (tok1 == tok2)
|
if (tok1 == tok2)
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -151,7 +151,7 @@ bool extractForLoopValues(const Token *forToken,
|
||||||
long long * const lastValue);
|
long long * const lastValue);
|
||||||
|
|
||||||
bool precedes(const Token * tok1, const Token * tok2);
|
bool precedes(const Token * tok1, const Token * tok2);
|
||||||
bool succedes(const Token* tok1, const Token* tok2);
|
bool succeeds(const Token* tok1, const Token* tok2);
|
||||||
|
|
||||||
bool exprDependsOnThis(const Token* expr, bool onVar = true, nonneg int depth = 0);
|
bool exprDependsOnThis(const Token* expr, bool onVar = true, nonneg int depth = 0);
|
||||||
|
|
||||||
|
|
|
@ -161,7 +161,7 @@ struct ReverseTraversal {
|
||||||
if (start == end)
|
if (start == end)
|
||||||
return;
|
return;
|
||||||
std::size_t i = start->index();
|
std::size_t i = start->index();
|
||||||
for (Token* tok = start->previous(); succedes(tok, end); tok = tok->previous()) {
|
for (Token* tok = start->previous(); succeeds(tok, end); tok = tok->previous()) {
|
||||||
if (tok->index() >= i)
|
if (tok->index() >= i)
|
||||||
throw InternalError(tok, "Cyclic reverse analysis.");
|
throw InternalError(tok, "Cyclic reverse analysis.");
|
||||||
i = tok->index();
|
i = tok->index();
|
||||||
|
|
|
@ -6786,7 +6786,7 @@ static void valueFlowUninit(TokenList* tokenlist, SymbolDatabase* /*symbolDataba
|
||||||
for (const Variable& memVar : scope->varlist) {
|
for (const Variable& memVar : scope->varlist) {
|
||||||
if (!memVar.isPublic())
|
if (!memVar.isPublic())
|
||||||
continue;
|
continue;
|
||||||
// Skip array since we cant track partial initialization from nested subexpressions
|
// Skip array since we can't track partial initialization from nested subexpressions
|
||||||
if (memVar.isArray())
|
if (memVar.isArray())
|
||||||
continue;
|
continue;
|
||||||
if (!needsInitialization(&memVar, tokenlist->isCPP())) {
|
if (!needsInitialization(&memVar, tokenlist->isCPP())) {
|
||||||
|
|
|
@ -2648,7 +2648,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
void simplifyStdType() { // #4947, #4950, #4951
|
void simplifyStdType() { // #4947, #4950, #4951
|
||||||
// usigned long long
|
// unsigned long long
|
||||||
{
|
{
|
||||||
const char code[] = "long long unsigned int x;";
|
const char code[] = "long long unsigned int x;";
|
||||||
const char expected[] = "unsigned long long x ;";
|
const char expected[] = "unsigned long long x ;";
|
||||||
|
@ -2710,7 +2710,7 @@ private:
|
||||||
const char expected[] = "signed long long x ;";
|
const char expected[] = "signed long long x ;";
|
||||||
ASSERT_EQUALS(expected, tokenizeAndStringify(code));
|
ASSERT_EQUALS(expected, tokenizeAndStringify(code));
|
||||||
}
|
}
|
||||||
// usigned short
|
// unsigned short
|
||||||
{
|
{
|
||||||
const char code[] = "short unsigned int x;";
|
const char code[] = "short unsigned int x;";
|
||||||
const char expected[] = "unsigned short x ;";
|
const char expected[] = "unsigned short x ;";
|
||||||
|
|
Loading…
Reference in New Issue