| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226 |
- // Copyright (c) 2008 Roberto Raggi <[email protected]>
- //
- // Permission is hereby granted, free of charge, to any person obtaining a copy
- // of this software and associated documentation files (the "Software"), to deal
- // in the Software without restriction, including without limitation the rights
- // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- // copies of the Software, and to permit persons to whom the Software is
- // furnished to do so, subject to the following conditions:
- //
- // The above copyright notice and this permission notice shall be included in
- // all copies or substantial portions of the Software.
- //
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- // THE SOFTWARE.
- //
- // W A R N I N G
- // -------------
- //
- // This file is automatically generated by "cplusplus-update-frontend".
- // Changes will be lost.
- //
- #include "AST.h"
- #include "ASTMatcher.h"
- 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())
- return matcher->match(this, _other);
- return false;
- }
- bool AlignmentSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (AlignmentSpecifierAST *_other = pattern->asAlignmentSpecifier())
- return matcher->match(this, _other);
- return false;
- }
- bool GnuAttributeSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (GnuAttributeSpecifierAST *_other = pattern->asGnuAttributeSpecifier())
- return matcher->match(this, _other);
- return false;
- }
- bool GnuAttributeAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (GnuAttributeAST *_other = pattern->asGnuAttribute())
- return matcher->match(this, _other);
- return false;
- }
- bool TypeofSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (TypeofSpecifierAST *_other = pattern->asTypeofSpecifier())
- return matcher->match(this, _other);
- return false;
- }
- bool DecltypeSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (DecltypeSpecifierAST *_other = pattern->asDecltypeSpecifier())
- return matcher->match(this, _other);
- return false;
- }
- bool DeclaratorAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (DeclaratorAST *_other = pattern->asDeclarator())
- return matcher->match(this, _other);
- return false;
- }
- bool SimpleDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (SimpleDeclarationAST *_other = pattern->asSimpleDeclaration())
- return matcher->match(this, _other);
- return false;
- }
- bool EmptyDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (EmptyDeclarationAST *_other = pattern->asEmptyDeclaration())
- return matcher->match(this, _other);
- return false;
- }
- bool AccessDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (AccessDeclarationAST *_other = pattern->asAccessDeclaration())
- return matcher->match(this, _other);
- return false;
- }
- bool QtObjectTagAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (QtObjectTagAST *_other = pattern->asQtObjectTag())
- return matcher->match(this, _other);
- return false;
- }
- bool QtPrivateSlotAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (QtPrivateSlotAST *_other = pattern->asQtPrivateSlot())
- return matcher->match(this, _other);
- return false;
- }
- bool QtPropertyDeclarationItemAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (QtPropertyDeclarationItemAST *_other = pattern->asQtPropertyDeclarationItem())
- return matcher->match(this, _other);
- return false;
- }
- bool QtPropertyDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (QtPropertyDeclarationAST *_other = pattern->asQtPropertyDeclaration())
- return matcher->match(this, _other);
- return false;
- }
- bool QtEnumDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (QtEnumDeclarationAST *_other = pattern->asQtEnumDeclaration())
- return matcher->match(this, _other);
- return false;
- }
- bool QtFlagsDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (QtFlagsDeclarationAST *_other = pattern->asQtFlagsDeclaration())
- return matcher->match(this, _other);
- return false;
- }
- bool QtInterfaceNameAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (QtInterfaceNameAST *_other = pattern->asQtInterfaceName())
- return matcher->match(this, _other);
- return false;
- }
- bool QtInterfacesDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (QtInterfacesDeclarationAST *_other = pattern->asQtInterfacesDeclaration())
- return matcher->match(this, _other);
- return false;
- }
- bool AsmDefinitionAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (AsmDefinitionAST *_other = pattern->asAsmDefinition())
- return matcher->match(this, _other);
- return false;
- }
- bool BaseSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (BaseSpecifierAST *_other = pattern->asBaseSpecifier())
- return matcher->match(this, _other);
- return false;
- }
- bool IdExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (IdExpressionAST *_other = pattern->asIdExpression())
- return matcher->match(this, _other);
- return false;
- }
- bool CompoundExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (CompoundExpressionAST *_other = pattern->asCompoundExpression())
- return matcher->match(this, _other);
- return false;
- }
- bool CompoundLiteralAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (CompoundLiteralAST *_other = pattern->asCompoundLiteral())
- return matcher->match(this, _other);
- return false;
- }
- bool QtMethodAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (QtMethodAST *_other = pattern->asQtMethod())
- return matcher->match(this, _other);
- return false;
- }
- bool QtMemberDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (QtMemberDeclarationAST *_other = pattern->asQtMemberDeclaration())
- return matcher->match(this, _other);
- return false;
- }
- bool BinaryExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (BinaryExpressionAST *_other = pattern->asBinaryExpression())
- return matcher->match(this, _other);
- return false;
- }
- bool CastExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (CastExpressionAST *_other = pattern->asCastExpression())
- return matcher->match(this, _other);
- return false;
- }
- bool ClassSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ClassSpecifierAST *_other = pattern->asClassSpecifier())
- return matcher->match(this, _other);
- return false;
- }
- bool CaseStatementAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (CaseStatementAST *_other = pattern->asCaseStatement())
- return matcher->match(this, _other);
- return false;
- }
- bool CompoundStatementAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (CompoundStatementAST *_other = pattern->asCompoundStatement())
- return matcher->match(this, _other);
- return false;
- }
- bool ConditionAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ConditionAST *_other = pattern->asCondition())
- return matcher->match(this, _other);
- return false;
- }
- bool ConditionalExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ConditionalExpressionAST *_other = pattern->asConditionalExpression())
- return matcher->match(this, _other);
- return false;
- }
- bool CppCastExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (CppCastExpressionAST *_other = pattern->asCppCastExpression())
- return matcher->match(this, _other);
- return false;
- }
- bool CtorInitializerAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (CtorInitializerAST *_other = pattern->asCtorInitializer())
- return matcher->match(this, _other);
- return false;
- }
- bool DeclarationStatementAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (DeclarationStatementAST *_other = pattern->asDeclarationStatement())
- return matcher->match(this, _other);
- return false;
- }
- bool DeclaratorIdAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (DeclaratorIdAST *_other = pattern->asDeclaratorId())
- return matcher->match(this, _other);
- return false;
- }
- bool NestedDeclaratorAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (NestedDeclaratorAST *_other = pattern->asNestedDeclarator())
- return matcher->match(this, _other);
- return false;
- }
- bool FunctionDeclaratorAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (FunctionDeclaratorAST *_other = pattern->asFunctionDeclarator())
- return matcher->match(this, _other);
- return false;
- }
- bool ArrayDeclaratorAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ArrayDeclaratorAST *_other = pattern->asArrayDeclarator())
- return matcher->match(this, _other);
- return false;
- }
- bool DeleteExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (DeleteExpressionAST *_other = pattern->asDeleteExpression())
- return matcher->match(this, _other);
- return false;
- }
- bool DoStatementAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (DoStatementAST *_other = pattern->asDoStatement())
- return matcher->match(this, _other);
- return false;
- }
- bool NamedTypeSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (NamedTypeSpecifierAST *_other = pattern->asNamedTypeSpecifier())
- return matcher->match(this, _other);
- return false;
- }
- bool ElaboratedTypeSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ElaboratedTypeSpecifierAST *_other = pattern->asElaboratedTypeSpecifier())
- return matcher->match(this, _other);
- return false;
- }
- bool EnumSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (EnumSpecifierAST *_other = pattern->asEnumSpecifier())
- return matcher->match(this, _other);
- return false;
- }
- bool EnumeratorAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (EnumeratorAST *_other = pattern->asEnumerator())
- return matcher->match(this, _other);
- return false;
- }
- bool ExceptionDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ExceptionDeclarationAST *_other = pattern->asExceptionDeclaration())
- return matcher->match(this, _other);
- return false;
- }
- bool DynamicExceptionSpecificationAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (DynamicExceptionSpecificationAST *_other = pattern->asDynamicExceptionSpecification())
- return matcher->match(this, _other);
- return false;
- }
- bool NoExceptSpecificationAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (NoExceptSpecificationAST *_other = pattern->asNoExceptSpecification())
- return matcher->match(this, _other);
- return false;
- }
- bool ExpressionOrDeclarationStatementAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ExpressionOrDeclarationStatementAST *_other = pattern->asExpressionOrDeclarationStatement())
- return matcher->match(this, _other);
- return false;
- }
- bool ExpressionStatementAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ExpressionStatementAST *_other = pattern->asExpressionStatement())
- return matcher->match(this, _other);
- return false;
- }
- bool FunctionDefinitionAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (FunctionDefinitionAST *_other = pattern->asFunctionDefinition())
- return matcher->match(this, _other);
- return false;
- }
- bool ForeachStatementAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ForeachStatementAST *_other = pattern->asForeachStatement())
- return matcher->match(this, _other);
- return false;
- }
- bool RangeBasedForStatementAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (RangeBasedForStatementAST *_other = pattern->asRangeBasedForStatement())
- return matcher->match(this, _other);
- return false;
- }
- bool ForStatementAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ForStatementAST *_other = pattern->asForStatement())
- return matcher->match(this, _other);
- return false;
- }
- bool IfStatementAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (IfStatementAST *_other = pattern->asIfStatement())
- return matcher->match(this, _other);
- return false;
- }
- bool ArrayInitializerAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ArrayInitializerAST *_other = pattern->asArrayInitializer())
- return matcher->match(this, _other);
- return false;
- }
- bool LabeledStatementAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (LabeledStatementAST *_other = pattern->asLabeledStatement())
- return matcher->match(this, _other);
- return false;
- }
- bool LinkageBodyAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (LinkageBodyAST *_other = pattern->asLinkageBody())
- return matcher->match(this, _other);
- return false;
- }
- bool LinkageSpecificationAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (LinkageSpecificationAST *_other = pattern->asLinkageSpecification())
- return matcher->match(this, _other);
- return false;
- }
- bool MemInitializerAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (MemInitializerAST *_other = pattern->asMemInitializer())
- return matcher->match(this, _other);
- return false;
- }
- bool NestedNameSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (NestedNameSpecifierAST *_other = pattern->asNestedNameSpecifier())
- return matcher->match(this, _other);
- return false;
- }
- bool QualifiedNameAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (QualifiedNameAST *_other = pattern->asQualifiedName())
- return matcher->match(this, _other);
- return false;
- }
- bool OperatorFunctionIdAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (OperatorFunctionIdAST *_other = pattern->asOperatorFunctionId())
- return matcher->match(this, _other);
- return false;
- }
- bool ConversionFunctionIdAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ConversionFunctionIdAST *_other = pattern->asConversionFunctionId())
- return matcher->match(this, _other);
- return false;
- }
- bool AnonymousNameAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (AnonymousNameAST *_other = pattern->asAnonymousName())
- return matcher->match(this, _other);
- return false;
- }
- bool SimpleNameAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (SimpleNameAST *_other = pattern->asSimpleName())
- return matcher->match(this, _other);
- return false;
- }
- bool DestructorNameAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (DestructorNameAST *_other = pattern->asDestructorName())
- return matcher->match(this, _other);
- return false;
- }
- bool TemplateIdAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (TemplateIdAST *_other = pattern->asTemplateId())
- return matcher->match(this, _other);
- return false;
- }
- bool NamespaceAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (NamespaceAST *_other = pattern->asNamespace())
- return matcher->match(this, _other);
- return false;
- }
- bool NamespaceAliasDefinitionAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (NamespaceAliasDefinitionAST *_other = pattern->asNamespaceAliasDefinition())
- return matcher->match(this, _other);
- return false;
- }
- bool AliasDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (AliasDeclarationAST *_other = pattern->asAliasDeclaration())
- return matcher->match(this, _other);
- return false;
- }
- bool ExpressionListParenAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ExpressionListParenAST *_other = pattern->asExpressionListParen())
- return matcher->match(this, _other);
- return false;
- }
- bool NewArrayDeclaratorAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (NewArrayDeclaratorAST *_other = pattern->asNewArrayDeclarator())
- return matcher->match(this, _other);
- return false;
- }
- bool NewExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (NewExpressionAST *_other = pattern->asNewExpression())
- return matcher->match(this, _other);
- return false;
- }
- bool NewTypeIdAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (NewTypeIdAST *_other = pattern->asNewTypeId())
- return matcher->match(this, _other);
- return false;
- }
- bool OperatorAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (OperatorAST *_other = pattern->asOperator())
- return matcher->match(this, _other);
- return false;
- }
- bool ParameterDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ParameterDeclarationAST *_other = pattern->asParameterDeclaration())
- return matcher->match(this, _other);
- return false;
- }
- bool ParameterDeclarationClauseAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ParameterDeclarationClauseAST *_other = pattern->asParameterDeclarationClause())
- return matcher->match(this, _other);
- return false;
- }
- bool CallAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (CallAST *_other = pattern->asCall())
- return matcher->match(this, _other);
- return false;
- }
- bool ArrayAccessAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ArrayAccessAST *_other = pattern->asArrayAccess())
- return matcher->match(this, _other);
- return false;
- }
- bool PostIncrDecrAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (PostIncrDecrAST *_other = pattern->asPostIncrDecr())
- return matcher->match(this, _other);
- return false;
- }
- bool MemberAccessAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (MemberAccessAST *_other = pattern->asMemberAccess())
- return matcher->match(this, _other);
- return false;
- }
- bool TypeidExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (TypeidExpressionAST *_other = pattern->asTypeidExpression())
- return matcher->match(this, _other);
- return false;
- }
- bool TypenameCallExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (TypenameCallExpressionAST *_other = pattern->asTypenameCallExpression())
- return matcher->match(this, _other);
- return false;
- }
- bool TypeConstructorCallAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (TypeConstructorCallAST *_other = pattern->asTypeConstructorCall())
- return matcher->match(this, _other);
- return false;
- }
- bool PointerToMemberAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (PointerToMemberAST *_other = pattern->asPointerToMember())
- return matcher->match(this, _other);
- return false;
- }
- bool PointerAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (PointerAST *_other = pattern->asPointer())
- return matcher->match(this, _other);
- return false;
- }
- bool ReferenceAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ReferenceAST *_other = pattern->asReference())
- return matcher->match(this, _other);
- return false;
- }
- bool BreakStatementAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (BreakStatementAST *_other = pattern->asBreakStatement())
- return matcher->match(this, _other);
- return false;
- }
- bool ContinueStatementAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ContinueStatementAST *_other = pattern->asContinueStatement())
- return matcher->match(this, _other);
- return false;
- }
- bool GotoStatementAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (GotoStatementAST *_other = pattern->asGotoStatement())
- return matcher->match(this, _other);
- return false;
- }
- bool ReturnStatementAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ReturnStatementAST *_other = pattern->asReturnStatement())
- return matcher->match(this, _other);
- return false;
- }
- bool SizeofExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (SizeofExpressionAST *_other = pattern->asSizeofExpression())
- return matcher->match(this, _other);
- return false;
- }
- bool AlignofExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (AlignofExpressionAST *_other = pattern->asAlignofExpression())
- return matcher->match(this, _other);
- return false;
- }
- bool PointerLiteralAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (PointerLiteralAST *_other = pattern->asPointerLiteral())
- return matcher->match(this, _other);
- return false;
- }
- bool NumericLiteralAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (NumericLiteralAST *_other = pattern->asNumericLiteral())
- return matcher->match(this, _other);
- return false;
- }
- bool BoolLiteralAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (BoolLiteralAST *_other = pattern->asBoolLiteral())
- return matcher->match(this, _other);
- return false;
- }
- bool ThisExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ThisExpressionAST *_other = pattern->asThisExpression())
- return matcher->match(this, _other);
- return false;
- }
- bool NestedExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (NestedExpressionAST *_other = pattern->asNestedExpression())
- return matcher->match(this, _other);
- return false;
- }
- bool StaticAssertDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (StaticAssertDeclarationAST *_other = pattern->asStaticAssertDeclaration())
- return matcher->match(this, _other);
- return false;
- }
- bool StringLiteralAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (StringLiteralAST *_other = pattern->asStringLiteral())
- return matcher->match(this, _other);
- return false;
- }
- bool SwitchStatementAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (SwitchStatementAST *_other = pattern->asSwitchStatement())
- return matcher->match(this, _other);
- return false;
- }
- bool TemplateDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (TemplateDeclarationAST *_other = pattern->asTemplateDeclaration())
- return matcher->match(this, _other);
- return false;
- }
- bool ThrowExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ThrowExpressionAST *_other = pattern->asThrowExpression())
- return matcher->match(this, _other);
- return false;
- }
- bool TranslationUnitAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (TranslationUnitAST *_other = pattern->asTranslationUnit())
- return matcher->match(this, _other);
- return false;
- }
- bool TryBlockStatementAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (TryBlockStatementAST *_other = pattern->asTryBlockStatement())
- return matcher->match(this, _other);
- return false;
- }
- bool CatchClauseAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (CatchClauseAST *_other = pattern->asCatchClause())
- return matcher->match(this, _other);
- return false;
- }
- bool TypeIdAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (TypeIdAST *_other = pattern->asTypeId())
- return matcher->match(this, _other);
- return false;
- }
- bool TypenameTypeParameterAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (TypenameTypeParameterAST *_other = pattern->asTypenameTypeParameter())
- return matcher->match(this, _other);
- return false;
- }
- bool TemplateTypeParameterAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (TemplateTypeParameterAST *_other = pattern->asTemplateTypeParameter())
- return matcher->match(this, _other);
- return false;
- }
- bool UnaryExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (UnaryExpressionAST *_other = pattern->asUnaryExpression())
- return matcher->match(this, _other);
- return false;
- }
- bool UsingAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (UsingAST *_other = pattern->asUsing())
- return matcher->match(this, _other);
- return false;
- }
- bool UsingDirectiveAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (UsingDirectiveAST *_other = pattern->asUsingDirective())
- return matcher->match(this, _other);
- return false;
- }
- bool WhileStatementAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (WhileStatementAST *_other = pattern->asWhileStatement())
- return matcher->match(this, _other);
- return false;
- }
- bool ObjCClassForwardDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ObjCClassForwardDeclarationAST *_other = pattern->asObjCClassForwardDeclaration())
- return matcher->match(this, _other);
- return false;
- }
- bool ObjCClassDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ObjCClassDeclarationAST *_other = pattern->asObjCClassDeclaration())
- return matcher->match(this, _other);
- return false;
- }
- bool ObjCProtocolForwardDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ObjCProtocolForwardDeclarationAST *_other = pattern->asObjCProtocolForwardDeclaration())
- return matcher->match(this, _other);
- return false;
- }
- bool ObjCProtocolDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ObjCProtocolDeclarationAST *_other = pattern->asObjCProtocolDeclaration())
- return matcher->match(this, _other);
- return false;
- }
- bool ObjCProtocolRefsAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ObjCProtocolRefsAST *_other = pattern->asObjCProtocolRefs())
- return matcher->match(this, _other);
- return false;
- }
- bool ObjCMessageArgumentAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ObjCMessageArgumentAST *_other = pattern->asObjCMessageArgument())
- return matcher->match(this, _other);
- return false;
- }
- bool ObjCMessageExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ObjCMessageExpressionAST *_other = pattern->asObjCMessageExpression())
- return matcher->match(this, _other);
- return false;
- }
- bool ObjCProtocolExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ObjCProtocolExpressionAST *_other = pattern->asObjCProtocolExpression())
- return matcher->match(this, _other);
- return false;
- }
- bool ObjCTypeNameAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ObjCTypeNameAST *_other = pattern->asObjCTypeName())
- return matcher->match(this, _other);
- return false;
- }
- bool ObjCEncodeExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ObjCEncodeExpressionAST *_other = pattern->asObjCEncodeExpression())
- return matcher->match(this, _other);
- return false;
- }
- bool ObjCSelectorExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ObjCSelectorExpressionAST *_other = pattern->asObjCSelectorExpression())
- return matcher->match(this, _other);
- return false;
- }
- bool ObjCInstanceVariablesDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ObjCInstanceVariablesDeclarationAST *_other = pattern->asObjCInstanceVariablesDeclaration())
- return matcher->match(this, _other);
- return false;
- }
- bool ObjCVisibilityDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ObjCVisibilityDeclarationAST *_other = pattern->asObjCVisibilityDeclaration())
- return matcher->match(this, _other);
- return false;
- }
- bool ObjCPropertyAttributeAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ObjCPropertyAttributeAST *_other = pattern->asObjCPropertyAttribute())
- return matcher->match(this, _other);
- return false;
- }
- bool ObjCPropertyDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ObjCPropertyDeclarationAST *_other = pattern->asObjCPropertyDeclaration())
- return matcher->match(this, _other);
- return false;
- }
- bool ObjCMessageArgumentDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ObjCMessageArgumentDeclarationAST *_other = pattern->asObjCMessageArgumentDeclaration())
- return matcher->match(this, _other);
- return false;
- }
- bool ObjCMethodPrototypeAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ObjCMethodPrototypeAST *_other = pattern->asObjCMethodPrototype())
- return matcher->match(this, _other);
- return false;
- }
- bool ObjCMethodDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ObjCMethodDeclarationAST *_other = pattern->asObjCMethodDeclaration())
- return matcher->match(this, _other);
- return false;
- }
- bool ObjCSynthesizedPropertyAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ObjCSynthesizedPropertyAST *_other = pattern->asObjCSynthesizedProperty())
- return matcher->match(this, _other);
- return false;
- }
- bool ObjCSynthesizedPropertiesDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ObjCSynthesizedPropertiesDeclarationAST *_other = pattern->asObjCSynthesizedPropertiesDeclaration())
- return matcher->match(this, _other);
- return false;
- }
- bool ObjCDynamicPropertiesDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ObjCDynamicPropertiesDeclarationAST *_other = pattern->asObjCDynamicPropertiesDeclaration())
- return matcher->match(this, _other);
- return false;
- }
- bool ObjCFastEnumerationAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ObjCFastEnumerationAST *_other = pattern->asObjCFastEnumeration())
- return matcher->match(this, _other);
- return false;
- }
- bool ObjCSynchronizedStatementAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (ObjCSynchronizedStatementAST *_other = pattern->asObjCSynchronizedStatement())
- return matcher->match(this, _other);
- return false;
- }
- bool LambdaExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (LambdaExpressionAST *_other = pattern->asLambdaExpression())
- return matcher->match(this, _other);
- return false;
- }
- bool LambdaIntroducerAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (LambdaIntroducerAST *_other = pattern->asLambdaIntroducer())
- return matcher->match(this, _other);
- return false;
- }
- bool LambdaCaptureAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (LambdaCaptureAST *_other = pattern->asLambdaCapture())
- return matcher->match(this, _other);
- return false;
- }
- bool CaptureAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (CaptureAST *_other = pattern->asCapture())
- return matcher->match(this, _other);
- return false;
- }
- bool LambdaDeclaratorAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (LambdaDeclaratorAST *_other = pattern->asLambdaDeclarator())
- return matcher->match(this, _other);
- return false;
- }
- bool TrailingReturnTypeAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (TrailingReturnTypeAST *_other = pattern->asTrailingReturnType())
- return matcher->match(this, _other);
- return false;
- }
- bool BracedInitializerAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (BracedInitializerAST *_other = pattern->asBracedInitializer())
- return matcher->match(this, _other);
- return false;
- }
- bool DotDesignatorAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (DotDesignatorAST *_other = pattern->asDotDesignator())
- return matcher->match(this, _other);
- return false;
- }
- bool BracketDesignatorAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (BracketDesignatorAST *_other = pattern->asBracketDesignator())
- return matcher->match(this, _other);
- return false;
- }
- bool DesignatedInitializerAST::match0(AST *pattern, ASTMatcher *matcher)
- {
- if (DesignatedInitializerAST *_other = pattern->asDesignatedInitializer())
- return matcher->match(this, _other);
- return false;
- }
|