summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/CheckStatement.h
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2010-01-09 18:00:25 +0100
committerErik Verbruggen <erik.verbruggen@nokia.com>2010-01-11 09:29:15 +0100
commit0c17d538759872ba7d35e468ffe55d813b5e9178 (patch)
tree99a2971e6c0d78b401844756dd8b7ab925365723 /src/shared/cplusplus/CheckStatement.h
parent9052bd279fb82430af16015bf929fd7813a36269 (diff)
downloadqt-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.h8
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;