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:
@@ -594,23 +594,6 @@ void FindUsages::newArrayDeclarator(NewArrayDeclaratorAST *ast)
|
||||
// unsigned rbracket_token = ast->rbracket_token;
|
||||
}
|
||||
|
||||
bool FindUsages::visit(NewInitializerAST *ast)
|
||||
{
|
||||
(void) ast;
|
||||
Q_ASSERT(!"unreachable");
|
||||
return false;
|
||||
}
|
||||
|
||||
void FindUsages::newInitializer(NewInitializerAST *ast)
|
||||
{
|
||||
if (! ast)
|
||||
return;
|
||||
|
||||
// unsigned lparen_token = ast->lparen_token;
|
||||
this->expression(ast->expression);
|
||||
// unsigned rparen_token = ast->rparen_token;
|
||||
}
|
||||
|
||||
bool FindUsages::visit(NewTypeIdAST *ast)
|
||||
{
|
||||
(void) ast;
|
||||
@@ -1295,7 +1278,7 @@ bool FindUsages::visit(NewExpressionAST *ast)
|
||||
this->expression(ast->type_id);
|
||||
// unsigned rparen_token = ast->rparen_token;
|
||||
this->newTypeId(ast->new_type_id);
|
||||
this->newInitializer(ast->new_initializer);
|
||||
this->expression(ast->new_initializer);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user