diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-09-25 13:45:13 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-09-25 14:20:02 +0200 |
commit | e9a5ab1b0d497665c0673b1b1e54dcc386fb9cc5 (patch) | |
tree | d2a8a1947dc5dbe21801a129d5d221ede2fbe3cb /src/shared/cplusplus/CheckDeclarator.cpp | |
parent | 54d60a77aef294ca0a6c0fc96bcb592db04d6e12 (diff) | |
download | qt-creator-e9a5ab1b0d497665c0673b1b1e54dcc386fb9cc5.tar.gz |
Added the `isVirtual' attribute to Function.
Diffstat (limited to 'src/shared/cplusplus/CheckDeclarator.cpp')
-rw-r--r-- | src/shared/cplusplus/CheckDeclarator.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/cplusplus/CheckDeclarator.cpp b/src/shared/cplusplus/CheckDeclarator.cpp index 95181e4c7a..5186055bca 100644 --- a/src/shared/cplusplus/CheckDeclarator.cpp +++ b/src/shared/cplusplus/CheckDeclarator.cpp @@ -168,6 +168,9 @@ bool CheckDeclarator::visit(FunctionDeclaratorAST *ast) ast->symbol = fun; fun->setReturnType(_fullySpecifiedType); + if (_fullySpecifiedType.isVirtual()) + fun->setVirtual(true); + if (ast->parameters) { DeclarationListAST *parameter_declarations = ast->parameters->parameter_declarations; for (DeclarationListAST *decl = parameter_declarations; decl; decl = decl->next) { |