C++: Always set source location of function symbols.

Change-Id: I83bcea6fcdbf113d541a962ac461aef1765d99fd
Reviewed-on: http://codereview.qt-project.org/4433
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
Christian Kamm
2011-09-08 12:52:37 +02:00
parent 62a71b75a0
commit 70aac78582

View File

@@ -1778,6 +1778,7 @@ bool Bind::visit(SimpleDeclarationAST *ast)
if (Function *fun = decl->type()->asFunctionType()) {
fun->setScope(_scope);
fun->setSourceLocation(sourceLocation, translationUnit());
setDeclSpecifiers(fun, type);
if (declaratorId && declaratorId->name)