diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-11-13 12:36:51 +0100 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-11-13 12:38:18 +0100 |
commit | baffd97efb1fd6da004fedf620577f8a97445793 (patch) | |
tree | 5131ff5b8f40d3d76ae9ed993093f1668b7a7c31 /src/shared/cplusplus/CheckDeclaration.cpp | |
parent | 28ab85b13794f2443cfd714bbf1daa5e91bc6b2a (diff) | |
download | qt-creator-baffd97efb1fd6da004fedf620577f8a97445793.tar.gz |
Fixed parsing of ctor-initializers and added a manual test for the AST matchers
Diffstat (limited to 'src/shared/cplusplus/CheckDeclaration.cpp')
-rw-r--r-- | src/shared/cplusplus/CheckDeclaration.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |