Tokenizer: More specific bailout in simplifyKnownVariables for loop variable
This commit is contained in:
parent
cd94fa89e0
commit
7e9bb62dff
|
@ -5844,6 +5844,12 @@ bool Tokenizer::simplifyKnownVariables()
|
|||
continue;
|
||||
}
|
||||
|
||||
if (Token::Match(tok2->tokAt(-2), "for ("))
|
||||
{
|
||||
// skip loop variable
|
||||
continue;
|
||||
}
|
||||
|
||||
if (tok2->str() == tok2->strAt(2))
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Reference in New Issue