Added support for C99 compound literals.

This commit is contained in:
Roberto Raggi
2009-01-13 14:58:29 +01:00
parent dd235e2b48
commit 248480b7c9
9 changed files with 103 additions and 3 deletions

View File

@@ -333,6 +333,13 @@ bool CheckExpression::visit(QtMethodAST *ast)
return false;
}
bool CheckExpression::visit(CompoundLiteralAST *ast)
{
/*FullySpecifiedType exprTy = */ semantic()->check(ast->type_id, _scope);
/*FullySpecifiedType initTy = */ semantic()->check(ast->initializer, _scope);
return false;
}
bool CheckExpression::visit(CallAST *ast)
{
for (ExpressionListAST *it = ast->expression_list; it; it = it->next) {