Commit 5cc32e10 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Update the function's scope.

parent 29354ff1
......@@ -1724,6 +1724,8 @@ bool Bind::visit(SimpleDeclarationAST *ast)
setDeclSpecifiers(decl, type);
if (Function *fun = decl->type()->asFunctionType()) {
fun->setScope(_scope);
setDeclSpecifiers(fun, type);
if (declaratorId && declaratorId->name)
fun->setName(declaratorId->name->name); // update the function name
......
Markdown is supported
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