Added Objective-C @try block parsing.

This commit is contained in:
Erik Verbruggen
2010-02-14 16:05:25 +01:00
parent 2a59d2ae0c
commit f4163b8ba0
18 changed files with 515 additions and 8 deletions

View File

@@ -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;
}