AST: generilized handling of auto usage in new statement

This commit is contained in:
Daniel Marjamäki 2014-10-10 19:05:31 +02:00
parent b0b86f5607
commit 5891bae59e
1 changed files with 2 additions and 2 deletions

View File

@ -667,9 +667,9 @@ static void compilePrecedence3(Token *&tok, AST_state& state)
tok = tok->link();
tok = tok->next();
}
if (Token::Match(tok, "( %type% ) (")) {
if (Token::Match(tok, "( const| %type% ) (")) {
state.op.push(tok->next());
tok = tok->tokAt(3);
tok = tok->link()->next();
compileBinOp(tok, state, compilePrecedence2);
} else if (tok->str() == "[" || tok->str() == "(")
compilePrecedence2(tok, state);