ASTPatternBuilder.h 46.3 KB
Newer Older
Roberto Raggi's avatar
Roberto Raggi committed
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).
Roberto Raggi's avatar
Roberto Raggi committed
6
**
hjk's avatar
hjk committed
7
** Contact: Nokia Corporation (info@qt.nokia.com)
Roberto Raggi's avatar
Roberto Raggi committed
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.
Roberto Raggi's avatar
Roberto Raggi committed
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.
Roberto Raggi's avatar
Roberto Raggi committed
30
31
**
**************************************************************************/
32
33
34
35
36
37
38
39
40

//
//  W A R N I N G
//  -------------
//
// This file is automatically generated.
// Changes will be lost.
//

Roberto Raggi's avatar
Roberto Raggi committed
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef CPLUSPLUS_AST_PATTERN_BUILDER_H
#define CPLUSPLUS_AST_PATTERN_BUILDER_H

#include "CPlusPlusForwardDeclarations.h"
#include "AST.h"
#include "MemoryPool.h"

namespace CPlusPlus {

class CPLUSPLUS_EXPORT ASTPatternBuilder
{
    MemoryPool pool;

public:
55
    ASTPatternBuilder() {}
Roberto Raggi's avatar
Roberto Raggi committed
56

57
    void reset() { pool.reset(); }
Roberto Raggi's avatar
Roberto Raggi committed
58

59
60
61
62
63
64
65
66
67
68
69
70
71
    ObjCSelectorArgumentAST *ObjCSelectorArgument()
    {
        ObjCSelectorArgumentAST *__ast = new (&pool) ObjCSelectorArgumentAST;
        return __ast;
    }

    ObjCSelectorAST *ObjCSelector(ObjCSelectorArgumentListAST *selector_argument_list = 0)
    {
        ObjCSelectorAST *__ast = new (&pool) ObjCSelectorAST;
        __ast->selector_argument_list = selector_argument_list;
        return __ast;
    }

Roberto Raggi's avatar
Roberto Raggi committed
72
73
74
75
76
77
    SimpleSpecifierAST *SimpleSpecifier()
    {
        SimpleSpecifierAST *__ast = new (&pool) SimpleSpecifierAST;
        return __ast;
    }

78
    AttributeSpecifierAST *AttributeSpecifier(AttributeListAST *attribute_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
79
80
    {
        AttributeSpecifierAST *__ast = new (&pool) AttributeSpecifierAST;
81
        __ast->attribute_list = attribute_list;
Roberto Raggi's avatar
Roberto Raggi committed
82
83
84
        return __ast;
    }

85
    AttributeAST *Attribute(ExpressionListAST *expression_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
86
87
    {
        AttributeAST *__ast = new (&pool) AttributeAST;
88
        __ast->expression_list = expression_list;
Roberto Raggi's avatar
Roberto Raggi committed
89
90
91
92
93
94
95
96
97
98
        return __ast;
    }

    TypeofSpecifierAST *TypeofSpecifier(ExpressionAST *expression = 0)
    {
        TypeofSpecifierAST *__ast = new (&pool) TypeofSpecifierAST;
        __ast->expression = expression;
        return __ast;
    }

99
    DeclaratorAST *Declarator(SpecifierListAST *attribute_list = 0, PtrOperatorListAST *ptr_operator_list = 0, CoreDeclaratorAST *core_declarator = 0, PostfixDeclaratorListAST *postfix_declarator_list = 0, SpecifierListAST *post_attribute_list = 0, ExpressionAST *initializer = 0)
Roberto Raggi's avatar
Roberto Raggi committed
100
101
    {
        DeclaratorAST *__ast = new (&pool) DeclaratorAST;
102
103
        __ast->attribute_list = attribute_list;
        __ast->ptr_operator_list = ptr_operator_list;
Roberto Raggi's avatar
Roberto Raggi committed
104
        __ast->core_declarator = core_declarator;
105
106
        __ast->postfix_declarator_list = postfix_declarator_list;
        __ast->post_attribute_list = post_attribute_list;
Roberto Raggi's avatar
Roberto Raggi committed
107
108
109
110
        __ast->initializer = initializer;
        return __ast;
    }

111
    SimpleDeclarationAST *SimpleDeclaration(SpecifierListAST *decl_specifier_list = 0, DeclaratorListAST *declarator_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
112
113
    {
        SimpleDeclarationAST *__ast = new (&pool) SimpleDeclarationAST;
114
115
        __ast->decl_specifier_list = decl_specifier_list;
        __ast->declarator_list = declarator_list;
Roberto Raggi's avatar
Roberto Raggi committed
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
        return __ast;
    }

    EmptyDeclarationAST *EmptyDeclaration()
    {
        EmptyDeclarationAST *__ast = new (&pool) EmptyDeclarationAST;
        return __ast;
    }

    AccessDeclarationAST *AccessDeclaration()
    {
        AccessDeclarationAST *__ast = new (&pool) AccessDeclarationAST;
        return __ast;
    }

131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
    QtObjectTagAST *QtObjectTag()
    {
        QtObjectTagAST *__ast = new (&pool) QtObjectTagAST;
        return __ast;
    }

    QtPrivateSlotAST *QtPrivateSlot(SpecifierListAST *type_specifier_list = 0, DeclaratorAST *declarator = 0)
    {
        QtPrivateSlotAST *__ast = new (&pool) QtPrivateSlotAST;
        __ast->type_specifier_list = type_specifier_list;
        __ast->declarator = declarator;
        return __ast;
    }

    QtPropertyDeclarationItemAST *QtPropertyDeclarationItem(ExpressionAST *expression = 0)
    {
        QtPropertyDeclarationItemAST *__ast = new (&pool) QtPropertyDeclarationItemAST;
        __ast->expression = expression;
        return __ast;
    }

    QtPropertyDeclarationAST *QtPropertyDeclaration(ExpressionAST *expression = 0, ExpressionAST *type_id = 0, NameAST *property_name = 0, QtPropertyDeclarationItemListAST *property_declaration_item_list = 0)
    {
        QtPropertyDeclarationAST *__ast = new (&pool) QtPropertyDeclarationAST;
        __ast->expression = expression;
        __ast->type_id = type_id;
        __ast->property_name = property_name;
        __ast->property_declaration_item_list = property_declaration_item_list;
        return __ast;
    }

    QtEnumDeclarationAST *QtEnumDeclaration(NameListAST *enumerator_list = 0)
    {
        QtEnumDeclarationAST *__ast = new (&pool) QtEnumDeclarationAST;
        __ast->enumerator_list = enumerator_list;
        return __ast;
    }

    QtFlagsDeclarationAST *QtFlagsDeclaration(NameListAST *flag_enums_list = 0)
    {
        QtFlagsDeclarationAST *__ast = new (&pool) QtFlagsDeclarationAST;
        __ast->flag_enums_list = flag_enums_list;
        return __ast;
    }

    QtInterfaceNameAST *QtInterfaceName(NameAST *interface_name = 0, NameListAST *constraint_list = 0)
    {
        QtInterfaceNameAST *__ast = new (&pool) QtInterfaceNameAST;
        __ast->interface_name = interface_name;
        __ast->constraint_list = constraint_list;
        return __ast;
    }

    QtInterfacesDeclarationAST *QtInterfacesDeclaration(QtInterfaceNameListAST *interface_name_list = 0)
    {
        QtInterfacesDeclarationAST *__ast = new (&pool) QtInterfacesDeclarationAST;
        __ast->interface_name_list = interface_name_list;
        return __ast;
    }

Roberto Raggi's avatar
Roberto Raggi committed
191
192
193
194
195
196
197
198
199
200
201
202
203
    AsmDefinitionAST *AsmDefinition()
    {
        AsmDefinitionAST *__ast = new (&pool) AsmDefinitionAST;
        return __ast;
    }

    BaseSpecifierAST *BaseSpecifier(NameAST *name = 0)
    {
        BaseSpecifierAST *__ast = new (&pool) BaseSpecifierAST;
        __ast->name = name;
        return __ast;
    }

204
205
206
207
208
209
210
211
212
213
214
215
216
217
    IdExpressionAST *IdExpression(NameAST *name = 0)
    {
        IdExpressionAST *__ast = new (&pool) IdExpressionAST;
        __ast->name = name;
        return __ast;
    }

    CompoundExpressionAST *CompoundExpression(CompoundStatementAST *statement = 0)
    {
        CompoundExpressionAST *__ast = new (&pool) CompoundExpressionAST;
        __ast->statement = statement;
        return __ast;
    }

Roberto Raggi's avatar
Roberto Raggi committed
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
    CompoundLiteralAST *CompoundLiteral(ExpressionAST *type_id = 0, ExpressionAST *initializer = 0)
    {
        CompoundLiteralAST *__ast = new (&pool) CompoundLiteralAST;
        __ast->type_id = type_id;
        __ast->initializer = initializer;
        return __ast;
    }

    QtMethodAST *QtMethod(DeclaratorAST *declarator = 0)
    {
        QtMethodAST *__ast = new (&pool) QtMethodAST;
        __ast->declarator = declarator;
        return __ast;
    }

233
234
235
236
237
238
239
    QtMemberDeclarationAST *QtMemberDeclaration(ExpressionAST *type_id = 0)
    {
        QtMemberDeclarationAST *__ast = new (&pool) QtMemberDeclarationAST;
        __ast->type_id = type_id;
        return __ast;
    }

Roberto Raggi's avatar
Roberto Raggi committed
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
    BinaryExpressionAST *BinaryExpression(ExpressionAST *left_expression = 0, ExpressionAST *right_expression = 0)
    {
        BinaryExpressionAST *__ast = new (&pool) BinaryExpressionAST;
        __ast->left_expression = left_expression;
        __ast->right_expression = right_expression;
        return __ast;
    }

    CastExpressionAST *CastExpression(ExpressionAST *type_id = 0, ExpressionAST *expression = 0)
    {
        CastExpressionAST *__ast = new (&pool) CastExpressionAST;
        __ast->type_id = type_id;
        __ast->expression = expression;
        return __ast;
    }

256
    ClassSpecifierAST *ClassSpecifier(SpecifierListAST *attribute_list = 0, NameAST *name = 0, BaseSpecifierListAST *base_clause_list = 0, DeclarationListAST *member_specifier_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
257
258
    {
        ClassSpecifierAST *__ast = new (&pool) ClassSpecifierAST;
259
        __ast->attribute_list = attribute_list;
Roberto Raggi's avatar
Roberto Raggi committed
260
        __ast->name = name;
261
262
        __ast->base_clause_list = base_clause_list;
        __ast->member_specifier_list = member_specifier_list;
Roberto Raggi's avatar
Roberto Raggi committed
263
264
265
266
267
268
269
270
271
272
273
        return __ast;
    }

    CaseStatementAST *CaseStatement(ExpressionAST *expression = 0, StatementAST *statement = 0)
    {
        CaseStatementAST *__ast = new (&pool) CaseStatementAST;
        __ast->expression = expression;
        __ast->statement = statement;
        return __ast;
    }

274
    CompoundStatementAST *CompoundStatement(StatementListAST *statement_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
275
276
    {
        CompoundStatementAST *__ast = new (&pool) CompoundStatementAST;
277
        __ast->statement_list = statement_list;
Roberto Raggi's avatar
Roberto Raggi committed
278
279
280
        return __ast;
    }

281
    ConditionAST *Condition(SpecifierListAST *type_specifier_list = 0, DeclaratorAST *declarator = 0)
Roberto Raggi's avatar
Roberto Raggi committed
282
283
    {
        ConditionAST *__ast = new (&pool) ConditionAST;
284
        __ast->type_specifier_list = type_specifier_list;
Roberto Raggi's avatar
Roberto Raggi committed
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
        __ast->declarator = declarator;
        return __ast;
    }

    ConditionalExpressionAST *ConditionalExpression(ExpressionAST *condition = 0, ExpressionAST *left_expression = 0, ExpressionAST *right_expression = 0)
    {
        ConditionalExpressionAST *__ast = new (&pool) ConditionalExpressionAST;
        __ast->condition = condition;
        __ast->left_expression = left_expression;
        __ast->right_expression = right_expression;
        return __ast;
    }

    CppCastExpressionAST *CppCastExpression(ExpressionAST *type_id = 0, ExpressionAST *expression = 0)
    {
        CppCastExpressionAST *__ast = new (&pool) CppCastExpressionAST;
        __ast->type_id = type_id;
        __ast->expression = expression;
        return __ast;
    }

306
    CtorInitializerAST *CtorInitializer(MemInitializerListAST *member_initializer_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
307
308
    {
        CtorInitializerAST *__ast = new (&pool) CtorInitializerAST;
309
        __ast->member_initializer_list = member_initializer_list;
Roberto Raggi's avatar
Roberto Raggi committed
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
        return __ast;
    }

    DeclarationStatementAST *DeclarationStatement(DeclarationAST *declaration = 0)
    {
        DeclarationStatementAST *__ast = new (&pool) DeclarationStatementAST;
        __ast->declaration = declaration;
        return __ast;
    }

    DeclaratorIdAST *DeclaratorId(NameAST *name = 0)
    {
        DeclaratorIdAST *__ast = new (&pool) DeclaratorIdAST;
        __ast->name = name;
        return __ast;
    }

    NestedDeclaratorAST *NestedDeclarator(DeclaratorAST *declarator = 0)
    {
        NestedDeclaratorAST *__ast = new (&pool) NestedDeclaratorAST;
        __ast->declarator = declarator;
        return __ast;
    }

334
    FunctionDeclaratorAST *FunctionDeclarator(ParameterDeclarationClauseAST *parameter_declaration_clause = 0, SpecifierListAST *cv_qualifier_list = 0, ExceptionSpecificationAST *exception_specification = 0, TrailingReturnTypeAST *trailing_return_type = 0, ExpressionAST *as_cpp_initializer = 0)
Roberto Raggi's avatar
Roberto Raggi committed
335
336
    {
        FunctionDeclaratorAST *__ast = new (&pool) FunctionDeclaratorAST;
337
338
        __ast->parameter_declaration_clause = parameter_declaration_clause;
        __ast->cv_qualifier_list = cv_qualifier_list;
Roberto Raggi's avatar
Roberto Raggi committed
339
        __ast->exception_specification = exception_specification;
340
        __ast->trailing_return_type = trailing_return_type;
Roberto Raggi's avatar
Roberto Raggi committed
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
        __ast->as_cpp_initializer = as_cpp_initializer;
        return __ast;
    }

    ArrayDeclaratorAST *ArrayDeclarator(ExpressionAST *expression = 0)
    {
        ArrayDeclaratorAST *__ast = new (&pool) ArrayDeclaratorAST;
        __ast->expression = expression;
        return __ast;
    }

    DeleteExpressionAST *DeleteExpression(ExpressionAST *expression = 0)
    {
        DeleteExpressionAST *__ast = new (&pool) DeleteExpressionAST;
        __ast->expression = expression;
        return __ast;
    }

    DoStatementAST *DoStatement(StatementAST *statement = 0, ExpressionAST *expression = 0)
    {
        DoStatementAST *__ast = new (&pool) DoStatementAST;
        __ast->statement = statement;
        __ast->expression = expression;
        return __ast;
    }

    NamedTypeSpecifierAST *NamedTypeSpecifier(NameAST *name = 0)
    {
        NamedTypeSpecifierAST *__ast = new (&pool) NamedTypeSpecifierAST;
        __ast->name = name;
        return __ast;
    }

374
    ElaboratedTypeSpecifierAST *ElaboratedTypeSpecifier(SpecifierListAST *attribute_list = 0, NameAST *name = 0)
Roberto Raggi's avatar
Roberto Raggi committed
375
376
    {
        ElaboratedTypeSpecifierAST *__ast = new (&pool) ElaboratedTypeSpecifierAST;
377
        __ast->attribute_list = attribute_list;
Roberto Raggi's avatar
Roberto Raggi committed
378
379
380
381
        __ast->name = name;
        return __ast;
    }

382
    EnumSpecifierAST *EnumSpecifier(NameAST *name = 0, EnumeratorListAST *enumerator_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
383
384
385
    {
        EnumSpecifierAST *__ast = new (&pool) EnumSpecifierAST;
        __ast->name = name;
386
        __ast->enumerator_list = enumerator_list;
Roberto Raggi's avatar
Roberto Raggi committed
387
388
389
390
391
392
393
394
395
396
        return __ast;
    }

    EnumeratorAST *Enumerator(ExpressionAST *expression = 0)
    {
        EnumeratorAST *__ast = new (&pool) EnumeratorAST;
        __ast->expression = expression;
        return __ast;
    }

397
    ExceptionDeclarationAST *ExceptionDeclaration(SpecifierListAST *type_specifier_list = 0, DeclaratorAST *declarator = 0)
Roberto Raggi's avatar
Roberto Raggi committed
398
399
    {
        ExceptionDeclarationAST *__ast = new (&pool) ExceptionDeclarationAST;
400
        __ast->type_specifier_list = type_specifier_list;
Roberto Raggi's avatar
Roberto Raggi committed
401
402
403
404
        __ast->declarator = declarator;
        return __ast;
    }

405
    ExceptionSpecificationAST *ExceptionSpecification(ExpressionListAST *type_id_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
406
407
    {
        ExceptionSpecificationAST *__ast = new (&pool) ExceptionSpecificationAST;
408
        __ast->type_id_list = type_id_list;
Roberto Raggi's avatar
Roberto Raggi committed
409
410
411
        return __ast;
    }

Roberto Raggi's avatar
Roberto Raggi committed
412
    ExpressionOrDeclarationStatementAST *ExpressionOrDeclarationStatement(ExpressionStatementAST *expression = 0, DeclarationStatementAST *declaration = 0)
Roberto Raggi's avatar
Roberto Raggi committed
413
414
415
416
417
418
419
420
421
422
423
424
425
426
    {
        ExpressionOrDeclarationStatementAST *__ast = new (&pool) ExpressionOrDeclarationStatementAST;
        __ast->expression = expression;
        __ast->declaration = declaration;
        return __ast;
    }

    ExpressionStatementAST *ExpressionStatement(ExpressionAST *expression = 0)
    {
        ExpressionStatementAST *__ast = new (&pool) ExpressionStatementAST;
        __ast->expression = expression;
        return __ast;
    }

427
    FunctionDefinitionAST *FunctionDefinition(SpecifierListAST *decl_specifier_list = 0, DeclaratorAST *declarator = 0, CtorInitializerAST *ctor_initializer = 0, StatementAST *function_body = 0)
Roberto Raggi's avatar
Roberto Raggi committed
428
429
    {
        FunctionDefinitionAST *__ast = new (&pool) FunctionDefinitionAST;
430
        __ast->decl_specifier_list = decl_specifier_list;
Roberto Raggi's avatar
Roberto Raggi committed
431
432
433
434
435
436
        __ast->declarator = declarator;
        __ast->ctor_initializer = ctor_initializer;
        __ast->function_body = function_body;
        return __ast;
    }

437
    ForeachStatementAST *ForeachStatement(SpecifierListAST *type_specifier_list = 0, DeclaratorAST *declarator = 0, ExpressionAST *initializer = 0, ExpressionAST *expression = 0, StatementAST *statement = 0)
Roberto Raggi's avatar
Roberto Raggi committed
438
439
    {
        ForeachStatementAST *__ast = new (&pool) ForeachStatementAST;
440
        __ast->type_specifier_list = type_specifier_list;
Roberto Raggi's avatar
Roberto Raggi committed
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
        __ast->declarator = declarator;
        __ast->initializer = initializer;
        __ast->expression = expression;
        __ast->statement = statement;
        return __ast;
    }

    ForStatementAST *ForStatement(StatementAST *initializer = 0, ExpressionAST *condition = 0, ExpressionAST *expression = 0, StatementAST *statement = 0)
    {
        ForStatementAST *__ast = new (&pool) ForStatementAST;
        __ast->initializer = initializer;
        __ast->condition = condition;
        __ast->expression = expression;
        __ast->statement = statement;
        return __ast;
    }

    IfStatementAST *IfStatement(ExpressionAST *condition = 0, StatementAST *statement = 0, StatementAST *else_statement = 0)
    {
        IfStatementAST *__ast = new (&pool) IfStatementAST;
        __ast->condition = condition;
        __ast->statement = statement;
        __ast->else_statement = else_statement;
        return __ast;
    }

467
    ArrayInitializerAST *ArrayInitializer(ExpressionListAST *expression_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
468
469
    {
        ArrayInitializerAST *__ast = new (&pool) ArrayInitializerAST;
470
        __ast->expression_list = expression_list;
Roberto Raggi's avatar
Roberto Raggi committed
471
472
473
474
475
476
477
478
479
480
        return __ast;
    }

    LabeledStatementAST *LabeledStatement(StatementAST *statement = 0)
    {
        LabeledStatementAST *__ast = new (&pool) LabeledStatementAST;
        __ast->statement = statement;
        return __ast;
    }

481
    LinkageBodyAST *LinkageBody(DeclarationListAST *declaration_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
482
483
    {
        LinkageBodyAST *__ast = new (&pool) LinkageBodyAST;
484
        __ast->declaration_list = declaration_list;
Roberto Raggi's avatar
Roberto Raggi committed
485
486
487
488
489
490
491
492
493
494
        return __ast;
    }

    LinkageSpecificationAST *LinkageSpecification(DeclarationAST *declaration = 0)
    {
        LinkageSpecificationAST *__ast = new (&pool) LinkageSpecificationAST;
        __ast->declaration = declaration;
        return __ast;
    }

495
    MemInitializerAST *MemInitializer(NameAST *name = 0, ExpressionListAST *expression_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
496
497
498
    {
        MemInitializerAST *__ast = new (&pool) MemInitializerAST;
        __ast->name = name;
499
        __ast->expression_list = expression_list;
Roberto Raggi's avatar
Roberto Raggi committed
500
501
502
503
504
505
506
507
508
509
        return __ast;
    }

    NestedNameSpecifierAST *NestedNameSpecifier(NameAST *class_or_namespace_name = 0)
    {
        NestedNameSpecifierAST *__ast = new (&pool) NestedNameSpecifierAST;
        __ast->class_or_namespace_name = class_or_namespace_name;
        return __ast;
    }

510
    QualifiedNameAST *QualifiedName(NestedNameSpecifierListAST *nested_name_specifier_list = 0, NameAST *unqualified_name = 0)
Roberto Raggi's avatar
Roberto Raggi committed
511
512
    {
        QualifiedNameAST *__ast = new (&pool) QualifiedNameAST;
513
        __ast->nested_name_specifier_list = nested_name_specifier_list;
Roberto Raggi's avatar
Roberto Raggi committed
514
515
516
517
518
519
520
521
522
523
524
        __ast->unqualified_name = unqualified_name;
        return __ast;
    }

    OperatorFunctionIdAST *OperatorFunctionId(OperatorAST *op = 0)
    {
        OperatorFunctionIdAST *__ast = new (&pool) OperatorFunctionIdAST;
        __ast->op = op;
        return __ast;
    }

525
    ConversionFunctionIdAST *ConversionFunctionId(SpecifierListAST *type_specifier_list = 0, PtrOperatorListAST *ptr_operator_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
526
527
    {
        ConversionFunctionIdAST *__ast = new (&pool) ConversionFunctionIdAST;
528
529
        __ast->type_specifier_list = type_specifier_list;
        __ast->ptr_operator_list = ptr_operator_list;
Roberto Raggi's avatar
Roberto Raggi committed
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
        return __ast;
    }

    SimpleNameAST *SimpleName()
    {
        SimpleNameAST *__ast = new (&pool) SimpleNameAST;
        return __ast;
    }

    DestructorNameAST *DestructorName()
    {
        DestructorNameAST *__ast = new (&pool) DestructorNameAST;
        return __ast;
    }

545
    TemplateIdAST *TemplateId(ExpressionListAST *template_argument_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
546
547
    {
        TemplateIdAST *__ast = new (&pool) TemplateIdAST;
548
        __ast->template_argument_list = template_argument_list;
Roberto Raggi's avatar
Roberto Raggi committed
549
550
551
        return __ast;
    }

552
    NamespaceAST *Namespace(SpecifierListAST *attribute_list = 0, DeclarationAST *linkage_body = 0)
Roberto Raggi's avatar
Roberto Raggi committed
553
554
    {
        NamespaceAST *__ast = new (&pool) NamespaceAST;
555
        __ast->attribute_list = attribute_list;
Roberto Raggi's avatar
Roberto Raggi committed
556
557
558
559
560
561
562
563
564
565
566
        __ast->linkage_body = linkage_body;
        return __ast;
    }

    NamespaceAliasDefinitionAST *NamespaceAliasDefinition(NameAST *name = 0)
    {
        NamespaceAliasDefinitionAST *__ast = new (&pool) NamespaceAliasDefinitionAST;
        __ast->name = name;
        return __ast;
    }

567
    NewPlacementAST *NewPlacement(ExpressionListAST *expression_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
568
569
    {
        NewPlacementAST *__ast = new (&pool) NewPlacementAST;
570
        __ast->expression_list = expression_list;
Roberto Raggi's avatar
Roberto Raggi committed
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
        return __ast;
    }

    NewArrayDeclaratorAST *NewArrayDeclarator(ExpressionAST *expression = 0)
    {
        NewArrayDeclaratorAST *__ast = new (&pool) NewArrayDeclaratorAST;
        __ast->expression = expression;
        return __ast;
    }

    NewExpressionAST *NewExpression(NewPlacementAST *new_placement = 0, ExpressionAST *type_id = 0, NewTypeIdAST *new_type_id = 0, NewInitializerAST *new_initializer = 0)
    {
        NewExpressionAST *__ast = new (&pool) NewExpressionAST;
        __ast->new_placement = new_placement;
        __ast->type_id = type_id;
        __ast->new_type_id = new_type_id;
        __ast->new_initializer = new_initializer;
        return __ast;
    }

    NewInitializerAST *NewInitializer(ExpressionAST *expression = 0)
    {
        NewInitializerAST *__ast = new (&pool) NewInitializerAST;
        __ast->expression = expression;
        return __ast;
    }

598
    NewTypeIdAST *NewTypeId(SpecifierListAST *type_specifier_list = 0, PtrOperatorListAST *ptr_operator_list = 0, NewArrayDeclaratorListAST *new_array_declarator_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
599
600
    {
        NewTypeIdAST *__ast = new (&pool) NewTypeIdAST;
601
602
603
        __ast->type_specifier_list = type_specifier_list;
        __ast->ptr_operator_list = ptr_operator_list;
        __ast->new_array_declarator_list = new_array_declarator_list;
Roberto Raggi's avatar
Roberto Raggi committed
604
605
606
607
608
609
610
611
612
        return __ast;
    }

    OperatorAST *Operator()
    {
        OperatorAST *__ast = new (&pool) OperatorAST;
        return __ast;
    }

613
    ParameterDeclarationAST *ParameterDeclaration(SpecifierListAST *type_specifier_list = 0, DeclaratorAST *declarator = 0, ExpressionAST *expression = 0)
Roberto Raggi's avatar
Roberto Raggi committed
614
615
    {
        ParameterDeclarationAST *__ast = new (&pool) ParameterDeclarationAST;
616
        __ast->type_specifier_list = type_specifier_list;
Roberto Raggi's avatar
Roberto Raggi committed
617
618
619
620
621
        __ast->declarator = declarator;
        __ast->expression = expression;
        return __ast;
    }

622
    ParameterDeclarationClauseAST *ParameterDeclarationClause(ParameterDeclarationListAST *parameter_declaration_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
623
624
    {
        ParameterDeclarationClauseAST *__ast = new (&pool) ParameterDeclarationClauseAST;
625
        __ast->parameter_declaration_list = parameter_declaration_list;
Roberto Raggi's avatar
Roberto Raggi committed
626
627
628
        return __ast;
    }

629
    CallAST *Call(ExpressionAST *base_expression = 0, ExpressionListAST *expression_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
630
631
    {
        CallAST *__ast = new (&pool) CallAST;
632
633
        __ast->base_expression = base_expression;
        __ast->expression_list = expression_list;
Roberto Raggi's avatar
Roberto Raggi committed
634
635
636
        return __ast;
    }

637
    ArrayAccessAST *ArrayAccess(ExpressionAST *base_expression = 0, ExpressionAST *expression = 0)
Roberto Raggi's avatar
Roberto Raggi committed
638
639
    {
        ArrayAccessAST *__ast = new (&pool) ArrayAccessAST;
640
        __ast->base_expression = base_expression;
Roberto Raggi's avatar
Roberto Raggi committed
641
642
643
644
        __ast->expression = expression;
        return __ast;
    }

645
    PostIncrDecrAST *PostIncrDecr(ExpressionAST *base_expression = 0)
Roberto Raggi's avatar
Roberto Raggi committed
646
647
    {
        PostIncrDecrAST *__ast = new (&pool) PostIncrDecrAST;
648
        __ast->base_expression = base_expression;
Roberto Raggi's avatar
Roberto Raggi committed
649
650
651
        return __ast;
    }

652
    MemberAccessAST *MemberAccess(ExpressionAST *base_expression = 0, NameAST *member_name = 0)
Roberto Raggi's avatar
Roberto Raggi committed
653
654
    {
        MemberAccessAST *__ast = new (&pool) MemberAccessAST;
655
        __ast->base_expression = base_expression;
Roberto Raggi's avatar
Roberto Raggi committed
656
657
658
659
660
661
662
663
664
665
666
        __ast->member_name = member_name;
        return __ast;
    }

    TypeidExpressionAST *TypeidExpression(ExpressionAST *expression = 0)
    {
        TypeidExpressionAST *__ast = new (&pool) TypeidExpressionAST;
        __ast->expression = expression;
        return __ast;
    }

667
    TypenameCallExpressionAST *TypenameCallExpression(NameAST *name = 0, ExpressionListAST *expression_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
668
669
670
    {
        TypenameCallExpressionAST *__ast = new (&pool) TypenameCallExpressionAST;
        __ast->name = name;
671
        __ast->expression_list = expression_list;
Roberto Raggi's avatar
Roberto Raggi committed
672
673
674
        return __ast;
    }

675
    TypeConstructorCallAST *TypeConstructorCall(SpecifierListAST *type_specifier_list = 0, ExpressionListAST *expression_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
676
677
    {
        TypeConstructorCallAST *__ast = new (&pool) TypeConstructorCallAST;
678
679
        __ast->type_specifier_list = type_specifier_list;
        __ast->expression_list = expression_list;
Roberto Raggi's avatar
Roberto Raggi committed
680
681
682
        return __ast;
    }

683
    PointerToMemberAST *PointerToMember(NestedNameSpecifierListAST *nested_name_specifier_list = 0, SpecifierListAST *cv_qualifier_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
684
685
    {
        PointerToMemberAST *__ast = new (&pool) PointerToMemberAST;
686
687
        __ast->nested_name_specifier_list = nested_name_specifier_list;
        __ast->cv_qualifier_list = cv_qualifier_list;
Roberto Raggi's avatar
Roberto Raggi committed
688
689
690
        return __ast;
    }

691
    PointerAST *Pointer(SpecifierListAST *cv_qualifier_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
692
693
    {
        PointerAST *__ast = new (&pool) PointerAST;
694
        __ast->cv_qualifier_list = cv_qualifier_list;
Roberto Raggi's avatar
Roberto Raggi committed
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
        return __ast;
    }

    ReferenceAST *Reference()
    {
        ReferenceAST *__ast = new (&pool) ReferenceAST;
        return __ast;
    }

    BreakStatementAST *BreakStatement()
    {
        BreakStatementAST *__ast = new (&pool) BreakStatementAST;
        return __ast;
    }

    ContinueStatementAST *ContinueStatement()
    {
        ContinueStatementAST *__ast = new (&pool) ContinueStatementAST;
        return __ast;
    }

    GotoStatementAST *GotoStatement()
    {
        GotoStatementAST *__ast = new (&pool) GotoStatementAST;
        return __ast;
    }

    ReturnStatementAST *ReturnStatement(ExpressionAST *expression = 0)
    {
        ReturnStatementAST *__ast = new (&pool) ReturnStatementAST;
        __ast->expression = expression;
        return __ast;
    }

    SizeofExpressionAST *SizeofExpression(ExpressionAST *expression = 0)
    {
        SizeofExpressionAST *__ast = new (&pool) SizeofExpressionAST;
        __ast->expression = expression;
        return __ast;
    }

    NumericLiteralAST *NumericLiteral()
    {
        NumericLiteralAST *__ast = new (&pool) NumericLiteralAST;
        return __ast;
    }

    BoolLiteralAST *BoolLiteral()
    {
        BoolLiteralAST *__ast = new (&pool) BoolLiteralAST;
        return __ast;
    }

    ThisExpressionAST *ThisExpression()
    {
        ThisExpressionAST *__ast = new (&pool) ThisExpressionAST;
        return __ast;
    }

    NestedExpressionAST *NestedExpression(ExpressionAST *expression = 0)
    {
        NestedExpressionAST *__ast = new (&pool) NestedExpressionAST;
        __ast->expression = expression;
        return __ast;
    }

    StringLiteralAST *StringLiteral(StringLiteralAST *next = 0)
    {
        StringLiteralAST *__ast = new (&pool) StringLiteralAST;
        __ast->next = next;
        return __ast;
    }

    SwitchStatementAST *SwitchStatement(ExpressionAST *condition = 0, StatementAST *statement = 0)
    {
        SwitchStatementAST *__ast = new (&pool) SwitchStatementAST;
        __ast->condition = condition;
        __ast->statement = statement;
        return __ast;
    }

776
    TemplateDeclarationAST *TemplateDeclaration(DeclarationListAST *template_parameter_list = 0, DeclarationAST *declaration = 0)
Roberto Raggi's avatar
Roberto Raggi committed
777
778
    {
        TemplateDeclarationAST *__ast = new (&pool) TemplateDeclarationAST;
779
        __ast->template_parameter_list = template_parameter_list;
Roberto Raggi's avatar
Roberto Raggi committed
780
781
782
783
784
785
786
787
788
789
790
        __ast->declaration = declaration;
        return __ast;
    }

    ThrowExpressionAST *ThrowExpression(ExpressionAST *expression = 0)
    {
        ThrowExpressionAST *__ast = new (&pool) ThrowExpressionAST;
        __ast->expression = expression;
        return __ast;
    }

791
    TranslationUnitAST *TranslationUnit(DeclarationListAST *declaration_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
792
793
    {
        TranslationUnitAST *__ast = new (&pool) TranslationUnitAST;
794
        __ast->declaration_list = declaration_list;
Roberto Raggi's avatar
Roberto Raggi committed
795
796
797
        return __ast;
    }

798
    TryBlockStatementAST *TryBlockStatement(StatementAST *statement = 0, CatchClauseListAST *catch_clause_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
799
800
801
    {
        TryBlockStatementAST *__ast = new (&pool) TryBlockStatementAST;
        __ast->statement = statement;
802
        __ast->catch_clause_list = catch_clause_list;
Roberto Raggi's avatar
Roberto Raggi committed
803
804
805
806
807
808
809
810
811
812
813
        return __ast;
    }

    CatchClauseAST *CatchClause(ExceptionDeclarationAST *exception_declaration = 0, StatementAST *statement = 0)
    {
        CatchClauseAST *__ast = new (&pool) CatchClauseAST;
        __ast->exception_declaration = exception_declaration;
        __ast->statement = statement;
        return __ast;
    }

814
    TypeIdAST *TypeId(SpecifierListAST *type_specifier_list = 0, DeclaratorAST *declarator = 0)
Roberto Raggi's avatar
Roberto Raggi committed
815
816
    {
        TypeIdAST *__ast = new (&pool) TypeIdAST;
817
        __ast->type_specifier_list = type_specifier_list;
Roberto Raggi's avatar
Roberto Raggi committed
818
819
820
821
822
823
824
825
826
827
828
829
        __ast->declarator = declarator;
        return __ast;
    }

    TypenameTypeParameterAST *TypenameTypeParameter(NameAST *name = 0, ExpressionAST *type_id = 0)
    {
        TypenameTypeParameterAST *__ast = new (&pool) TypenameTypeParameterAST;
        __ast->name = name;
        __ast->type_id = type_id;
        return __ast;
    }

830
    TemplateTypeParameterAST *TemplateTypeParameter(DeclarationListAST *template_parameter_list = 0, NameAST *name = 0, ExpressionAST *type_id = 0)
Roberto Raggi's avatar
Roberto Raggi committed
831
832
    {
        TemplateTypeParameterAST *__ast = new (&pool) TemplateTypeParameterAST;
833
        __ast->template_parameter_list = template_parameter_list;
Roberto Raggi's avatar
Roberto Raggi committed
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
        __ast->name = name;
        __ast->type_id = type_id;
        return __ast;
    }

    UnaryExpressionAST *UnaryExpression(ExpressionAST *expression = 0)
    {
        UnaryExpressionAST *__ast = new (&pool) UnaryExpressionAST;
        __ast->expression = expression;
        return __ast;
    }

    UsingAST *Using(NameAST *name = 0)
    {
        UsingAST *__ast = new (&pool) UsingAST;
        __ast->name = name;
        return __ast;
    }

    UsingDirectiveAST *UsingDirective(NameAST *name = 0)
    {
        UsingDirectiveAST *__ast = new (&pool) UsingDirectiveAST;
        __ast->name = name;
        return __ast;
    }

    WhileStatementAST *WhileStatement(ExpressionAST *condition = 0, StatementAST *statement = 0)
    {
        WhileStatementAST *__ast = new (&pool) WhileStatementAST;
        __ast->condition = condition;
        __ast->statement = statement;
        return __ast;
    }

868
    ObjCClassForwardDeclarationAST *ObjCClassForwardDeclaration(SpecifierListAST *attribute_list = 0, NameListAST *identifier_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
869
870
    {
        ObjCClassForwardDeclarationAST *__ast = new (&pool) ObjCClassForwardDeclarationAST;
871
872
        __ast->attribute_list = attribute_list;
        __ast->identifier_list = identifier_list;
Roberto Raggi's avatar
Roberto Raggi committed
873
874
875
        return __ast;
    }

876
    ObjCClassDeclarationAST *ObjCClassDeclaration(SpecifierListAST *attribute_list = 0, NameAST *class_name = 0, NameAST *category_name = 0, NameAST *superclass = 0, ObjCProtocolRefsAST *protocol_refs = 0, ObjCInstanceVariablesDeclarationAST *inst_vars_decl = 0, DeclarationListAST *member_declaration_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
877
878
    {
        ObjCClassDeclarationAST *__ast = new (&pool) ObjCClassDeclarationAST;
879
        __ast->attribute_list = attribute_list;
Roberto Raggi's avatar
Roberto Raggi committed
880
881
882
883
884
        __ast->class_name = class_name;
        __ast->category_name = category_name;
        __ast->superclass = superclass;
        __ast->protocol_refs = protocol_refs;
        __ast->inst_vars_decl = inst_vars_decl;
885
        __ast->member_declaration_list = member_declaration_list;
Roberto Raggi's avatar
Roberto Raggi committed
886
887
888
        return __ast;
    }

889
    ObjCProtocolForwardDeclarationAST *ObjCProtocolForwardDeclaration(SpecifierListAST *attribute_list = 0, NameListAST *identifier_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
890
891
    {
        ObjCProtocolForwardDeclarationAST *__ast = new (&pool) ObjCProtocolForwardDeclarationAST;
892
893
        __ast->attribute_list = attribute_list;
        __ast->identifier_list = identifier_list;
Roberto Raggi's avatar
Roberto Raggi committed
894
895
896
        return __ast;
    }

897
    ObjCProtocolDeclarationAST *ObjCProtocolDeclaration(SpecifierListAST *attribute_list = 0, NameAST *name = 0, ObjCProtocolRefsAST *protocol_refs = 0, DeclarationListAST *member_declaration_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
898
899
    {
        ObjCProtocolDeclarationAST *__ast = new (&pool) ObjCProtocolDeclarationAST;
900
        __ast->attribute_list = attribute_list;
Roberto Raggi's avatar
Roberto Raggi committed
901
902
        __ast->name = name;
        __ast->protocol_refs = protocol_refs;
903
        __ast->member_declaration_list = member_declaration_list;
Roberto Raggi's avatar
Roberto Raggi committed
904
905
906
        return __ast;
    }

907
    ObjCProtocolRefsAST *ObjCProtocolRefs(NameListAST *identifier_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
908
909
    {
        ObjCProtocolRefsAST *__ast = new (&pool) ObjCProtocolRefsAST;
910
        __ast->identifier_list = identifier_list;
Roberto Raggi's avatar
Roberto Raggi committed
911
912
913
914
915
916
917
918
919
920
        return __ast;
    }

    ObjCMessageArgumentAST *ObjCMessageArgument(ExpressionAST *parameter_value_expression = 0)
    {
        ObjCMessageArgumentAST *__ast = new (&pool) ObjCMessageArgumentAST;
        __ast->parameter_value_expression = parameter_value_expression;
        return __ast;
    }

921
    ObjCMessageExpressionAST *ObjCMessageExpression(ExpressionAST *receiver_expression = 0, ObjCSelectorAST *selector = 0, ObjCMessageArgumentListAST *argument_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
922
923
924
925
    {
        ObjCMessageExpressionAST *__ast = new (&pool) ObjCMessageExpressionAST;
        __ast->receiver_expression = receiver_expression;
        __ast->selector = selector;
926
        __ast->argument_list = argument_list;
Roberto Raggi's avatar
Roberto Raggi committed
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
        return __ast;
    }

    ObjCProtocolExpressionAST *ObjCProtocolExpression()
    {
        ObjCProtocolExpressionAST *__ast = new (&pool) ObjCProtocolExpressionAST;
        return __ast;
    }

    ObjCTypeNameAST *ObjCTypeName(ExpressionAST *type_id = 0)
    {
        ObjCTypeNameAST *__ast = new (&pool) ObjCTypeNameAST;
        __ast->type_id = type_id;
        return __ast;
    }

    ObjCEncodeExpressionAST *ObjCEncodeExpression(ObjCTypeNameAST *type_name = 0)
    {
        ObjCEncodeExpressionAST *__ast = new (&pool) ObjCEncodeExpressionAST;
        __ast->type_name = type_name;
        return __ast;
    }

    ObjCSelectorExpressionAST *ObjCSelectorExpression(ObjCSelectorAST *selector = 0)
    {
        ObjCSelectorExpressionAST *__ast = new (&pool) ObjCSelectorExpressionAST;
        __ast->selector = selector;
        return __ast;
    }

957
    ObjCInstanceVariablesDeclarationAST *ObjCInstanceVariablesDeclaration(DeclarationListAST *instance_variable_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
958
959
    {
        ObjCInstanceVariablesDeclarationAST *__ast = new (&pool) ObjCInstanceVariablesDeclarationAST;
960
        __ast->instance_variable_list = instance_variable_list;
Roberto Raggi's avatar
Roberto Raggi committed
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
        return __ast;
    }

    ObjCVisibilityDeclarationAST *ObjCVisibilityDeclaration()
    {
        ObjCVisibilityDeclarationAST *__ast = new (&pool) ObjCVisibilityDeclarationAST;
        return __ast;
    }

    ObjCPropertyAttributeAST *ObjCPropertyAttribute(ObjCSelectorAST *method_selector = 0)
    {
        ObjCPropertyAttributeAST *__ast = new (&pool) ObjCPropertyAttributeAST;
        __ast->method_selector = method_selector;
        return __ast;
    }

977
    ObjCPropertyDeclarationAST *ObjCPropertyDeclaration(SpecifierListAST *attribute_list = 0, ObjCPropertyAttributeListAST *property_attribute_list = 0, DeclarationAST *simple_declaration = 0)
Roberto Raggi's avatar
Roberto Raggi committed
978
979
    {
        ObjCPropertyDeclarationAST *__ast = new (&pool) ObjCPropertyDeclarationAST;
980
981
        __ast->attribute_list = attribute_list;
        __ast->property_attribute_list = property_attribute_list;
Roberto Raggi's avatar
Roberto Raggi committed
982
983
984
985
        __ast->simple_declaration = simple_declaration;
        return __ast;
    }

986
    ObjCMessageArgumentDeclarationAST *ObjCMessageArgumentDeclaration(ObjCTypeNameAST *type_name = 0, SpecifierListAST *attribute_list = 0, NameAST *param_name = 0)
Roberto Raggi's avatar
Roberto Raggi committed
987
988
989
    {
        ObjCMessageArgumentDeclarationAST *__ast = new (&pool) ObjCMessageArgumentDeclarationAST;
        __ast->type_name = type_name;
990
991
        __ast->attribute_list = attribute_list;
        __ast->param_name = param_name;
Roberto Raggi's avatar
Roberto Raggi committed
992
993
994
        return __ast;
    }

995
    ObjCMethodPrototypeAST *ObjCMethodPrototype(ObjCTypeNameAST *type_name = 0, ObjCSelectorAST *selector = 0, ObjCMessageArgumentDeclarationListAST *argument_list = 0, SpecifierListAST *attribute_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
996
997
998
999
    {
        ObjCMethodPrototypeAST *__ast = new (&pool) ObjCMethodPrototypeAST;
        __ast->type_name = type_name;
        __ast->selector = selector;
1000
1001
        __ast->argument_list = argument_list;
        __ast->attribute_list = attribute_list;
Roberto Raggi's avatar
Roberto Raggi committed
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
        return __ast;
    }

    ObjCMethodDeclarationAST *ObjCMethodDeclaration(ObjCMethodPrototypeAST *method_prototype = 0, StatementAST *function_body = 0)
    {
        ObjCMethodDeclarationAST *__ast = new (&pool) ObjCMethodDeclarationAST;
        __ast->method_prototype = method_prototype;
        __ast->function_body = function_body;
        return __ast;
    }

    ObjCSynthesizedPropertyAST *ObjCSynthesizedProperty()
    {
        ObjCSynthesizedPropertyAST *__ast = new (&pool) ObjCSynthesizedPropertyAST;
        return __ast;
    }

1019
    ObjCSynthesizedPropertiesDeclarationAST *ObjCSynthesizedPropertiesDeclaration(ObjCSynthesizedPropertyListAST *property_identifier_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
1020
1021
    {
        ObjCSynthesizedPropertiesDeclarationAST *__ast = new (&pool) ObjCSynthesizedPropertiesDeclarationAST;
1022
        __ast->property_identifier_list = property_identifier_list;
Roberto Raggi's avatar
Roberto Raggi committed
1023
1024
1025
        return __ast;
    }

1026
    ObjCDynamicPropertiesDeclarationAST *ObjCDynamicPropertiesDeclaration(NameListAST *property_identifier_list = 0)
Roberto Raggi's avatar
Roberto Raggi committed
1027
1028
    {
        ObjCDynamicPropertiesDeclarationAST *__ast = new (&pool) ObjCDynamicPropertiesDeclarationAST;
1029
        __ast->property_identifier_list = property_identifier_list;
Roberto Raggi's avatar
Roberto Raggi committed
1030
1031
1032
        return __ast;
    }

1033
    ObjCFastEnumerationAST *ObjCFastEnumeration(SpecifierListAST *type_specifier_list = 0, DeclaratorAST *declarator = 0, ExpressionAST *initializer = 0, ExpressionAST *fast_enumeratable_expression = 0, StatementAST *statement = 0)
Roberto Raggi's avatar
Roberto Raggi committed
1034
1035
    {
        ObjCFastEnumerationAST *__ast = new (&pool) ObjCFastEnumerationAST;
1036
        __ast->type_specifier_list = type_specifier_list;
Roberto Raggi's avatar
Roberto Raggi committed
1037
1038
1039
        __ast->declarator = declarator;
        __ast->initializer = initializer;
        __ast->fast_enumeratable_expression = fast_enumeratable_expression;
1040
        __ast->statement = statement;
Roberto Raggi's avatar
Roberto Raggi committed
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
        return __ast;
    }

    ObjCSynchronizedStatementAST *ObjCSynchronizedStatement(ExpressionAST *synchronized_object = 0, StatementAST *statement = 0)
    {
        ObjCSynchronizedStatementAST *__ast = new (&pool) ObjCSynchronizedStatementAST;
        __ast->synchronized_object = synchronized_object;
        __ast->statement = statement;
        return __ast;
    }

1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
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
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
    LambdaExpressionAST *LambdaExpression(LambdaIntroducerAST *lambda_introducer = 0, LambdaDeclaratorAST *lambda_declarator = 0, StatementAST *statement = 0)
    {
        LambdaExpressionAST *__ast = new (&pool) LambdaExpressionAST;
        __ast->lambda_introducer = lambda_introducer;
        __ast->lambda_declarator = lambda_declarator;
        __ast->statement = statement;
        return __ast;
    }

    LambdaIntroducerAST *LambdaIntroducer(LambdaCaptureAST *lambda_capture = 0)
    {
        LambdaIntroducerAST *__ast = new (&pool) LambdaIntroducerAST;
        __ast->lambda_capture = lambda_capture;
        return __ast;
    }

    LambdaCaptureAST *LambdaCapture(CaptureListAST *capture_list = 0)
    {
        LambdaCaptureAST *__ast = new (&pool) LambdaCaptureAST;
        __ast->capture_list = capture_list;
        return __ast;
    }

    CaptureAST *Capture()
    {
        CaptureAST *__ast = new (&pool) CaptureAST;
        return __ast;
    }

    LambdaDeclaratorAST *LambdaDeclarator(ParameterDeclarationClauseAST *parameter_declaration_clause = 0, SpecifierListAST *attributes = 0, ExceptionSpecificationAST *exception_specification = 0, TrailingReturnTypeAST *trailing_return_type = 0)
    {
        LambdaDeclaratorAST *__ast = new (&pool) LambdaDeclaratorAST;
        __ast->parameter_declaration_clause = parameter_declaration_clause;
        __ast->attributes = attributes;
        __ast->exception_specification = exception_specification;
        __ast->trailing_return_type = trailing_return_type;
        return __ast;
    }

    TrailingReturnTypeAST *TrailingReturnType(SpecifierListAST *attributes = 0, SpecifierListAST *type_specifier_list = 0, DeclaratorAST *declarator = 0)
    {
        TrailingReturnTypeAST *__ast = new (&pool) TrailingReturnTypeAST;
        __ast->attributes = attributes;
        __ast->type_specifier_list = type_specifier_list;
        __ast->declarator = declarator;
        return __ast;
    }

    BracedInitializerAST *BracedInitializer(ExpressionListAST *expression_list = 0)
    {
        BracedInitializerAST *__ast = new (&pool) BracedInitializerAST;
        __ast->expression_list = expression_list;
        return __ast;
    }

    CatchClauseListAST *CatchClauseList(CatchClauseAST *value, CatchClauseListAST *next = 0)
    {
        CatchClauseListAST *__list = new (&pool) CatchClauseListAST;
        __list->next = next;
        __list->value = value;
        return __list;
    }

    PostfixDeclaratorListAST *PostfixDeclaratorList(PostfixDeclaratorAST *value, PostfixDeclaratorListAST *next = 0)
    {
        PostfixDeclaratorListAST *__list = new (&pool) PostfixDeclaratorListAST;
        __list->next = next;
        __list->value = value;
        return __list;
    }

    ExpressionListAST *ExpressionList(ExpressionAST *value, ExpressionListAST *next = 0)
    {
        ExpressionListAST *__list = new (&pool) ExpressionListAST;
        __list->next = next;
        __list->value = value;
        return __list;
    }

    QtPropertyDeclarationItemListAST *QtPropertyDeclarationItemList(QtPropertyDeclarationItemAST *value, QtPropertyDeclarationItemListAST *next = 0)
    {
        QtPropertyDeclarationItemListAST *__list = new (&pool) QtPropertyDeclarationItemListAST;
        __list->next = next;
        __list->value = value;
        return __list;
    }

    DeclarationListAST *DeclarationList(DeclarationAST *value, DeclarationListAST *next = 0)
    {
        DeclarationListAST *__list = new (&pool) DeclarationListAST;
        __list->next = next;
        __list->value = value;
        return __list;
    }

    ObjCMessageArgumentDeclarationListAST *ObjCMessageArgumentDeclarationList(ObjCMessageArgumentDeclarationAST *value, ObjCMessageArgumentDeclarationListAST *next = 0)
    {
        ObjCMessageArgumentDeclarationListAST *__list = new (&pool) ObjCMessageArgumentDeclarationListAST;
        __list->next = next;
        __list->value = value;
        return __list;
    }

    EnumeratorListAST *EnumeratorList(EnumeratorAST *value, EnumeratorListAST *next = 0)
    {
        EnumeratorListAST *__list = new (&pool) EnumeratorListAST;
        __list->next = next;
        __list->value = value;
        return __list;
    }

    NameListAST *NameList(NameAST *value, NameListAST *next = 0)
    {
        NameListAST *__list = new (&pool) NameListAST;
        __list->next = next;
        __list->value = value;
        return __list;
    }

    AttributeListAST *AttributeList(AttributeAST *value, AttributeListAST *next = 0)
    {
        AttributeListAST *__list = new (&pool) AttributeListAST;
        __list->next = next;
        __list->value = value;
        return __list;
    }

    ObjCSelectorArgumentListAST *ObjCSelectorArgumentList(ObjCSelectorArgumentAST *value, ObjCSelectorArgumentListAST *next = 0)
    {
        ObjCSelectorArgumentListAST *__list = new (&pool) ObjCSelectorArgumentListAST;
        __list->next = next;
        __list->value = value;
        return __list;
    }

    NestedNameSpecifierListAST *NestedNameSpecifierList(NestedNameSpecifierAST *value, NestedNameSpecifierListAST *next = 0)
    {
        NestedNameSpecifierListAST *__list = new (&pool) NestedNameSpecifierListAST;
        __list->next = next;
        __list->value = value;
        return __list;
    }

    BaseSpecifierListAST *BaseSpecifierList(BaseSpecifierAST *value, BaseSpecifierListAST *next = 0)
    {
        BaseSpecifierListAST *__list = new (&pool) BaseSpecifierListAST;
        __list->next = next;
        __list->value = value;
        return __list;
    }

    ObjCPropertyAttributeListAST *ObjCPropertyAttributeList(ObjCPropertyAttributeAST *value, ObjCPropertyAttributeListAST *next = 0)
    {
        ObjCPropertyAttributeListAST *__list = new (&pool) ObjCPropertyAttributeListAST;
        __list->next = next;
        __list->value = value;
        return __list;
    }

    MemInitializerListAST *MemInitializerList(MemInitializerAST *value, MemInitializerListAST *next = 0)
    {
        MemInitializerListAST *__list = new (&pool) MemInitializerListAST;
        __list->next = next;
        __list->value = value;
        return __list;
    }

    StatementListAST *StatementList(StatementAST *value, StatementListAST *next = 0)
    {
        StatementListAST *__list = new (&pool) StatementListAST;
        __list->next = next;
        __list->value = value;
        return __list;
    }

    ParameterDeclarationListAST *ParameterDeclarationList(ParameterDeclarationAST *value, ParameterDeclarationListAST *next = 0)
    {
        ParameterDeclarationListAST *__list = new (&pool) ParameterDeclarationListAST;
        __list->next = next;
        __list->value = value;
        return __list;
    }

    ObjCMessageArgumentListAST *ObjCMessageArgumentList(ObjCMessageArgumentAST *value, ObjCMessageArgumentListAST *next = 0)
    {
        ObjCMessageArgumentListAST *__list = new (&pool) ObjCMessageArgumentListAST;
        __list->next = next;
        __list->value = value;
        return __list;
    }

    NewArrayDeclaratorListAST *NewArrayDeclaratorList(NewArrayDeclaratorAST *value, NewArrayDeclaratorListAST *next = 0)
    {
        NewArrayDeclaratorListAST *__list = new (&pool) NewArrayDeclaratorListAST;
        __list->next = next;
        __list->value = value;
        return __list;
    }

    SpecifierListAST *SpecifierList(SpecifierAST *value, SpecifierListAST *next = 0)
    {
        SpecifierListAST *__list = new (&pool) SpecifierListAST;
        __list->next = next;
        __list->value = value;
        return __list;
    }

    ObjCSynthesizedPropertyListAST *ObjCSynthesizedPropertyList(ObjCSynthesizedPropertyAST *value, ObjCSynthesizedPropertyListAST *next = 0)
    {
        ObjCSynthesizedPropertyListAST *__list = new (&pool) ObjCSynthesizedPropertyListAST;
        __list->next = next;
        __list->value = value;
        return __list;
    }

    DeclaratorListAST *DeclaratorList(DeclaratorAST *value, DeclaratorListAST *next = 0)
    {
        DeclaratorListAST *__list = new (&pool) DeclaratorListAST;
        __list->next = next;
        __list->value = value;
        return __list;
    }

    QtInterfaceNameListAST *QtInterfaceNameList(QtInterfaceNameAST *value, QtInterfaceNameListAST *next = 0)
    {
        QtInterfaceNameListAST *__list = new (&pool) QtInterfaceNameListAST;
        __list->next = next;
        __list->value = value;
        return __list;
    }

    PtrOperatorListAST *PtrOperatorList(PtrOperatorAST *value, PtrOperatorListAST *next = 0)
    {
        PtrOperatorListAST *__list = new (&pool) PtrOperatorListAST;
        __list->next = next;
        __list->value = value;
        return __list;
    }

    CaptureListAST *CaptureList(CaptureAST *value, CaptureListAST *next = 0)
    {
        CaptureListAST *__list = new (&pool) CaptureListAST;
        __list->next = next;
        __list->value = value;
        return __list;
    }

Roberto Raggi's avatar
Roberto Raggi committed
1299
1300
};

1301
} // namespace CPlusPlus
Roberto Raggi's avatar
Roberto Raggi committed
1302
1303

#endif // CPLUSPLUS_AST_PATTERN_BUILDER_H