ASTMatch0.cpp 29.4 KB
Newer Older
1
2
3
4
/**************************************************************************
**
** This file is part of Qt Creator
**
con's avatar
con committed
5
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
6
**
hjk's avatar
hjk committed
7
** Contact: Nokia Corporation (info@qt.nokia.com)
8
9
10
11
**
**
** GNU Lesser General Public License Usage
**
hjk's avatar
hjk committed
12
13
14
15
16
17
** 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.
18
**
con's avatar
con committed
19
** In addition, as a special exception, Nokia gives you certain additional
hjk's avatar
hjk committed
20
** rights. These rights are described in the Nokia Qt LGPL Exception
con's avatar
con committed
21
22
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
hjk's avatar
hjk committed
23
24
25
26
27
** Other Usage
**
** Alternatively, this file may be used in accordance with the terms and
** conditions contained in a signed written agreement between you and Nokia.
**
con's avatar
con committed
28
** If you have questions regarding the use of this file, please contact
Tobias Hunger's avatar
Tobias Hunger committed
29
** Nokia at info@qt.nokia.com.
30
31
32
**
**************************************************************************/

33
34
35
36
37
38
39
40
41
//
//  W A R N I N G
//  -------------
//
// This file is automatically generated.
// Changes will be lost.
//


42
43
44
45
46
#include "AST.h"
#include "ASTMatcher.h"

using namespace CPlusPlus;

47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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;
}

63
64
bool SimpleSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
65
66
67
    if (SimpleSpecifierAST *_other = pattern->asSimpleSpecifier())
        return matcher->match(this, _other);

68
69
70
71
72
    return false;
}

bool AttributeSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
73
74
75
    if (AttributeSpecifierAST *_other = pattern->asAttributeSpecifier())
        return matcher->match(this, _other);

76
77
78
79
80
    return false;
}

bool AttributeAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
81
82
83
    if (AttributeAST *_other = pattern->asAttribute())
        return matcher->match(this, _other);

84
85
86
87
88
    return false;
}

bool TypeofSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
89
90
91
    if (TypeofSpecifierAST *_other = pattern->asTypeofSpecifier())
        return matcher->match(this, _other);

92
93
94
95
96
    return false;
}

bool DeclaratorAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
97
98
99
    if (DeclaratorAST *_other = pattern->asDeclarator())
        return matcher->match(this, _other);

100
101
102
103
104
    return false;
}

bool SimpleDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
105
106
107
    if (SimpleDeclarationAST *_other = pattern->asSimpleDeclaration())
        return matcher->match(this, _other);

108
109
110
111
112
    return false;
}

bool EmptyDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
113
114
115
    if (EmptyDeclarationAST *_other = pattern->asEmptyDeclaration())
        return matcher->match(this, _other);

116
117
118
119
120
    return false;
}

bool AccessDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
121
122
123
    if (AccessDeclarationAST *_other = pattern->asAccessDeclaration())
        return matcher->match(this, _other);

124
125
126
    return false;
}

127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
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;
}

143
bool QtPropertyDeclarationItemAST::match0(AST *pattern, ASTMatcher *matcher)
144
{
145
    if (QtPropertyDeclarationItemAST *_other = pattern->asQtPropertyDeclarationItem())
146
147
148
149
150
        return matcher->match(this, _other);

    return false;
}

151
bool QtPropertyDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
152
{
153
    if (QtPropertyDeclarationAST *_other = pattern->asQtPropertyDeclaration())
154
155
156
157
158
        return matcher->match(this, _other);

    return false;
}

159
bool QtEnumDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
160
{
161
    if (QtEnumDeclarationAST *_other = pattern->asQtEnumDeclaration())
162
163
164
165
166
        return matcher->match(this, _other);

    return false;
}

167
bool QtFlagsDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
168
{
169
    if (QtFlagsDeclarationAST *_other = pattern->asQtFlagsDeclaration())
170
        return matcher->match(this, _other);
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186

    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);
187
188
189
190

    return false;
}

191
192
bool AsmDefinitionAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
193
194
195
    if (AsmDefinitionAST *_other = pattern->asAsmDefinition())
        return matcher->match(this, _other);

196
197
198
199
200
    return false;
}

bool BaseSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
201
202
203
    if (BaseSpecifierAST *_other = pattern->asBaseSpecifier())
        return matcher->match(this, _other);

204
205
206
    return false;
}

Roberto Raggi's avatar
Roberto Raggi committed
207
208
209
210
211
212
213
214
bool IdExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
    if (IdExpressionAST *_other = pattern->asIdExpression())
        return matcher->match(this, _other);

    return false;
}

215
216
217
218
219
220
221
222
bool CompoundExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
    if (CompoundExpressionAST *_other = pattern->asCompoundExpression())
        return matcher->match(this, _other);

    return false;
}

223
224
bool CompoundLiteralAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
225
226
227
    if (CompoundLiteralAST *_other = pattern->asCompoundLiteral())
        return matcher->match(this, _other);

228
229
230
231
232
    return false;
}

bool QtMethodAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
233
234
235
    if (QtMethodAST *_other = pattern->asQtMethod())
        return matcher->match(this, _other);

236
237
238
    return false;
}

239
240
241
242
243
244
245
246
bool QtMemberDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
    if (QtMemberDeclarationAST *_other = pattern->asQtMemberDeclaration())
        return matcher->match(this, _other);

    return false;
}

247
248
bool BinaryExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
249
250
251
    if (BinaryExpressionAST *_other = pattern->asBinaryExpression())
        return matcher->match(this, _other);

252
253
254
255
256
    return false;
}

bool CastExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
257
258
259
    if (CastExpressionAST *_other = pattern->asCastExpression())
        return matcher->match(this, _other);

260
261
262
263
264
    return false;
}

bool ClassSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
265
266
267
    if (ClassSpecifierAST *_other = pattern->asClassSpecifier())
        return matcher->match(this, _other);

268
269
270
271
272
    return false;
}

bool CaseStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
273
274
275
    if (CaseStatementAST *_other = pattern->asCaseStatement())
        return matcher->match(this, _other);

276
277
278
279
280
    return false;
}

bool CompoundStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
281
282
283
    if (CompoundStatementAST *_other = pattern->asCompoundStatement())
        return matcher->match(this, _other);

284
285
286
287
288
    return false;
}

bool ConditionAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
289
290
291
    if (ConditionAST *_other = pattern->asCondition())
        return matcher->match(this, _other);

292
293
294
295
296
    return false;
}

bool ConditionalExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
297
298
299
    if (ConditionalExpressionAST *_other = pattern->asConditionalExpression())
        return matcher->match(this, _other);

300
301
302
303
304
    return false;
}

bool CppCastExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
305
306
307
    if (CppCastExpressionAST *_other = pattern->asCppCastExpression())
        return matcher->match(this, _other);

308
309
310
311
312
    return false;
}

bool CtorInitializerAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
313
314
315
    if (CtorInitializerAST *_other = pattern->asCtorInitializer())
        return matcher->match(this, _other);

316
317
318
319
320
    return false;
}

bool DeclarationStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
321
322
323
    if (DeclarationStatementAST *_other = pattern->asDeclarationStatement())
        return matcher->match(this, _other);

324
325
326
327
328
    return false;
}

bool DeclaratorIdAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
329
330
331
    if (DeclaratorIdAST *_other = pattern->asDeclaratorId())
        return matcher->match(this, _other);

332
333
334
335
336
    return false;
}

bool NestedDeclaratorAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
337
338
339
    if (NestedDeclaratorAST *_other = pattern->asNestedDeclarator())
        return matcher->match(this, _other);

340
341
342
343
344
    return false;
}

bool FunctionDeclaratorAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
345
346
347
    if (FunctionDeclaratorAST *_other = pattern->asFunctionDeclarator())
        return matcher->match(this, _other);

348
349
350
351
352
    return false;
}

bool ArrayDeclaratorAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
353
354
355
    if (ArrayDeclaratorAST *_other = pattern->asArrayDeclarator())
        return matcher->match(this, _other);

356
357
358
359
360
    return false;
}

bool DeleteExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
361
362
363
    if (DeleteExpressionAST *_other = pattern->asDeleteExpression())
        return matcher->match(this, _other);

364
365
366
367
368
    return false;
}

bool DoStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
369
370
371
    if (DoStatementAST *_other = pattern->asDoStatement())
        return matcher->match(this, _other);

372
373
374
375
376
    return false;
}

bool NamedTypeSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
377
378
379
    if (NamedTypeSpecifierAST *_other = pattern->asNamedTypeSpecifier())
        return matcher->match(this, _other);

380
381
382
383
384
    return false;
}

bool ElaboratedTypeSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
385
386
387
    if (ElaboratedTypeSpecifierAST *_other = pattern->asElaboratedTypeSpecifier())
        return matcher->match(this, _other);

388
389
390
391
392
    return false;
}

bool EnumSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
393
394
395
    if (EnumSpecifierAST *_other = pattern->asEnumSpecifier())
        return matcher->match(this, _other);

396
397
398
399
400
    return false;
}

bool EnumeratorAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
401
402
403
    if (EnumeratorAST *_other = pattern->asEnumerator())
        return matcher->match(this, _other);

404
405
406
407
408
    return false;
}

bool ExceptionDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
409
410
411
    if (ExceptionDeclarationAST *_other = pattern->asExceptionDeclaration())
        return matcher->match(this, _other);

412
413
414
415
416
    return false;
}

bool ExceptionSpecificationAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
417
418
419
    if (ExceptionSpecificationAST *_other = pattern->asExceptionSpecification())
        return matcher->match(this, _other);

420
421
422
423
424
    return false;
}

bool ExpressionOrDeclarationStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
425
426
427
    if (ExpressionOrDeclarationStatementAST *_other = pattern->asExpressionOrDeclarationStatement())
        return matcher->match(this, _other);

428
429
430
431
432
    return false;
}

bool ExpressionStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
433
434
435
    if (ExpressionStatementAST *_other = pattern->asExpressionStatement())
        return matcher->match(this, _other);

436
437
438
439
440
    return false;
}

bool FunctionDefinitionAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
441
442
443
    if (FunctionDefinitionAST *_other = pattern->asFunctionDefinition())
        return matcher->match(this, _other);

444
445
446
447
448
    return false;
}

bool ForeachStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
449
450
451
    if (ForeachStatementAST *_other = pattern->asForeachStatement())
        return matcher->match(this, _other);

452
453
454
455
456
    return false;
}

bool ForStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
457
458
459
    if (ForStatementAST *_other = pattern->asForStatement())
        return matcher->match(this, _other);

460
461
462
463
464
    return false;
}

bool IfStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
465
466
467
    if (IfStatementAST *_other = pattern->asIfStatement())
        return matcher->match(this, _other);

468
469
470
471
472
    return false;
}

bool ArrayInitializerAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
473
474
475
    if (ArrayInitializerAST *_other = pattern->asArrayInitializer())
        return matcher->match(this, _other);

476
477
478
479
480
    return false;
}

bool LabeledStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
481
482
483
    if (LabeledStatementAST *_other = pattern->asLabeledStatement())
        return matcher->match(this, _other);

484
485
486
487
488
    return false;
}

bool LinkageBodyAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
489
490
491
    if (LinkageBodyAST *_other = pattern->asLinkageBody())
        return matcher->match(this, _other);

492
493
494
495
496
    return false;
}

bool LinkageSpecificationAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
497
498
499
    if (LinkageSpecificationAST *_other = pattern->asLinkageSpecification())
        return matcher->match(this, _other);

500
501
502
503
504
    return false;
}

bool MemInitializerAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
505
506
507
    if (MemInitializerAST *_other = pattern->asMemInitializer())
        return matcher->match(this, _other);

508
509
510
511
512
    return false;
}

bool NestedNameSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
513
514
515
    if (NestedNameSpecifierAST *_other = pattern->asNestedNameSpecifier())
        return matcher->match(this, _other);

516
517
518
519
520
    return false;
}

bool QualifiedNameAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
521
522
523
    if (QualifiedNameAST *_other = pattern->asQualifiedName())
        return matcher->match(this, _other);

524
525
526
527
528
    return false;
}

bool OperatorFunctionIdAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
529
530
531
    if (OperatorFunctionIdAST *_other = pattern->asOperatorFunctionId())
        return matcher->match(this, _other);

532
533
534
535
536
    return false;
}

bool ConversionFunctionIdAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
537
538
539
    if (ConversionFunctionIdAST *_other = pattern->asConversionFunctionId())
        return matcher->match(this, _other);

540
541
542
543
544
    return false;
}

bool SimpleNameAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
545
546
547
    if (SimpleNameAST *_other = pattern->asSimpleName())
        return matcher->match(this, _other);

548
549
550
551
552
    return false;
}

bool DestructorNameAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
553
554
555
    if (DestructorNameAST *_other = pattern->asDestructorName())
        return matcher->match(this, _other);

556
557
558
559
560
    return false;
}

bool TemplateIdAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
561
562
563
    if (TemplateIdAST *_other = pattern->asTemplateId())
        return matcher->match(this, _other);

564
565
566
567
568
    return false;
}

bool NamespaceAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
569
570
571
    if (NamespaceAST *_other = pattern->asNamespace())
        return matcher->match(this, _other);

572
573
574
575
576
    return false;
}

bool NamespaceAliasDefinitionAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
577
578
579
    if (NamespaceAliasDefinitionAST *_other = pattern->asNamespaceAliasDefinition())
        return matcher->match(this, _other);

580
581
582
583
584
    return false;
}

bool NewPlacementAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
585
586
587
    if (NewPlacementAST *_other = pattern->asNewPlacement())
        return matcher->match(this, _other);

588
589
590
591
592
    return false;
}

bool NewArrayDeclaratorAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
593
594
595
    if (NewArrayDeclaratorAST *_other = pattern->asNewArrayDeclarator())
        return matcher->match(this, _other);

596
597
598
599
600
    return false;
}

bool NewExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
601
602
603
    if (NewExpressionAST *_other = pattern->asNewExpression())
        return matcher->match(this, _other);

604
605
606
607
608
    return false;
}

bool NewInitializerAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
609
610
611
    if (NewInitializerAST *_other = pattern->asNewInitializer())
        return matcher->match(this, _other);

612
613
614
615
616
    return false;
}

bool NewTypeIdAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
617
618
619
    if (NewTypeIdAST *_other = pattern->asNewTypeId())
        return matcher->match(this, _other);

620
621
622
623
624
    return false;
}

bool OperatorAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
625
626
627
    if (OperatorAST *_other = pattern->asOperator())
        return matcher->match(this, _other);

628
629
630
631
632
    return false;
}

bool ParameterDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
633
634
635
    if (ParameterDeclarationAST *_other = pattern->asParameterDeclaration())
        return matcher->match(this, _other);

636
637
638
639
640
    return false;
}

bool ParameterDeclarationClauseAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
641
642
643
    if (ParameterDeclarationClauseAST *_other = pattern->asParameterDeclarationClause())
        return matcher->match(this, _other);

644
645
646
647
648
    return false;
}

bool CallAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
649
650
651
    if (CallAST *_other = pattern->asCall())
        return matcher->match(this, _other);

652
653
654
655
656
    return false;
}

bool ArrayAccessAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
657
658
659
    if (ArrayAccessAST *_other = pattern->asArrayAccess())
        return matcher->match(this, _other);

660
661
662
663
664
    return false;
}

bool PostIncrDecrAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
665
666
667
    if (PostIncrDecrAST *_other = pattern->asPostIncrDecr())
        return matcher->match(this, _other);

668
669
670
671
672
    return false;
}

bool MemberAccessAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
673
674
675
    if (MemberAccessAST *_other = pattern->asMemberAccess())
        return matcher->match(this, _other);

676
677
678
679
680
    return false;
}

bool TypeidExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
681
682
683
    if (TypeidExpressionAST *_other = pattern->asTypeidExpression())
        return matcher->match(this, _other);

684
685
686
687
688
    return false;
}

bool TypenameCallExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
689
690
691
    if (TypenameCallExpressionAST *_other = pattern->asTypenameCallExpression())
        return matcher->match(this, _other);

692
693
694
695
696
    return false;
}

bool TypeConstructorCallAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
697
698
699
    if (TypeConstructorCallAST *_other = pattern->asTypeConstructorCall())
        return matcher->match(this, _other);

700
701
702
703
704
    return false;
}

bool PointerToMemberAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
705
706
707
    if (PointerToMemberAST *_other = pattern->asPointerToMember())
        return matcher->match(this, _other);

708
709
710
711
712
    return false;
}

bool PointerAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
713
714
715
    if (PointerAST *_other = pattern->asPointer())
        return matcher->match(this, _other);

716
717
718
719
720
    return false;
}

bool ReferenceAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
721
722
723
    if (ReferenceAST *_other = pattern->asReference())
        return matcher->match(this, _other);

724
725
726
727
728
    return false;
}

bool BreakStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
729
730
731
    if (BreakStatementAST *_other = pattern->asBreakStatement())
        return matcher->match(this, _other);

732
733
734
735
736
    return false;
}

bool ContinueStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
737
738
739
    if (ContinueStatementAST *_other = pattern->asContinueStatement())
        return matcher->match(this, _other);

740
741
742
743
744
    return false;
}

bool GotoStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
745
746
747
    if (GotoStatementAST *_other = pattern->asGotoStatement())
        return matcher->match(this, _other);

748
749
750
751
752
    return false;
}

bool ReturnStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
753
754
755
    if (ReturnStatementAST *_other = pattern->asReturnStatement())
        return matcher->match(this, _other);

756
757
758
759
760
    return false;
}

bool SizeofExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
761
762
763
    if (SizeofExpressionAST *_other = pattern->asSizeofExpression())
        return matcher->match(this, _other);

764
765
766
767
768
    return false;
}

bool NumericLiteralAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
769
770
771
    if (NumericLiteralAST *_other = pattern->asNumericLiteral())
        return matcher->match(this, _other);

772
773
774
775
776
    return false;
}

bool BoolLiteralAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
777
778
779
    if (BoolLiteralAST *_other = pattern->asBoolLiteral())
        return matcher->match(this, _other);

780
781
782
783
784
    return false;
}

bool ThisExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
785
786
787
    if (ThisExpressionAST *_other = pattern->asThisExpression())
        return matcher->match(this, _other);

788
789
790
791
792
    return false;
}

bool NestedExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
793
794
795
    if (NestedExpressionAST *_other = pattern->asNestedExpression())
        return matcher->match(this, _other);

796
797
798
799
800
    return false;
}

bool StringLiteralAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
801
802
803
    if (StringLiteralAST *_other = pattern->asStringLiteral())
        return matcher->match(this, _other);

804
805
806
807
808
    return false;
}

bool SwitchStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
809
810
811
    if (SwitchStatementAST *_other = pattern->asSwitchStatement())
        return matcher->match(this, _other);

812
813
814
815
816
    return false;
}

bool TemplateDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
817
818
819
    if (TemplateDeclarationAST *_other = pattern->asTemplateDeclaration())
        return matcher->match(this, _other);

820
821
822
823
824
    return false;
}

bool ThrowExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
825
826
827
    if (ThrowExpressionAST *_other = pattern->asThrowExpression())
        return matcher->match(this, _other);

828
829
830
831
832
    return false;
}

bool TranslationUnitAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
833
834
835
    if (TranslationUnitAST *_other = pattern->asTranslationUnit())
        return matcher->match(this, _other);

836
837
838
839
840
    return false;
}

bool TryBlockStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
841
842
843
    if (TryBlockStatementAST *_other = pattern->asTryBlockStatement())
        return matcher->match(this, _other);

844
845
846
847
848
    return false;
}

bool CatchClauseAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
849
850
851
    if (CatchClauseAST *_other = pattern->asCatchClause())
        return matcher->match(this, _other);

852
853
854
855
856
    return false;
}

bool TypeIdAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
857
858
859
    if (TypeIdAST *_other = pattern->asTypeId())
        return matcher->match(this, _other);

860
861
862
863
864
    return false;
}

bool TypenameTypeParameterAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
865
866
867
    if (TypenameTypeParameterAST *_other = pattern->asTypenameTypeParameter())
        return matcher->match(this, _other);

868
869
870
871
872
    return false;
}

bool TemplateTypeParameterAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
873
874
875
    if (TemplateTypeParameterAST *_other = pattern->asTemplateTypeParameter())
        return matcher->match(this, _other);

876
877
878
879
880
    return false;
}

bool UnaryExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
881
882
883
    if (UnaryExpressionAST *_other = pattern->asUnaryExpression())
        return matcher->match(this, _other);

884
885
886
887
888
    return false;
}

bool UsingAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
889
890
891
    if (UsingAST *_other = pattern->asUsing())
        return matcher->match(this, _other);

892
893
894
895
896
    return false;
}

bool UsingDirectiveAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
897
898
899
    if (UsingDirectiveAST *_other = pattern->asUsingDirective())
        return matcher->match(this, _other);

900
901
902
903
904
    return false;
}

bool WhileStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
905
906
907
    if (WhileStatementAST *_other = pattern->asWhileStatement())
        return matcher->match(this, _other);

908
909
910
911
912
    return false;
}

bool ObjCClassForwardDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
913
914
915
    if (ObjCClassForwardDeclarationAST *_other = pattern->asObjCClassForwardDeclaration())
        return matcher->match(this, _other);

916
917
918
919
920
    return false;
}

bool ObjCClassDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
921
922
923
    if (ObjCClassDeclarationAST *_other = pattern->asObjCClassDeclaration())
        return matcher->match(this, _other);

924
925
926
927
928
    return false;
}

bool ObjCProtocolForwardDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
929
930
931
    if (ObjCProtocolForwardDeclarationAST *_other = pattern->asObjCProtocolForwardDeclaration())
        return matcher->match(this, _other);

932
933
934
935
936
    return false;
}

bool ObjCProtocolDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
937
938
939
    if (ObjCProtocolDeclarationAST *_other = pattern->asObjCProtocolDeclaration())
        return matcher->match(this, _other);

940
941
942
943
944
    return false;
}

bool ObjCProtocolRefsAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
945
946
947
    if (ObjCProtocolRefsAST *_other = pattern->asObjCProtocolRefs())
        return matcher->match(this, _other);

948
949
950
951
952
    return false;
}

bool ObjCMessageArgumentAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
953
954
955
    if (ObjCMessageArgumentAST *_other = pattern->asObjCMessageArgument())
        return matcher->match(this, _other);

956
957
958
959
960
    return false;
}

bool ObjCMessageExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
961
962
963
    if (ObjCMessageExpressionAST *_other = pattern->asObjCMessageExpression())
        return matcher->match(this, _other);

964
965
966
967
968
    return false;
}

bool ObjCProtocolExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
969
970
971
    if (ObjCProtocolExpressionAST *_other = pattern->asObjCProtocolExpression())
        return matcher->match(this, _other);

972
973
974
975
976
    return false;
}

bool ObjCTypeNameAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
977
978
979
    if (ObjCTypeNameAST *_other = pattern->asObjCTypeName())
        return matcher->match(this, _other);

980
981
982
983
984
    return false;
}

bool ObjCEncodeExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
985
986
987
    if (ObjCEncodeExpressionAST *_other = pattern->asObjCEncodeExpression())
        return matcher->match(this, _other);

988
989
990
991
992
    return false;
}

bool ObjCSelectorExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
993
994
995
    if (ObjCSelectorExpressionAST *_other = pattern->asObjCSelectorExpression())
        return matcher->match(this, _other);

996
997
998
999
1000
    return false;
}

bool ObjCInstanceVariablesDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
1001
1002
1003
    if (ObjCInstanceVariablesDeclarationAST *_other = pattern->asObjCInstanceVariablesDeclaration())
        return matcher->match(this, _other);

1004
1005
1006
1007
1008
    return false;
}

bool ObjCVisibilityDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
1009
1010
1011
    if (ObjCVisibilityDeclarationAST *_other = pattern->asObjCVisibilityDeclaration())
        return matcher->match(this, _other);

1012
1013
1014
1015
1016
    return false;
}

bool ObjCPropertyAttributeAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
1017
1018
1019
    if (ObjCPropertyAttributeAST *_other = pattern->asObjCPropertyAttribute())
        return matcher->match(this, _other);

1020
1021
1022
1023
1024
    return false;
}

bool ObjCPropertyDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
1025
1026
1027
    if (ObjCPropertyDeclarationAST *_other = pattern->asObjCPropertyDeclaration())
        return matcher->match(this, _other);

1028
1029
1030
1031
1032
    return false;
}

bool ObjCMessageArgumentDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
1033
1034
1035
    if (ObjCMessageArgumentDeclarationAST *_other = pattern->asObjCMessageArgumentDeclaration())
        return matcher->match(this, _other);

1036
1037
1038
1039
1040
    return false;
}

bool ObjCMethodPrototypeAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
1041
1042
1043
    if (ObjCMethodPrototypeAST *_other = pattern->asObjCMethodPrototype())
        return matcher->match(this, _other);

1044
1045
1046
1047
1048
    return false;
}

bool ObjCMethodDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
1049
1050
1051
    if (ObjCMethodDeclarationAST *_other = pattern->asObjCMethodDeclaration())
        return matcher->match(this, _other);

1052
1053
1054
1055
1056
    return false;
}

bool ObjCSynthesizedPropertyAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
1057
1058
1059
    if (ObjCSynthesizedPropertyAST *_other = pattern->asObjCSynthesizedProperty())
        return matcher->match(this, _other);

1060
1061
1062
1063
1064
    return false;
}

bool ObjCSynthesizedPropertiesDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
1065
1066
1067
    if (ObjCSynthesizedPropertiesDeclarationAST *_other = pattern->asObjCSynthesizedPropertiesDeclaration())
        return matcher->match(this, _other);

1068
1069
1070
1071
1072
    return false;
}

bool ObjCDynamicPropertiesDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
1073
1074
1075
    if (ObjCDynamicPropertiesDeclarationAST *_other = pattern->asObjCDynamicPropertiesDeclaration())
        return matcher->match(this, _other);

1076
1077
1078
1079
1080
    return false;
}

bool ObjCFastEnumerationAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
1081
1082
1083
    if (ObjCFastEnumerationAST *_other = pattern->asObjCFastEnumeration())
        return matcher->match(this, _other);

1084
1085
1086
1087
1088
    return false;
}

bool ObjCSynchronizedStatementAST::match0(AST *pattern, ASTMatcher *matcher)
{
Roberto Raggi's avatar
Roberto Raggi committed
1089
1090
1091
    if (ObjCSynchronizedStatementAST *_other = pattern->asObjCSynchronizedStatement())
        return matcher->match(this, _other);

1092
1093
1094
    return false;
}

1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
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;
}

Roberto Raggi's avatar
Roberto Raggi committed
1143
1144
1145
1146
1147
1148
1149
1150
bool BracedInitializerAST::match0(AST *pattern, ASTMatcher *matcher)
{
    if (BracedInitializerAST *_other = pattern->asBracedInitializer())
        return matcher->match(this, _other);

    return false;
}