diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-03-24 14:56:30 +0100 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-03-24 14:56:45 +0100 |
commit | cf125618afe323da0b1d63eb01ff70fbbaaef3d0 (patch) | |
tree | bad9dc8c275d1efe5dc347cadda61a35ef99f35d /src/shared/cplusplus/AST.cpp | |
parent | fe1c4926dec9ac729979212b4419989d56a1af48 (diff) | |
download | qt-creator-cf125618afe323da0b1d63eb01ff70fbbaaef3d0.tar.gz |
Accepts trailing return types.
Diffstat (limited to 'src/shared/cplusplus/AST.cpp')
-rw-r--r-- | src/shared/cplusplus/AST.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/shared/cplusplus/AST.cpp b/src/shared/cplusplus/AST.cpp index 7677180455..5963dae91b 100644 --- a/src/shared/cplusplus/AST.cpp +++ b/src/shared/cplusplus/AST.cpp @@ -1014,7 +1014,10 @@ unsigned FunctionDeclaratorAST::firstToken() const unsigned FunctionDeclaratorAST::lastToken() const { - if (exception_specification) + if (trailing_return_type) + return trailing_return_type->lastToken(); + + else if (exception_specification) return exception_specification->lastToken(); else if (cv_qualifier_list) |