diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-01-09 18:00:25 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-01-11 09:29:15 +0100 |
commit | 0c17d538759872ba7d35e468ffe55d813b5e9178 (patch) | |
tree | 99a2971e6c0d78b401844756dd8b7ab925365723 /src/shared/cplusplus/CheckStatement.h | |
parent | 9052bd279fb82430af16015bf929fd7813a36269 (diff) | |
download | qt-creator-0c17d538759872ba7d35e468ffe55d813b5e9178.tar.gz |
Fixed semantic check for ObjC fast-enumeration for-loops, then merged it with the semantic check for the foreach.
Diffstat (limited to 'src/shared/cplusplus/CheckStatement.h')
-rw-r--r-- | src/shared/cplusplus/CheckStatement.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/shared/cplusplus/CheckStatement.h b/src/shared/cplusplus/CheckStatement.h index e31d507a5e..5c1b1ff02d 100644 --- a/src/shared/cplusplus/CheckStatement.h +++ b/src/shared/cplusplus/CheckStatement.h @@ -90,6 +90,14 @@ protected: virtual bool visit(WhileStatementAST *ast); virtual bool visit(QtMemberDeclarationAST *ast); + bool forEachFastEnum(unsigned firstToken, + unsigned lastToken, + SpecifierListAST *type_specifier_list, + DeclaratorAST *declarator, + ExpressionAST *initializer, + ExpressionAST *expression, + StatementAST *statement, + Block *&symbol); private: StatementAST *_statement; Scope *_scope; |