forked from qt-creator/qt-creator
Simplified ObjC selectors in the AST.
This commit is contained in:
@@ -41,6 +41,22 @@
|
||||
|
||||
using namespace CPlusPlus;
|
||||
|
||||
bool ObjCSelectorArgumentAST::match0(AST *pattern, ASTMatcher *matcher)
|
||||
{
|
||||
if (ObjCSelectorArgumentAST *_other = pattern->asObjCSelectorArgument())
|
||||
return matcher->match(this, _other);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ObjCSelectorAST::match0(AST *pattern, ASTMatcher *matcher)
|
||||
{
|
||||
if (ObjCSelectorAST *_other = pattern->asObjCSelector())
|
||||
return matcher->match(this, _other);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool SimpleSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
|
||||
{
|
||||
if (SimpleSpecifierAST *_other = pattern->asSimpleSpecifier())
|
||||
@@ -937,30 +953,6 @@ bool ObjCEncodeExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ObjCSelectorWithoutArgumentsAST::match0(AST *pattern, ASTMatcher *matcher)
|
||||
{
|
||||
if (ObjCSelectorWithoutArgumentsAST *_other = pattern->asObjCSelectorWithoutArguments())
|
||||
return matcher->match(this, _other);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ObjCSelectorArgumentAST::match0(AST *pattern, ASTMatcher *matcher)
|
||||
{
|
||||
if (ObjCSelectorArgumentAST *_other = pattern->asObjCSelectorArgument())
|
||||
return matcher->match(this, _other);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ObjCSelectorWithArgumentsAST::match0(AST *pattern, ASTMatcher *matcher)
|
||||
{
|
||||
if (ObjCSelectorWithArgumentsAST *_other = pattern->asObjCSelectorWithArguments())
|
||||
return matcher->match(this, _other);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ObjCSelectorExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
|
||||
{
|
||||
if (ObjCSelectorExpressionAST *_other = pattern->asObjCSelectorExpression())
|
||||
|
||||
Reference in New Issue
Block a user