diff --git a/src/libs/3rdparty/cplusplus/Bind.cpp b/src/libs/3rdparty/cplusplus/Bind.cpp index 2da94f4b313..32420271b9c 100644 --- a/src/libs/3rdparty/cplusplus/Bind.cpp +++ b/src/libs/3rdparty/cplusplus/Bind.cpp @@ -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)