AST: generilized handling of auto usage in new statement
This commit is contained in:
parent
b0b86f5607
commit
5891bae59e
|
@ -667,9 +667,9 @@ static void compilePrecedence3(Token *&tok, AST_state& state)
|
||||||
tok = tok->link();
|
tok = tok->link();
|
||||||
tok = tok->next();
|
tok = tok->next();
|
||||||
}
|
}
|
||||||
if (Token::Match(tok, "( %type% ) (")) {
|
if (Token::Match(tok, "( const| %type% ) (")) {
|
||||||
state.op.push(tok->next());
|
state.op.push(tok->next());
|
||||||
tok = tok->tokAt(3);
|
tok = tok->link()->next();
|
||||||
compileBinOp(tok, state, compilePrecedence2);
|
compileBinOp(tok, state, compilePrecedence2);
|
||||||
} else if (tok->str() == "[" || tok->str() == "(")
|
} else if (tok->str() == "[" || tok->str() == "(")
|
||||||
compilePrecedence2(tok, state);
|
compilePrecedence2(tok, state);
|
||||||
|
|
Loading…
Reference in New Issue