summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/ASTMatch0.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2010-02-14 16:05:25 +0100
committerErik Verbruggen <erik.verbruggen@nokia.com>2010-02-15 09:27:01 +0100
commitf4163b8ba01cd1a4f5d91c83a3863939b7809375 (patch)
tree2d14b5bbfdb23896bbea2382db81af49be391862 /src/shared/cplusplus/ASTMatch0.cpp
parent2a59d2ae0c889fe6e4ac50a3f110b0103f880c15 (diff)
downloadqt-creator-f4163b8ba01cd1a4f5d91c83a3863939b7809375.tar.gz
Added Objective-C @try block parsing.
Diffstat (limited to 'src/shared/cplusplus/ASTMatch0.cpp')
-rw-r--r--src/shared/cplusplus/ASTMatch0.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/shared/cplusplus/ASTMatch0.cpp b/src/shared/cplusplus/ASTMatch0.cpp
index a2fcf8e0b9..26a485a6c1 100644
--- a/src/shared/cplusplus/ASTMatch0.cpp
+++ b/src/shared/cplusplus/ASTMatch0.cpp
@@ -793,6 +793,14 @@ bool ThrowExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
return false;
}
+bool ObjCThrowExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
+{
+ if (ObjCThrowExpressionAST *_other = pattern->asObjCThrowExpression())
+ return matcher->match(this, _other);
+
+ return false;
+}
+
bool TranslationUnitAST::match0(AST *pattern, ASTMatcher *matcher)
{
if (TranslationUnitAST *_other = pattern->asTranslationUnit())
@@ -1081,3 +1089,27 @@ bool ObjCSynchronizedStatementAST::match0(AST *pattern, ASTMatcher *matcher)
return false;
}
+bool ObjCTryBlockStatementAST::match0(AST *pattern, ASTMatcher *matcher)
+{
+ if (ObjCTryBlockStatementAST *_other = pattern->asObjCTryBlockStatement())
+ return matcher->match(this, _other);
+
+ return false;
+}
+
+bool ObjCCatchClauseAST::match0(AST *pattern, ASTMatcher *matcher)
+{
+ if (ObjCCatchClauseAST *_other = pattern->asObjCCatchClause())
+ return matcher->match(this, _other);
+
+ return false;
+}
+
+bool ObjCFinallyClauseAST::match0(AST *pattern, ASTMatcher *matcher)
+{
+ if (ObjCFinallyClauseAST *_other = pattern->asObjCFinallyClause())
+ return matcher->match(this, _other);
+
+ return false;
+}
+