forked from qt-creator/qt-creator
C++11: More (expression-list) or brace-init-list.
This time in the 'new' expression. Changed it to make
new C(1, abc...) and new C{1, abc}
work.
Change-Id: I7232798fd083b653ee04ef9ede386d6536133e16
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -906,16 +906,6 @@ virtual bool visit(NewExpressionAST *ast)
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual bool visit(NewInitializerAST *ast)
|
||||
{
|
||||
if (ast->lparen_token)
|
||||
terminal(ast->lparen_token, ast);
|
||||
nonterminal(ast->expression);
|
||||
if (ast->rparen_token)
|
||||
terminal(ast->rparen_token, ast);
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual bool visit(NewTypeIdAST *ast)
|
||||
{
|
||||
for (SpecifierListAST *iter = ast->type_specifier_list; iter; iter = iter->next)
|
||||
|
||||
Reference in New Issue
Block a user