From baffd97efb1fd6da004fedf620577f8a97445793 Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Fri, 13 Nov 2009 12:36:51 +0100 Subject: Fixed parsing of ctor-initializers and added a manual test for the AST matchers --- src/shared/cplusplus/CheckDeclaration.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/shared/cplusplus/CheckDeclaration.cpp') diff --git a/src/shared/cplusplus/CheckDeclaration.cpp b/src/shared/cplusplus/CheckDeclaration.cpp index 04ee291aef..d7d7029fa2 100644 --- a/src/shared/cplusplus/CheckDeclaration.cpp +++ b/src/shared/cplusplus/CheckDeclaration.cpp @@ -356,7 +356,9 @@ bool CheckDeclaration::visit(FunctionDefinitionAST *ast) bool CheckDeclaration::visit(MemInitializerAST *ast) { (void) semantic()->check(ast->name, _scope); - FullySpecifiedType ty = semantic()->check(ast->expression, _scope); + for (ExpressionListAST *it = ast->expression_list; it; it = it->next) { + FullySpecifiedType ty = semantic()->check(it->value, _scope); + } return false; } -- cgit v1.2.1