From 0c17d538759872ba7d35e468ffe55d813b5e9178 Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Sat, 9 Jan 2010 18:00:25 +0100 Subject: Fixed semantic check for ObjC fast-enumeration for-loops, then merged it with the semantic check for the foreach. --- src/shared/cplusplus/CheckStatement.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/shared/cplusplus/CheckStatement.h') 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; -- cgit v1.2.1