Annotate function declarators.

This commit is contained in:
Roberto Raggi
2009-02-09 12:47:58 +01:00
parent 9369818891
commit 208f26c9ce
2 changed files with 4 additions and 0 deletions

View File

@@ -158,6 +158,7 @@ bool CheckDeclarator::visit(NestedDeclaratorAST *ast)
bool CheckDeclarator::visit(FunctionDeclaratorAST *ast)
{
Function *fun = control()->newFunction(ast->firstToken());
ast->symbol = fun;
fun->setReturnType(_fullySpecifiedType);
if (ast->parameters) {