diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-02-16 16:54:39 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-02-16 17:04:26 +0100 |
commit | c79f25d5a6b9aa645c0068db07b389ce615948b1 (patch) | |
tree | 8accd82448284736df0d3ca99422c79b8cbe7926 /src/shared/cplusplus/CheckDeclaration.cpp | |
parent | 8c2928e12e3d83af16e1eeec97b3829ce653b47d (diff) | |
download | qt-creator-c79f25d5a6b9aa645c0068db07b389ce615948b1.tar.gz |
Fixed Q_PROPERTY parsing to handle all possible cases.
Diffstat (limited to 'src/shared/cplusplus/CheckDeclaration.cpp')
-rw-r--r-- | src/shared/cplusplus/CheckDeclaration.cpp | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/src/shared/cplusplus/CheckDeclaration.cpp b/src/shared/cplusplus/CheckDeclaration.cpp index a9ede700ca..2eb017b2a1 100644 --- a/src/shared/cplusplus/CheckDeclaration.cpp +++ b/src/shared/cplusplus/CheckDeclaration.cpp @@ -56,9 +56,12 @@ #include "Symbols.h" #include "Control.h" #include "Literals.h" +#include "QtContextKeywords.h" #include <string> #include <cassert> +#include <QDebug> + using namespace CPlusPlus; CheckDeclaration::CheckDeclaration(Semantic *semantic) @@ -815,23 +818,3 @@ bool CheckDeclaration::visit(QtFlagsDeclarationAST *ast) semantic()->check(iter->value, _scope); return false; } - -bool CheckDeclaration::visit(QtPropertyDeclarationAST *ast) -{ - if (ast->type_id) - semantic()->check(ast->type_id, _scope); - if (ast->property_name) - semantic()->check(ast->property_name, _scope); - - for (QtPropertyDeclarationItemListAST *iter = ast->property_declaration_items; - iter; iter = iter->next) { - if (! iter->value) - continue; - - if (QtPropertyDeclarationNamingItemAST *namedItem = iter->value->asQtPropertyDeclarationNamingItem()) - if (namedItem->name_value) - semantic()->check(namedItem->name_value, _scope); - } - - return false; -} |