Commit 1d30c09b authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Update the function's source location.

parent 497c5191
......@@ -1805,8 +1805,10 @@ bool Bind::visit(FunctionDefinitionAST *ast)
fun->setMethodKey(_methodKey);
}
if (declaratorId && declaratorId->name)
if (declaratorId && declaratorId->name) {
fun->setSourceLocation(declaratorId->name->firstToken(), translationUnit());
fun->setName(declaratorId->name->name);
}
_scope->addMember(fun);
} else
......
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