diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-02-15 12:23:28 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-02-15 12:24:31 +0100 |
commit | a0071f1ce968a3c01d034227f0c01042447dfb43 (patch) | |
tree | 9a76e232739878f7e0b633c85ee3ed6fe2e246d5 /src/shared/cplusplus/CheckStatement.cpp | |
parent | cb3001b621a7c212443e1b9fc4dbabd5b27666d9 (diff) | |
download | qt-creator-a0071f1ce968a3c01d034227f0c01042447dfb43.tar.gz |
Revert "Added Objective-C @try block parsing."
This reverts commit f4163b8ba01cd1a4f5d91c83a3863939b7809375.
Diffstat (limited to 'src/shared/cplusplus/CheckStatement.cpp')
-rw-r--r-- | src/shared/cplusplus/CheckStatement.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/shared/cplusplus/CheckStatement.cpp b/src/shared/cplusplus/CheckStatement.cpp index dac65892ec..26e4e7c835 100644 --- a/src/shared/cplusplus/CheckStatement.cpp +++ b/src/shared/cplusplus/CheckStatement.cpp @@ -379,35 +379,3 @@ bool CheckStatement::visit(QtMemberDeclarationAST *ast) _exprType = FullySpecifiedType(); return false; } - -bool CheckStatement::visit(ObjCTryBlockStatementAST *ast) -{ - semantic()->check(ast->statement, _scope); - for (ObjCCatchClauseListAST *it = ast->catch_clause_list; it; it = it->next) { - semantic()->check(it->value, _scope); - } - _exprType = FullySpecifiedType(); - return false; -} - -bool CheckStatement::visit(ObjCCatchClauseAST *ast) -{ - Block *block = control()->newBlock(ast->at_token); - block->setStartOffset(tokenAt(ast->firstToken()).offset); - block->setEndOffset(tokenAt(ast->lastToken()).offset); - ast->symbol = block; - _scope->enterSymbol(block); - Scope *previousScope = switchScope(block->members()); - semantic()->check(ast->exception_declaration, _scope); - semantic()->check(ast->statement, _scope); - (void) switchScope(previousScope); - _exprType = FullySpecifiedType(); - return false; -} - -bool CheckStatement::visit(ObjCFinallyClauseAST *ast) -{ - semantic()->check(ast->statement, _scope); - _exprType = FullySpecifiedType(); - return false; -} |