Abort comma simplification when ", %num%" is detected.
This increases speed a lot in some rare situations.
This commit is contained in:
parent
57067f6627
commit
6989670e8f
|
@ -4031,7 +4031,8 @@ void Tokenizer::simplifyComma()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tok->str() != ",")
|
// If token after the comma is a constant number, simplification is not required.
|
||||||
|
if (tok->str() != "," || Token::Match(tok->next(), "%num%"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// We must not accept just any keyword, e.g. accepting int
|
// We must not accept just any keyword, e.g. accepting int
|
||||||
|
|
Loading…
Reference in New Issue