diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-08-13 12:36:47 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-08-13 12:36:47 +0200 |
commit | bbae6f84db0041b3691bd7b2c645f31965df0327 (patch) | |
tree | ac5efec1ba525bb36c77e228e239d664de62e12a /src/shared/cplusplus/CheckDeclaration.cpp | |
parent | 8e1e0bdefd7364126ead882bb17300fff8fcf6c6 (diff) | |
download | qt-creator-bbae6f84db0041b3691bd7b2c645f31965df0327.tar.gz |
Create symbols for the fwd class declarations
Diffstat (limited to 'src/shared/cplusplus/CheckDeclaration.cpp')
-rw-r--r-- | src/shared/cplusplus/CheckDeclaration.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shared/cplusplus/CheckDeclaration.cpp b/src/shared/cplusplus/CheckDeclaration.cpp index 39a98f6c2f..f2b1b2c391 100644 --- a/src/shared/cplusplus/CheckDeclaration.cpp +++ b/src/shared/cplusplus/CheckDeclaration.cpp @@ -187,7 +187,7 @@ bool CheckDeclaration::visit(SimpleDeclarationAST *ast) const bool isQ_SIGNAL = ast->qt_invokable_token && tokenKind(ast->qt_invokable_token) == T_Q_SIGNAL; const bool isQ_INVOKABLE = ast->qt_invokable_token && tokenKind(ast->qt_invokable_token) == T_Q_INVOKABLE; - List<Declaration *> **decl_it = &ast->symbols; + List<Symbol *> **decl_it = &ast->symbols; for (DeclaratorListAST *it = ast->declarator_list; it; it = it->next) { const Name *name = 0; FullySpecifiedType declTy = semantic()->check(it->value, qualTy, @@ -230,7 +230,7 @@ bool CheckDeclaration::visit(SimpleDeclarationAST *ast) FullySpecifiedType initTy = semantic()->check(it->value->initializer, _scope); } - *decl_it = new (translationUnit()->memoryPool()) List<Declaration *>(); + *decl_it = new (translationUnit()->memoryPool()) List<Symbol *>(); (*decl_it)->value = symbol; decl_it = &(*decl_it)->next; @@ -841,7 +841,7 @@ bool CheckDeclaration::visit(ObjCPropertyDeclarationAST *ast) } List<ObjCPropertyDeclaration *> **lastSymbols = &ast->symbols; - for (List<Declaration*> *iter = simpleDecl->symbols; iter; iter = iter->next) { + for (List<Symbol *> *iter = simpleDecl->symbols; iter; iter = iter->next) { ObjCPropertyDeclaration *propDecl = control()->newObjCPropertyDeclaration(ast->firstToken(), iter->value->name()); propDecl->setType(iter->value->type()); |