diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-10-06 12:53:05 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-10-06 12:53:16 +0200 |
commit | 49fb8870594ee17912b2a88acd627b66d90c081a (patch) | |
tree | 75dcb4355f0bec80476a9970b9285d5d9a726f92 /src/shared/cplusplus/CheckDeclaration.cpp | |
parent | 44f224ac53dc4158c3c4eb402f739328a91b7641 (diff) | |
download | qt-creator-49fb8870594ee17912b2a88acd627b66d90c081a.tar.gz |
Check ctor-initializers.
Diffstat (limited to 'src/shared/cplusplus/CheckDeclaration.cpp')
-rw-r--r-- | src/shared/cplusplus/CheckDeclaration.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/shared/cplusplus/CheckDeclaration.cpp b/src/shared/cplusplus/CheckDeclaration.cpp index 4b2604de40..b7143797ad 100644 --- a/src/shared/cplusplus/CheckDeclaration.cpp +++ b/src/shared/cplusplus/CheckDeclaration.cpp @@ -332,6 +332,13 @@ bool CheckDeclaration::visit(FunctionDefinitionAST *ast) return false; } +bool CheckDeclaration::visit(MemInitializerAST *ast) +{ + (void) semantic()->check(ast->name, _scope); + FullySpecifiedType ty = semantic()->check(ast->expression, _scope); + return false; +} + bool CheckDeclaration::visit(LinkageBodyAST *ast) { for (DeclarationListAST *decl = ast->declarations; decl; decl = decl->next) { |