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/ASTClone.cpp | |
parent | fe1c4926dec9ac729979212b4419989d56a1af48 (diff) | |
download | qt-creator-cf125618afe323da0b1d63eb01ff70fbbaaef3d0.tar.gz |
Accepts trailing return types.
Diffstat (limited to 'src/shared/cplusplus/ASTClone.cpp')
-rw-r--r-- | src/shared/cplusplus/ASTClone.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/cplusplus/ASTClone.cpp b/src/shared/cplusplus/ASTClone.cpp index 425c81c76e..bd143b45fc 100644 --- a/src/shared/cplusplus/ASTClone.cpp +++ b/src/shared/cplusplus/ASTClone.cpp @@ -474,6 +474,8 @@ FunctionDeclaratorAST *FunctionDeclaratorAST::clone(MemoryPool *pool) const *ast_iter = new (pool) SpecifierListAST((iter->value) ? iter->value->clone(pool) : 0); if (exception_specification) ast->exception_specification = exception_specification->clone(pool); + if (trailing_return_type) + ast->trailing_return_type = trailing_return_type->clone(pool); if (as_cpp_initializer) ast->as_cpp_initializer = as_cpp_initializer->clone(pool); return ast; |