diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-08-13 13:47:39 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-08-13 13:52:59 +0200 |
commit | 1d30c09bd1d37b2ea76f3ef4519ee6b27cbda099 (patch) | |
tree | 91f7bdf66fd334af30ae7b25fad0d9f82211452b /src/shared/cplusplus | |
parent | 497c5191e7c402ce9fa41985612a38269de082e5 (diff) | |
download | qt-creator-1d30c09bd1d37b2ea76f3ef4519ee6b27cbda099.tar.gz |
Update the function's source location.
Diffstat (limited to 'src/shared/cplusplus')
-rw-r--r-- | src/shared/cplusplus/Bind.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/cplusplus/Bind.cpp b/src/shared/cplusplus/Bind.cpp index d4a4add188..752cd32ed6 100644 --- a/src/shared/cplusplus/Bind.cpp +++ b/src/shared/cplusplus/Bind.cpp @@ -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 |