forked from qt-creator/qt-creator
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:
1
src/libs/3rdparty/cplusplus/Bind.cpp
vendored
1
src/libs/3rdparty/cplusplus/Bind.cpp
vendored
@@ -1778,6 +1778,7 @@ bool Bind::visit(SimpleDeclarationAST *ast)
|
|||||||
|
|
||||||
if (Function *fun = decl->type()->asFunctionType()) {
|
if (Function *fun = decl->type()->asFunctionType()) {
|
||||||
fun->setScope(_scope);
|
fun->setScope(_scope);
|
||||||
|
fun->setSourceLocation(sourceLocation, translationUnit());
|
||||||
|
|
||||||
setDeclSpecifiers(fun, type);
|
setDeclSpecifiers(fun, type);
|
||||||
if (declaratorId && declaratorId->name)
|
if (declaratorId && declaratorId->name)
|
||||||
|
Reference in New Issue
Block a user