Tokenizer::setVarId: Made it ~5% faster

This commit is contained in:
Daniel Marjamäki 2018-05-09 10:25:29 +02:00
parent 0197343e0c
commit ecccce0608
1 changed files with 2 additions and 0 deletions

View File

@ -2587,6 +2587,8 @@ void Tokenizer::setVarIdPass1()
bool initlist = false;
bool inlineFunction = false;
for (Token *tok = list.front(); tok; tok = tok->next()) {
if (tok->isOp())
continue;
if (!functionDeclEndStack.empty() && tok == functionDeclEndStack.top()) {
functionDeclEndStack.pop();
if (tok->str() == ":")