forked from qt-creator/qt-creator
C++11: Allow uniform initialization in ctor init lists.
So
class C { C() : _x{12}, _y({12}) {} };
now parses correctly.
Change-Id: I4281dcb0541a86b550e74630cad6ae0a59fef1b4
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -536,11 +536,7 @@ void FindUsages::memInitializer(MemInitializerAST *ast)
|
||||
(void) switchScope(previousScope);
|
||||
}
|
||||
}
|
||||
// unsigned lparen_token = ast->lparen_token;
|
||||
for (ExpressionListAST *it = ast->expression_list; it; it = it->next) {
|
||||
this->expression(it->value);
|
||||
}
|
||||
// unsigned rparen_token = ast->rparen_token;
|
||||
this->expression(ast->expression);
|
||||
}
|
||||
|
||||
bool FindUsages::visit(NestedNameSpecifierAST *ast)
|
||||
@@ -561,8 +557,11 @@ void FindUsages::nestedNameSpecifier(NestedNameSpecifierAST *ast)
|
||||
|
||||
bool FindUsages::visit(ExpressionListParenAST *ast)
|
||||
{
|
||||
(void) ast;
|
||||
Q_ASSERT(!"unreachable");
|
||||
// unsigned lparen_token = ast->lparen_token;
|
||||
for (ExpressionListAST *it = ast->expression_list; it; it = it->next) {
|
||||
this->expression(it->value);
|
||||
}
|
||||
// unsigned rparen_token = ast->rparen_token;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user