Commit 49fb8870 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Check ctor-initializers.

parent 44f224ac
......@@ -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) {
......@@ -90,6 +90,7 @@ protected:
virtual bool visit(TemplateTypeParameterAST *ast);
virtual bool visit(UsingAST *ast);
virtual bool visit(UsingDirectiveAST *ast);
virtual bool visit(MemInitializerAST *ast);
virtual bool visit(ObjCProtocolDeclarationAST *ast);
virtual bool visit(ObjCProtocolForwardDeclarationAST *ast);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment