Files
qt-creator/src/shared/cplusplus/ASTMatch0.cpp

1068 lines
28 KiB
C++
Raw Normal View History

/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial licenses may use this file in
** accordance with the Qt Commercial License Agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Nokia.
**
** GNU Lesser General Public License Usage
**
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** If you are unsure which license is appropriate for your use, please
** contact the sales department at http://qt.nokia.com/contact.
**
**************************************************************************/
//
// W A R N I N G
// -------------
//
// This file is automatically generated.
// Changes will be lost.
//
#include "AST.h"
#include "ASTMatcher.h"
using namespace CPlusPlus;
bool SimpleSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (SimpleSpecifierAST *_other = pattern->asSimpleSpecifier())
return matcher->match(this, _other);
return false;
}
bool AttributeSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (AttributeSpecifierAST *_other = pattern->asAttributeSpecifier())
return matcher->match(this, _other);
return false;
}
bool AttributeAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (AttributeAST *_other = pattern->asAttribute())
return matcher->match(this, _other);
return false;
}
bool TypeofSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (TypeofSpecifierAST *_other = pattern->asTypeofSpecifier())
return matcher->match(this, _other);
return false;
}
bool DeclaratorAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (DeclaratorAST *_other = pattern->asDeclarator())
return matcher->match(this, _other);
return false;
}
bool SimpleDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (SimpleDeclarationAST *_other = pattern->asSimpleDeclaration())
return matcher->match(this, _other);
return false;
}
bool EmptyDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (EmptyDeclarationAST *_other = pattern->asEmptyDeclaration())
return matcher->match(this, _other);
return false;
}
bool AccessDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (AccessDeclarationAST *_other = pattern->asAccessDeclaration())
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 QtDeclareFlagsDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
if (QtDeclareFlagsDeclarationAST *_other = pattern->asQtDeclareFlagsDeclaration())
return matcher->match(this, _other);
return false;
}
bool AsmDefinitionAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (AsmDefinitionAST *_other = pattern->asAsmDefinition())
return matcher->match(this, _other);
return false;
}
bool BaseSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (BaseSpecifierAST *_other = pattern->asBaseSpecifier())
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)
{
2009-11-13 11:35:19 +01:00
if (CompoundLiteralAST *_other = pattern->asCompoundLiteral())
return matcher->match(this, _other);
return false;
}
bool QtMethodAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
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)
{
2009-11-13 11:35:19 +01:00
if (BinaryExpressionAST *_other = pattern->asBinaryExpression())
return matcher->match(this, _other);
return false;
}
bool CastExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (CastExpressionAST *_other = pattern->asCastExpression())
return matcher->match(this, _other);
return false;
}
bool ClassSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ClassSpecifierAST *_other = pattern->asClassSpecifier())
return matcher->match(this, _other);
return false;
}
bool CaseStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (CaseStatementAST *_other = pattern->asCaseStatement())
return matcher->match(this, _other);
return false;
}
bool CompoundStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (CompoundStatementAST *_other = pattern->asCompoundStatement())
return matcher->match(this, _other);
return false;
}
bool ConditionAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ConditionAST *_other = pattern->asCondition())
return matcher->match(this, _other);
return false;
}
bool ConditionalExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ConditionalExpressionAST *_other = pattern->asConditionalExpression())
return matcher->match(this, _other);
return false;
}
bool CppCastExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (CppCastExpressionAST *_other = pattern->asCppCastExpression())
return matcher->match(this, _other);
return false;
}
bool CtorInitializerAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (CtorInitializerAST *_other = pattern->asCtorInitializer())
return matcher->match(this, _other);
return false;
}
bool DeclarationStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (DeclarationStatementAST *_other = pattern->asDeclarationStatement())
return matcher->match(this, _other);
return false;
}
bool DeclaratorIdAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (DeclaratorIdAST *_other = pattern->asDeclaratorId())
return matcher->match(this, _other);
return false;
}
bool NestedDeclaratorAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (NestedDeclaratorAST *_other = pattern->asNestedDeclarator())
return matcher->match(this, _other);
return false;
}
bool FunctionDeclaratorAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (FunctionDeclaratorAST *_other = pattern->asFunctionDeclarator())
return matcher->match(this, _other);
return false;
}
bool ArrayDeclaratorAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ArrayDeclaratorAST *_other = pattern->asArrayDeclarator())
return matcher->match(this, _other);
return false;
}
bool DeleteExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (DeleteExpressionAST *_other = pattern->asDeleteExpression())
return matcher->match(this, _other);
return false;
}
bool DoStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (DoStatementAST *_other = pattern->asDoStatement())
return matcher->match(this, _other);
return false;
}
bool NamedTypeSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (NamedTypeSpecifierAST *_other = pattern->asNamedTypeSpecifier())
return matcher->match(this, _other);
return false;
}
bool ElaboratedTypeSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ElaboratedTypeSpecifierAST *_other = pattern->asElaboratedTypeSpecifier())
return matcher->match(this, _other);
return false;
}
bool EnumSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (EnumSpecifierAST *_other = pattern->asEnumSpecifier())
return matcher->match(this, _other);
return false;
}
bool EnumeratorAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (EnumeratorAST *_other = pattern->asEnumerator())
return matcher->match(this, _other);
return false;
}
bool ExceptionDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ExceptionDeclarationAST *_other = pattern->asExceptionDeclaration())
return matcher->match(this, _other);
return false;
}
bool ExceptionSpecificationAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ExceptionSpecificationAST *_other = pattern->asExceptionSpecification())
return matcher->match(this, _other);
return false;
}
bool ExpressionOrDeclarationStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ExpressionOrDeclarationStatementAST *_other = pattern->asExpressionOrDeclarationStatement())
return matcher->match(this, _other);
return false;
}
bool ExpressionStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ExpressionStatementAST *_other = pattern->asExpressionStatement())
return matcher->match(this, _other);
return false;
}
bool FunctionDefinitionAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (FunctionDefinitionAST *_other = pattern->asFunctionDefinition())
return matcher->match(this, _other);
return false;
}
bool ForeachStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ForeachStatementAST *_other = pattern->asForeachStatement())
return matcher->match(this, _other);
return false;
}
bool ForStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ForStatementAST *_other = pattern->asForStatement())
return matcher->match(this, _other);
return false;
}
bool IfStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (IfStatementAST *_other = pattern->asIfStatement())
return matcher->match(this, _other);
return false;
}
bool ArrayInitializerAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ArrayInitializerAST *_other = pattern->asArrayInitializer())
return matcher->match(this, _other);
return false;
}
bool LabeledStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (LabeledStatementAST *_other = pattern->asLabeledStatement())
return matcher->match(this, _other);
return false;
}
bool LinkageBodyAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (LinkageBodyAST *_other = pattern->asLinkageBody())
return matcher->match(this, _other);
return false;
}
bool LinkageSpecificationAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (LinkageSpecificationAST *_other = pattern->asLinkageSpecification())
return matcher->match(this, _other);
return false;
}
bool MemInitializerAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (MemInitializerAST *_other = pattern->asMemInitializer())
return matcher->match(this, _other);
return false;
}
bool NestedNameSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (NestedNameSpecifierAST *_other = pattern->asNestedNameSpecifier())
return matcher->match(this, _other);
return false;
}
bool QualifiedNameAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (QualifiedNameAST *_other = pattern->asQualifiedName())
return matcher->match(this, _other);
return false;
}
bool OperatorFunctionIdAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (OperatorFunctionIdAST *_other = pattern->asOperatorFunctionId())
return matcher->match(this, _other);
return false;
}
bool ConversionFunctionIdAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ConversionFunctionIdAST *_other = pattern->asConversionFunctionId())
return matcher->match(this, _other);
return false;
}
bool SimpleNameAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (SimpleNameAST *_other = pattern->asSimpleName())
return matcher->match(this, _other);
return false;
}
bool DestructorNameAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (DestructorNameAST *_other = pattern->asDestructorName())
return matcher->match(this, _other);
return false;
}
bool TemplateIdAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (TemplateIdAST *_other = pattern->asTemplateId())
return matcher->match(this, _other);
return false;
}
bool NamespaceAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (NamespaceAST *_other = pattern->asNamespace())
return matcher->match(this, _other);
return false;
}
bool NamespaceAliasDefinitionAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (NamespaceAliasDefinitionAST *_other = pattern->asNamespaceAliasDefinition())
return matcher->match(this, _other);
return false;
}
bool NewPlacementAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (NewPlacementAST *_other = pattern->asNewPlacement())
return matcher->match(this, _other);
return false;
}
bool NewArrayDeclaratorAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (NewArrayDeclaratorAST *_other = pattern->asNewArrayDeclarator())
return matcher->match(this, _other);
return false;
}
bool NewExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (NewExpressionAST *_other = pattern->asNewExpression())
return matcher->match(this, _other);
return false;
}
bool NewInitializerAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (NewInitializerAST *_other = pattern->asNewInitializer())
return matcher->match(this, _other);
return false;
}
bool NewTypeIdAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (NewTypeIdAST *_other = pattern->asNewTypeId())
return matcher->match(this, _other);
return false;
}
bool OperatorAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (OperatorAST *_other = pattern->asOperator())
return matcher->match(this, _other);
return false;
}
bool ParameterDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ParameterDeclarationAST *_other = pattern->asParameterDeclaration())
return matcher->match(this, _other);
return false;
}
bool ParameterDeclarationClauseAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ParameterDeclarationClauseAST *_other = pattern->asParameterDeclarationClause())
return matcher->match(this, _other);
return false;
}
bool CallAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (CallAST *_other = pattern->asCall())
return matcher->match(this, _other);
return false;
}
bool ArrayAccessAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ArrayAccessAST *_other = pattern->asArrayAccess())
return matcher->match(this, _other);
return false;
}
bool PostIncrDecrAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (PostIncrDecrAST *_other = pattern->asPostIncrDecr())
return matcher->match(this, _other);
return false;
}
bool MemberAccessAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (MemberAccessAST *_other = pattern->asMemberAccess())
return matcher->match(this, _other);
return false;
}
bool TypeidExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (TypeidExpressionAST *_other = pattern->asTypeidExpression())
return matcher->match(this, _other);
return false;
}
bool TypenameCallExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (TypenameCallExpressionAST *_other = pattern->asTypenameCallExpression())
return matcher->match(this, _other);
return false;
}
bool TypeConstructorCallAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (TypeConstructorCallAST *_other = pattern->asTypeConstructorCall())
return matcher->match(this, _other);
return false;
}
bool PostfixExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (PostfixExpressionAST *_other = pattern->asPostfixExpression())
return matcher->match(this, _other);
return false;
}
bool PointerToMemberAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (PointerToMemberAST *_other = pattern->asPointerToMember())
return matcher->match(this, _other);
return false;
}
bool PointerAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (PointerAST *_other = pattern->asPointer())
return matcher->match(this, _other);
return false;
}
bool ReferenceAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ReferenceAST *_other = pattern->asReference())
return matcher->match(this, _other);
return false;
}
bool BreakStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (BreakStatementAST *_other = pattern->asBreakStatement())
return matcher->match(this, _other);
return false;
}
bool ContinueStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ContinueStatementAST *_other = pattern->asContinueStatement())
return matcher->match(this, _other);
return false;
}
bool GotoStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (GotoStatementAST *_other = pattern->asGotoStatement())
return matcher->match(this, _other);
return false;
}
bool ReturnStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ReturnStatementAST *_other = pattern->asReturnStatement())
return matcher->match(this, _other);
return false;
}
bool SizeofExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (SizeofExpressionAST *_other = pattern->asSizeofExpression())
return matcher->match(this, _other);
return false;
}
bool NumericLiteralAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (NumericLiteralAST *_other = pattern->asNumericLiteral())
return matcher->match(this, _other);
return false;
}
bool BoolLiteralAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (BoolLiteralAST *_other = pattern->asBoolLiteral())
return matcher->match(this, _other);
return false;
}
bool ThisExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ThisExpressionAST *_other = pattern->asThisExpression())
return matcher->match(this, _other);
return false;
}
bool NestedExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (NestedExpressionAST *_other = pattern->asNestedExpression())
return matcher->match(this, _other);
return false;
}
bool StringLiteralAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (StringLiteralAST *_other = pattern->asStringLiteral())
return matcher->match(this, _other);
return false;
}
bool SwitchStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (SwitchStatementAST *_other = pattern->asSwitchStatement())
return matcher->match(this, _other);
return false;
}
bool TemplateDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (TemplateDeclarationAST *_other = pattern->asTemplateDeclaration())
return matcher->match(this, _other);
return false;
}
bool ThrowExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ThrowExpressionAST *_other = pattern->asThrowExpression())
return matcher->match(this, _other);
return false;
}
bool TranslationUnitAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (TranslationUnitAST *_other = pattern->asTranslationUnit())
return matcher->match(this, _other);
return false;
}
bool TryBlockStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (TryBlockStatementAST *_other = pattern->asTryBlockStatement())
return matcher->match(this, _other);
return false;
}
bool CatchClauseAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (CatchClauseAST *_other = pattern->asCatchClause())
return matcher->match(this, _other);
return false;
}
bool TypeIdAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (TypeIdAST *_other = pattern->asTypeId())
return matcher->match(this, _other);
return false;
}
bool TypenameTypeParameterAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (TypenameTypeParameterAST *_other = pattern->asTypenameTypeParameter())
return matcher->match(this, _other);
return false;
}
bool TemplateTypeParameterAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (TemplateTypeParameterAST *_other = pattern->asTemplateTypeParameter())
return matcher->match(this, _other);
return false;
}
bool UnaryExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (UnaryExpressionAST *_other = pattern->asUnaryExpression())
return matcher->match(this, _other);
return false;
}
bool UsingAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (UsingAST *_other = pattern->asUsing())
return matcher->match(this, _other);
return false;
}
bool UsingDirectiveAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (UsingDirectiveAST *_other = pattern->asUsingDirective())
return matcher->match(this, _other);
return false;
}
bool WhileStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (WhileStatementAST *_other = pattern->asWhileStatement())
return matcher->match(this, _other);
return false;
}
bool ObjCClassForwardDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ObjCClassForwardDeclarationAST *_other = pattern->asObjCClassForwardDeclaration())
return matcher->match(this, _other);
return false;
}
bool ObjCClassDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ObjCClassDeclarationAST *_other = pattern->asObjCClassDeclaration())
return matcher->match(this, _other);
return false;
}
bool ObjCProtocolForwardDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ObjCProtocolForwardDeclarationAST *_other = pattern->asObjCProtocolForwardDeclaration())
return matcher->match(this, _other);
return false;
}
bool ObjCProtocolDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ObjCProtocolDeclarationAST *_other = pattern->asObjCProtocolDeclaration())
return matcher->match(this, _other);
return false;
}
bool ObjCProtocolRefsAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ObjCProtocolRefsAST *_other = pattern->asObjCProtocolRefs())
return matcher->match(this, _other);
return false;
}
bool ObjCMessageArgumentAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ObjCMessageArgumentAST *_other = pattern->asObjCMessageArgument())
return matcher->match(this, _other);
return false;
}
bool ObjCMessageExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ObjCMessageExpressionAST *_other = pattern->asObjCMessageExpression())
return matcher->match(this, _other);
return false;
}
bool ObjCProtocolExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ObjCProtocolExpressionAST *_other = pattern->asObjCProtocolExpression())
return matcher->match(this, _other);
return false;
}
bool ObjCTypeNameAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ObjCTypeNameAST *_other = pattern->asObjCTypeName())
return matcher->match(this, _other);
return false;
}
bool ObjCEncodeExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ObjCEncodeExpressionAST *_other = pattern->asObjCEncodeExpression())
return matcher->match(this, _other);
return false;
}
bool ObjCSelectorWithoutArgumentsAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ObjCSelectorWithoutArgumentsAST *_other = pattern->asObjCSelectorWithoutArguments())
return matcher->match(this, _other);
return false;
}
bool ObjCSelectorArgumentAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ObjCSelectorArgumentAST *_other = pattern->asObjCSelectorArgument())
return matcher->match(this, _other);
return false;
}
bool ObjCSelectorWithArgumentsAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ObjCSelectorWithArgumentsAST *_other = pattern->asObjCSelectorWithArguments())
return matcher->match(this, _other);
return false;
}
bool ObjCSelectorExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ObjCSelectorExpressionAST *_other = pattern->asObjCSelectorExpression())
return matcher->match(this, _other);
return false;
}
bool ObjCInstanceVariablesDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ObjCInstanceVariablesDeclarationAST *_other = pattern->asObjCInstanceVariablesDeclaration())
return matcher->match(this, _other);
return false;
}
bool ObjCVisibilityDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ObjCVisibilityDeclarationAST *_other = pattern->asObjCVisibilityDeclaration())
return matcher->match(this, _other);
return false;
}
bool ObjCPropertyAttributeAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ObjCPropertyAttributeAST *_other = pattern->asObjCPropertyAttribute())
return matcher->match(this, _other);
return false;
}
bool ObjCPropertyDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ObjCPropertyDeclarationAST *_other = pattern->asObjCPropertyDeclaration())
return matcher->match(this, _other);
return false;
}
bool ObjCMessageArgumentDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ObjCMessageArgumentDeclarationAST *_other = pattern->asObjCMessageArgumentDeclaration())
return matcher->match(this, _other);
return false;
}
bool ObjCMethodPrototypeAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ObjCMethodPrototypeAST *_other = pattern->asObjCMethodPrototype())
return matcher->match(this, _other);
return false;
}
bool ObjCMethodDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ObjCMethodDeclarationAST *_other = pattern->asObjCMethodDeclaration())
return matcher->match(this, _other);
return false;
}
bool ObjCSynthesizedPropertyAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ObjCSynthesizedPropertyAST *_other = pattern->asObjCSynthesizedProperty())
return matcher->match(this, _other);
return false;
}
bool ObjCSynthesizedPropertiesDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ObjCSynthesizedPropertiesDeclarationAST *_other = pattern->asObjCSynthesizedPropertiesDeclaration())
return matcher->match(this, _other);
return false;
}
bool ObjCDynamicPropertiesDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ObjCDynamicPropertiesDeclarationAST *_other = pattern->asObjCDynamicPropertiesDeclaration())
return matcher->match(this, _other);
return false;
}
bool ObjCFastEnumerationAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ObjCFastEnumerationAST *_other = pattern->asObjCFastEnumeration())
return matcher->match(this, _other);
return false;
}
bool ObjCSynchronizedStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
2009-11-13 11:35:19 +01:00
if (ObjCSynchronizedStatementAST *_other = pattern->asObjCSynchronizedStatement())
return matcher->match(this, _other);
return false;
}