1 /**************************************************************************
3 ** This file is part of Qt Creator
5 ** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
7 ** Contact: Nokia Corporation (qt-info@nokia.com)
11 ** This file contains pre-release code and may not be distributed.
12 ** You may use this file in accordance with the terms and conditions
13 ** contained in the Technology Preview License Agreement accompanying
16 ** GNU Lesser General Public License Usage
18 ** Alternatively, this file may be used under the terms of the GNU Lesser
19 ** General Public License version 2.1 as published by the Free Software
20 ** Foundation and appearing in the file LICENSE.LGPL included in the
21 ** packaging of this file. Please review the following information to
22 ** ensure the GNU Lesser General Public License version 2.1 requirements
23 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
25 ** In addition, as a special exception, Nokia gives you certain additional
26 ** rights. These rights are described in the Nokia Qt LGPL Exception
27 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
29 ** If you have questions regarding the use of this file, please contact
30 ** Nokia at qt-info@nokia.com.
32 **************************************************************************/
38 // This file is automatically generated.
39 // Changes will be lost.
44 #include "ASTMatcher.h"
46 using namespace CPlusPlus;
48 bool ObjCSelectorArgumentAST::match0(AST *pattern, ASTMatcher *matcher)
50 if (ObjCSelectorArgumentAST *_other = pattern->asObjCSelectorArgument())
51 return matcher->match(this, _other);
56 bool ObjCSelectorAST::match0(AST *pattern, ASTMatcher *matcher)
58 if (ObjCSelectorAST *_other = pattern->asObjCSelector())
59 return matcher->match(this, _other);
64 bool SimpleSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
66 if (SimpleSpecifierAST *_other = pattern->asSimpleSpecifier())
67 return matcher->match(this, _other);
72 bool AttributeSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
74 if (AttributeSpecifierAST *_other = pattern->asAttributeSpecifier())
75 return matcher->match(this, _other);
80 bool AttributeAST::match0(AST *pattern, ASTMatcher *matcher)
82 if (AttributeAST *_other = pattern->asAttribute())
83 return matcher->match(this, _other);
88 bool TypeofSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
90 if (TypeofSpecifierAST *_other = pattern->asTypeofSpecifier())
91 return matcher->match(this, _other);
96 bool DeclaratorAST::match0(AST *pattern, ASTMatcher *matcher)
98 if (DeclaratorAST *_other = pattern->asDeclarator())
99 return matcher->match(this, _other);
104 bool SimpleDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
106 if (SimpleDeclarationAST *_other = pattern->asSimpleDeclaration())
107 return matcher->match(this, _other);
112 bool EmptyDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
114 if (EmptyDeclarationAST *_other = pattern->asEmptyDeclaration())
115 return matcher->match(this, _other);
120 bool AccessDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
122 if (AccessDeclarationAST *_other = pattern->asAccessDeclaration())
123 return matcher->match(this, _other);
128 bool QtObjectTagAST::match0(AST *pattern, ASTMatcher *matcher)
130 if (QtObjectTagAST *_other = pattern->asQtObjectTag())
131 return matcher->match(this, _other);
136 bool QtPrivateSlotAST::match0(AST *pattern, ASTMatcher *matcher)
138 if (QtPrivateSlotAST *_other = pattern->asQtPrivateSlot())
139 return matcher->match(this, _other);
144 bool QtPropertyDeclarationItemAST::match0(AST *pattern, ASTMatcher *matcher)
146 if (QtPropertyDeclarationItemAST *_other = pattern->asQtPropertyDeclarationItem())
147 return matcher->match(this, _other);
152 bool QtPropertyDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
154 if (QtPropertyDeclarationAST *_other = pattern->asQtPropertyDeclaration())
155 return matcher->match(this, _other);
160 bool QtEnumDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
162 if (QtEnumDeclarationAST *_other = pattern->asQtEnumDeclaration())
163 return matcher->match(this, _other);
168 bool QtFlagsDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
170 if (QtFlagsDeclarationAST *_other = pattern->asQtFlagsDeclaration())
171 return matcher->match(this, _other);
176 bool QtInterfaceNameAST::match0(AST *pattern, ASTMatcher *matcher)
178 if (QtInterfaceNameAST *_other = pattern->asQtInterfaceName())
179 return matcher->match(this, _other);
184 bool QtInterfacesDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
186 if (QtInterfacesDeclarationAST *_other = pattern->asQtInterfacesDeclaration())
187 return matcher->match(this, _other);
192 bool AsmDefinitionAST::match0(AST *pattern, ASTMatcher *matcher)
194 if (AsmDefinitionAST *_other = pattern->asAsmDefinition())
195 return matcher->match(this, _other);
200 bool BaseSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
202 if (BaseSpecifierAST *_other = pattern->asBaseSpecifier())
203 return matcher->match(this, _other);
208 bool IdExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
210 if (IdExpressionAST *_other = pattern->asIdExpression())
211 return matcher->match(this, _other);
216 bool CompoundExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
218 if (CompoundExpressionAST *_other = pattern->asCompoundExpression())
219 return matcher->match(this, _other);
224 bool CompoundLiteralAST::match0(AST *pattern, ASTMatcher *matcher)
226 if (CompoundLiteralAST *_other = pattern->asCompoundLiteral())
227 return matcher->match(this, _other);
232 bool QtMethodAST::match0(AST *pattern, ASTMatcher *matcher)
234 if (QtMethodAST *_other = pattern->asQtMethod())
235 return matcher->match(this, _other);
240 bool QtMemberDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
242 if (QtMemberDeclarationAST *_other = pattern->asQtMemberDeclaration())
243 return matcher->match(this, _other);
248 bool BinaryExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
250 if (BinaryExpressionAST *_other = pattern->asBinaryExpression())
251 return matcher->match(this, _other);
256 bool CastExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
258 if (CastExpressionAST *_other = pattern->asCastExpression())
259 return matcher->match(this, _other);
264 bool ClassSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
266 if (ClassSpecifierAST *_other = pattern->asClassSpecifier())
267 return matcher->match(this, _other);
272 bool CaseStatementAST::match0(AST *pattern, ASTMatcher *matcher)
274 if (CaseStatementAST *_other = pattern->asCaseStatement())
275 return matcher->match(this, _other);
280 bool CompoundStatementAST::match0(AST *pattern, ASTMatcher *matcher)
282 if (CompoundStatementAST *_other = pattern->asCompoundStatement())
283 return matcher->match(this, _other);
288 bool ConditionAST::match0(AST *pattern, ASTMatcher *matcher)
290 if (ConditionAST *_other = pattern->asCondition())
291 return matcher->match(this, _other);
296 bool ConditionalExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
298 if (ConditionalExpressionAST *_other = pattern->asConditionalExpression())
299 return matcher->match(this, _other);
304 bool CppCastExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
306 if (CppCastExpressionAST *_other = pattern->asCppCastExpression())
307 return matcher->match(this, _other);
312 bool CtorInitializerAST::match0(AST *pattern, ASTMatcher *matcher)
314 if (CtorInitializerAST *_other = pattern->asCtorInitializer())
315 return matcher->match(this, _other);
320 bool DeclarationStatementAST::match0(AST *pattern, ASTMatcher *matcher)
322 if (DeclarationStatementAST *_other = pattern->asDeclarationStatement())
323 return matcher->match(this, _other);
328 bool DeclaratorIdAST::match0(AST *pattern, ASTMatcher *matcher)
330 if (DeclaratorIdAST *_other = pattern->asDeclaratorId())
331 return matcher->match(this, _other);
336 bool NestedDeclaratorAST::match0(AST *pattern, ASTMatcher *matcher)
338 if (NestedDeclaratorAST *_other = pattern->asNestedDeclarator())
339 return matcher->match(this, _other);
344 bool FunctionDeclaratorAST::match0(AST *pattern, ASTMatcher *matcher)
346 if (FunctionDeclaratorAST *_other = pattern->asFunctionDeclarator())
347 return matcher->match(this, _other);
352 bool ArrayDeclaratorAST::match0(AST *pattern, ASTMatcher *matcher)
354 if (ArrayDeclaratorAST *_other = pattern->asArrayDeclarator())
355 return matcher->match(this, _other);
360 bool DeleteExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
362 if (DeleteExpressionAST *_other = pattern->asDeleteExpression())
363 return matcher->match(this, _other);
368 bool DoStatementAST::match0(AST *pattern, ASTMatcher *matcher)
370 if (DoStatementAST *_other = pattern->asDoStatement())
371 return matcher->match(this, _other);
376 bool NamedTypeSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
378 if (NamedTypeSpecifierAST *_other = pattern->asNamedTypeSpecifier())
379 return matcher->match(this, _other);
384 bool ElaboratedTypeSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
386 if (ElaboratedTypeSpecifierAST *_other = pattern->asElaboratedTypeSpecifier())
387 return matcher->match(this, _other);
392 bool EnumSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
394 if (EnumSpecifierAST *_other = pattern->asEnumSpecifier())
395 return matcher->match(this, _other);
400 bool EnumeratorAST::match0(AST *pattern, ASTMatcher *matcher)
402 if (EnumeratorAST *_other = pattern->asEnumerator())
403 return matcher->match(this, _other);
408 bool ExceptionDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
410 if (ExceptionDeclarationAST *_other = pattern->asExceptionDeclaration())
411 return matcher->match(this, _other);
416 bool ExceptionSpecificationAST::match0(AST *pattern, ASTMatcher *matcher)
418 if (ExceptionSpecificationAST *_other = pattern->asExceptionSpecification())
419 return matcher->match(this, _other);
424 bool ExpressionOrDeclarationStatementAST::match0(AST *pattern, ASTMatcher *matcher)
426 if (ExpressionOrDeclarationStatementAST *_other = pattern->asExpressionOrDeclarationStatement())
427 return matcher->match(this, _other);
432 bool ExpressionStatementAST::match0(AST *pattern, ASTMatcher *matcher)
434 if (ExpressionStatementAST *_other = pattern->asExpressionStatement())
435 return matcher->match(this, _other);
440 bool FunctionDefinitionAST::match0(AST *pattern, ASTMatcher *matcher)
442 if (FunctionDefinitionAST *_other = pattern->asFunctionDefinition())
443 return matcher->match(this, _other);
448 bool ForeachStatementAST::match0(AST *pattern, ASTMatcher *matcher)
450 if (ForeachStatementAST *_other = pattern->asForeachStatement())
451 return matcher->match(this, _other);
456 bool ForStatementAST::match0(AST *pattern, ASTMatcher *matcher)
458 if (ForStatementAST *_other = pattern->asForStatement())
459 return matcher->match(this, _other);
464 bool IfStatementAST::match0(AST *pattern, ASTMatcher *matcher)
466 if (IfStatementAST *_other = pattern->asIfStatement())
467 return matcher->match(this, _other);
472 bool ArrayInitializerAST::match0(AST *pattern, ASTMatcher *matcher)
474 if (ArrayInitializerAST *_other = pattern->asArrayInitializer())
475 return matcher->match(this, _other);
480 bool LabeledStatementAST::match0(AST *pattern, ASTMatcher *matcher)
482 if (LabeledStatementAST *_other = pattern->asLabeledStatement())
483 return matcher->match(this, _other);
488 bool LinkageBodyAST::match0(AST *pattern, ASTMatcher *matcher)
490 if (LinkageBodyAST *_other = pattern->asLinkageBody())
491 return matcher->match(this, _other);
496 bool LinkageSpecificationAST::match0(AST *pattern, ASTMatcher *matcher)
498 if (LinkageSpecificationAST *_other = pattern->asLinkageSpecification())
499 return matcher->match(this, _other);
504 bool MemInitializerAST::match0(AST *pattern, ASTMatcher *matcher)
506 if (MemInitializerAST *_other = pattern->asMemInitializer())
507 return matcher->match(this, _other);
512 bool NestedNameSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
514 if (NestedNameSpecifierAST *_other = pattern->asNestedNameSpecifier())
515 return matcher->match(this, _other);
520 bool QualifiedNameAST::match0(AST *pattern, ASTMatcher *matcher)
522 if (QualifiedNameAST *_other = pattern->asQualifiedName())
523 return matcher->match(this, _other);
528 bool OperatorFunctionIdAST::match0(AST *pattern, ASTMatcher *matcher)
530 if (OperatorFunctionIdAST *_other = pattern->asOperatorFunctionId())
531 return matcher->match(this, _other);
536 bool ConversionFunctionIdAST::match0(AST *pattern, ASTMatcher *matcher)
538 if (ConversionFunctionIdAST *_other = pattern->asConversionFunctionId())
539 return matcher->match(this, _other);
544 bool SimpleNameAST::match0(AST *pattern, ASTMatcher *matcher)
546 if (SimpleNameAST *_other = pattern->asSimpleName())
547 return matcher->match(this, _other);
552 bool DestructorNameAST::match0(AST *pattern, ASTMatcher *matcher)
554 if (DestructorNameAST *_other = pattern->asDestructorName())
555 return matcher->match(this, _other);
560 bool TemplateIdAST::match0(AST *pattern, ASTMatcher *matcher)
562 if (TemplateIdAST *_other = pattern->asTemplateId())
563 return matcher->match(this, _other);
568 bool NamespaceAST::match0(AST *pattern, ASTMatcher *matcher)
570 if (NamespaceAST *_other = pattern->asNamespace())
571 return matcher->match(this, _other);
576 bool NamespaceAliasDefinitionAST::match0(AST *pattern, ASTMatcher *matcher)
578 if (NamespaceAliasDefinitionAST *_other = pattern->asNamespaceAliasDefinition())
579 return matcher->match(this, _other);
584 bool NewPlacementAST::match0(AST *pattern, ASTMatcher *matcher)
586 if (NewPlacementAST *_other = pattern->asNewPlacement())
587 return matcher->match(this, _other);
592 bool NewArrayDeclaratorAST::match0(AST *pattern, ASTMatcher *matcher)
594 if (NewArrayDeclaratorAST *_other = pattern->asNewArrayDeclarator())
595 return matcher->match(this, _other);
600 bool NewExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
602 if (NewExpressionAST *_other = pattern->asNewExpression())
603 return matcher->match(this, _other);
608 bool NewInitializerAST::match0(AST *pattern, ASTMatcher *matcher)
610 if (NewInitializerAST *_other = pattern->asNewInitializer())
611 return matcher->match(this, _other);
616 bool NewTypeIdAST::match0(AST *pattern, ASTMatcher *matcher)
618 if (NewTypeIdAST *_other = pattern->asNewTypeId())
619 return matcher->match(this, _other);
624 bool OperatorAST::match0(AST *pattern, ASTMatcher *matcher)
626 if (OperatorAST *_other = pattern->asOperator())
627 return matcher->match(this, _other);
632 bool ParameterDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
634 if (ParameterDeclarationAST *_other = pattern->asParameterDeclaration())
635 return matcher->match(this, _other);
640 bool ParameterDeclarationClauseAST::match0(AST *pattern, ASTMatcher *matcher)
642 if (ParameterDeclarationClauseAST *_other = pattern->asParameterDeclarationClause())
643 return matcher->match(this, _other);
648 bool CallAST::match0(AST *pattern, ASTMatcher *matcher)
650 if (CallAST *_other = pattern->asCall())
651 return matcher->match(this, _other);
656 bool ArrayAccessAST::match0(AST *pattern, ASTMatcher *matcher)
658 if (ArrayAccessAST *_other = pattern->asArrayAccess())
659 return matcher->match(this, _other);
664 bool PostIncrDecrAST::match0(AST *pattern, ASTMatcher *matcher)
666 if (PostIncrDecrAST *_other = pattern->asPostIncrDecr())
667 return matcher->match(this, _other);
672 bool MemberAccessAST::match0(AST *pattern, ASTMatcher *matcher)
674 if (MemberAccessAST *_other = pattern->asMemberAccess())
675 return matcher->match(this, _other);
680 bool TypeidExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
682 if (TypeidExpressionAST *_other = pattern->asTypeidExpression())
683 return matcher->match(this, _other);
688 bool TypenameCallExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
690 if (TypenameCallExpressionAST *_other = pattern->asTypenameCallExpression())
691 return matcher->match(this, _other);
696 bool TypeConstructorCallAST::match0(AST *pattern, ASTMatcher *matcher)
698 if (TypeConstructorCallAST *_other = pattern->asTypeConstructorCall())
699 return matcher->match(this, _other);
704 bool PointerToMemberAST::match0(AST *pattern, ASTMatcher *matcher)
706 if (PointerToMemberAST *_other = pattern->asPointerToMember())
707 return matcher->match(this, _other);
712 bool PointerAST::match0(AST *pattern, ASTMatcher *matcher)
714 if (PointerAST *_other = pattern->asPointer())
715 return matcher->match(this, _other);
720 bool ReferenceAST::match0(AST *pattern, ASTMatcher *matcher)
722 if (ReferenceAST *_other = pattern->asReference())
723 return matcher->match(this, _other);
728 bool BreakStatementAST::match0(AST *pattern, ASTMatcher *matcher)
730 if (BreakStatementAST *_other = pattern->asBreakStatement())
731 return matcher->match(this, _other);
736 bool ContinueStatementAST::match0(AST *pattern, ASTMatcher *matcher)
738 if (ContinueStatementAST *_other = pattern->asContinueStatement())
739 return matcher->match(this, _other);
744 bool GotoStatementAST::match0(AST *pattern, ASTMatcher *matcher)
746 if (GotoStatementAST *_other = pattern->asGotoStatement())
747 return matcher->match(this, _other);
752 bool ReturnStatementAST::match0(AST *pattern, ASTMatcher *matcher)
754 if (ReturnStatementAST *_other = pattern->asReturnStatement())
755 return matcher->match(this, _other);
760 bool SizeofExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
762 if (SizeofExpressionAST *_other = pattern->asSizeofExpression())
763 return matcher->match(this, _other);
768 bool NumericLiteralAST::match0(AST *pattern, ASTMatcher *matcher)
770 if (NumericLiteralAST *_other = pattern->asNumericLiteral())
771 return matcher->match(this, _other);
776 bool BoolLiteralAST::match0(AST *pattern, ASTMatcher *matcher)
778 if (BoolLiteralAST *_other = pattern->asBoolLiteral())
779 return matcher->match(this, _other);
784 bool ThisExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
786 if (ThisExpressionAST *_other = pattern->asThisExpression())
787 return matcher->match(this, _other);
792 bool NestedExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
794 if (NestedExpressionAST *_other = pattern->asNestedExpression())
795 return matcher->match(this, _other);
800 bool StringLiteralAST::match0(AST *pattern, ASTMatcher *matcher)
802 if (StringLiteralAST *_other = pattern->asStringLiteral())
803 return matcher->match(this, _other);
808 bool SwitchStatementAST::match0(AST *pattern, ASTMatcher *matcher)
810 if (SwitchStatementAST *_other = pattern->asSwitchStatement())
811 return matcher->match(this, _other);
816 bool TemplateDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
818 if (TemplateDeclarationAST *_other = pattern->asTemplateDeclaration())
819 return matcher->match(this, _other);
824 bool ThrowExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
826 if (ThrowExpressionAST *_other = pattern->asThrowExpression())
827 return matcher->match(this, _other);
832 bool TranslationUnitAST::match0(AST *pattern, ASTMatcher *matcher)
834 if (TranslationUnitAST *_other = pattern->asTranslationUnit())
835 return matcher->match(this, _other);
840 bool TryBlockStatementAST::match0(AST *pattern, ASTMatcher *matcher)
842 if (TryBlockStatementAST *_other = pattern->asTryBlockStatement())
843 return matcher->match(this, _other);
848 bool CatchClauseAST::match0(AST *pattern, ASTMatcher *matcher)
850 if (CatchClauseAST *_other = pattern->asCatchClause())
851 return matcher->match(this, _other);
856 bool TypeIdAST::match0(AST *pattern, ASTMatcher *matcher)
858 if (TypeIdAST *_other = pattern->asTypeId())
859 return matcher->match(this, _other);
864 bool TypenameTypeParameterAST::match0(AST *pattern, ASTMatcher *matcher)
866 if (TypenameTypeParameterAST *_other = pattern->asTypenameTypeParameter())
867 return matcher->match(this, _other);
872 bool TemplateTypeParameterAST::match0(AST *pattern, ASTMatcher *matcher)
874 if (TemplateTypeParameterAST *_other = pattern->asTemplateTypeParameter())
875 return matcher->match(this, _other);
880 bool UnaryExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
882 if (UnaryExpressionAST *_other = pattern->asUnaryExpression())
883 return matcher->match(this, _other);
888 bool UsingAST::match0(AST *pattern, ASTMatcher *matcher)
890 if (UsingAST *_other = pattern->asUsing())
891 return matcher->match(this, _other);
896 bool UsingDirectiveAST::match0(AST *pattern, ASTMatcher *matcher)
898 if (UsingDirectiveAST *_other = pattern->asUsingDirective())
899 return matcher->match(this, _other);
904 bool WhileStatementAST::match0(AST *pattern, ASTMatcher *matcher)
906 if (WhileStatementAST *_other = pattern->asWhileStatement())
907 return matcher->match(this, _other);
912 bool ObjCClassForwardDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
914 if (ObjCClassForwardDeclarationAST *_other = pattern->asObjCClassForwardDeclaration())
915 return matcher->match(this, _other);
920 bool ObjCClassDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
922 if (ObjCClassDeclarationAST *_other = pattern->asObjCClassDeclaration())
923 return matcher->match(this, _other);
928 bool ObjCProtocolForwardDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
930 if (ObjCProtocolForwardDeclarationAST *_other = pattern->asObjCProtocolForwardDeclaration())
931 return matcher->match(this, _other);
936 bool ObjCProtocolDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
938 if (ObjCProtocolDeclarationAST *_other = pattern->asObjCProtocolDeclaration())
939 return matcher->match(this, _other);
944 bool ObjCProtocolRefsAST::match0(AST *pattern, ASTMatcher *matcher)
946 if (ObjCProtocolRefsAST *_other = pattern->asObjCProtocolRefs())
947 return matcher->match(this, _other);
952 bool ObjCMessageArgumentAST::match0(AST *pattern, ASTMatcher *matcher)
954 if (ObjCMessageArgumentAST *_other = pattern->asObjCMessageArgument())
955 return matcher->match(this, _other);
960 bool ObjCMessageExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
962 if (ObjCMessageExpressionAST *_other = pattern->asObjCMessageExpression())
963 return matcher->match(this, _other);
968 bool ObjCProtocolExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
970 if (ObjCProtocolExpressionAST *_other = pattern->asObjCProtocolExpression())
971 return matcher->match(this, _other);
976 bool ObjCTypeNameAST::match0(AST *pattern, ASTMatcher *matcher)
978 if (ObjCTypeNameAST *_other = pattern->asObjCTypeName())
979 return matcher->match(this, _other);
984 bool ObjCEncodeExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
986 if (ObjCEncodeExpressionAST *_other = pattern->asObjCEncodeExpression())
987 return matcher->match(this, _other);
992 bool ObjCSelectorExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
994 if (ObjCSelectorExpressionAST *_other = pattern->asObjCSelectorExpression())
995 return matcher->match(this, _other);
1000 bool ObjCInstanceVariablesDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
1002 if (ObjCInstanceVariablesDeclarationAST *_other = pattern->asObjCInstanceVariablesDeclaration())
1003 return matcher->match(this, _other);
1008 bool ObjCVisibilityDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
1010 if (ObjCVisibilityDeclarationAST *_other = pattern->asObjCVisibilityDeclaration())
1011 return matcher->match(this, _other);
1016 bool ObjCPropertyAttributeAST::match0(AST *pattern, ASTMatcher *matcher)
1018 if (ObjCPropertyAttributeAST *_other = pattern->asObjCPropertyAttribute())
1019 return matcher->match(this, _other);
1024 bool ObjCPropertyDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
1026 if (ObjCPropertyDeclarationAST *_other = pattern->asObjCPropertyDeclaration())
1027 return matcher->match(this, _other);
1032 bool ObjCMessageArgumentDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
1034 if (ObjCMessageArgumentDeclarationAST *_other = pattern->asObjCMessageArgumentDeclaration())
1035 return matcher->match(this, _other);
1040 bool ObjCMethodPrototypeAST::match0(AST *pattern, ASTMatcher *matcher)
1042 if (ObjCMethodPrototypeAST *_other = pattern->asObjCMethodPrototype())
1043 return matcher->match(this, _other);
1048 bool ObjCMethodDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
1050 if (ObjCMethodDeclarationAST *_other = pattern->asObjCMethodDeclaration())
1051 return matcher->match(this, _other);
1056 bool ObjCSynthesizedPropertyAST::match0(AST *pattern, ASTMatcher *matcher)
1058 if (ObjCSynthesizedPropertyAST *_other = pattern->asObjCSynthesizedProperty())
1059 return matcher->match(this, _other);
1064 bool ObjCSynthesizedPropertiesDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
1066 if (ObjCSynthesizedPropertiesDeclarationAST *_other = pattern->asObjCSynthesizedPropertiesDeclaration())
1067 return matcher->match(this, _other);
1072 bool ObjCDynamicPropertiesDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
1074 if (ObjCDynamicPropertiesDeclarationAST *_other = pattern->asObjCDynamicPropertiesDeclaration())
1075 return matcher->match(this, _other);
1080 bool ObjCFastEnumerationAST::match0(AST *pattern, ASTMatcher *matcher)
1082 if (ObjCFastEnumerationAST *_other = pattern->asObjCFastEnumeration())
1083 return matcher->match(this, _other);
1088 bool ObjCSynchronizedStatementAST::match0(AST *pattern, ASTMatcher *matcher)
1090 if (ObjCSynchronizedStatementAST *_other = pattern->asObjCSynchronizedStatement())
1091 return matcher->match(this, _other);
1096 bool LambdaExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
1098 if (LambdaExpressionAST *_other = pattern->asLambdaExpression())
1099 return matcher->match(this, _other);
1104 bool LambdaIntroducerAST::match0(AST *pattern, ASTMatcher *matcher)
1106 if (LambdaIntroducerAST *_other = pattern->asLambdaIntroducer())
1107 return matcher->match(this, _other);
1112 bool LambdaCaptureAST::match0(AST *pattern, ASTMatcher *matcher)
1114 if (LambdaCaptureAST *_other = pattern->asLambdaCapture())
1115 return matcher->match(this, _other);
1120 bool CaptureAST::match0(AST *pattern, ASTMatcher *matcher)
1122 if (CaptureAST *_other = pattern->asCapture())
1123 return matcher->match(this, _other);
1128 bool LambdaDeclaratorAST::match0(AST *pattern, ASTMatcher *matcher)
1130 if (LambdaDeclaratorAST *_other = pattern->asLambdaDeclarator())
1131 return matcher->match(this, _other);
1136 bool TrailingReturnTypeAST::match0(AST *pattern, ASTMatcher *matcher)
1138 if (TrailingReturnTypeAST *_other = pattern->asTrailingReturnType())
1139 return matcher->match(this, _other);
1144 bool BracedInitializerAST::match0(AST *pattern, ASTMatcher *matcher)
1146 if (BracedInitializerAST *_other = pattern->asBracedInitializer())
1147 return matcher->match(this, _other);