@@ -26,7 +26,6 @@ AST::Stmt* Parser::WalkStatement(const clang::Stmt* Stmt)
26
26
{
27
27
auto S = const_cast <clang::DeclStmt*>(llvm::cast<clang::DeclStmt>(Stmt));
28
28
auto _S = new AST::DeclStmt ();
29
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
30
29
_S->isSingleDecl = S->isSingleDecl ();
31
30
if (S->isSingleDecl ())
32
31
_S->singleDecl = static_cast <AST::Declaration*>(WalkDeclaration (S->getSingleDecl ()));
@@ -42,7 +41,6 @@ AST::Stmt* Parser::WalkStatement(const clang::Stmt* Stmt)
42
41
{
43
42
auto S = const_cast <clang::NullStmt*>(llvm::cast<clang::NullStmt>(Stmt));
44
43
auto _S = new AST::NullStmt ();
45
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
46
44
_S->hasLeadingEmptyMacro = S->hasLeadingEmptyMacro ();
47
45
_Stmt = _S;
48
46
break ;
@@ -51,7 +49,6 @@ AST::Stmt* Parser::WalkStatement(const clang::Stmt* Stmt)
51
49
{
52
50
auto S = const_cast <clang::CompoundStmt*>(llvm::cast<clang::CompoundStmt>(Stmt));
53
51
auto _S = new AST::CompoundStmt ();
54
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
55
52
_S->body_empty = S->body_empty ();
56
53
_S->size = S->size ();
57
54
_S->body_front = static_cast <AST::Stmt*>(WalkStatement (S->body_front ()));
@@ -68,7 +65,6 @@ AST::Stmt* Parser::WalkStatement(const clang::Stmt* Stmt)
68
65
{
69
66
auto S = const_cast <clang::CaseStmt*>(llvm::cast<clang::CaseStmt>(Stmt));
70
67
auto _S = new AST::CaseStmt ();
71
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
72
68
_S->subStmt = static_cast <AST::Stmt*>(WalkStatement (S->getSubStmt ()));
73
69
_S->lHS = static_cast <AST::Expr*>(WalkExpression (S->getLHS ()));
74
70
_S->rHS = static_cast <AST::Expr*>(WalkExpression (S->getRHS ()));
@@ -81,7 +77,6 @@ AST::Stmt* Parser::WalkStatement(const clang::Stmt* Stmt)
81
77
{
82
78
auto S = const_cast <clang::DefaultStmt*>(llvm::cast<clang::DefaultStmt>(Stmt));
83
79
auto _S = new AST::DefaultStmt ();
84
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
85
80
_S->subStmt = static_cast <AST::Stmt*>(WalkStatement (S->getSubStmt ()));
86
81
_S->subStmt = static_cast <AST::Stmt*>(WalkStatement (S->getSubStmt ()));
87
82
_Stmt = _S;
@@ -91,7 +86,6 @@ AST::Stmt* Parser::WalkStatement(const clang::Stmt* Stmt)
91
86
{
92
87
auto S = const_cast <clang::LabelStmt*>(llvm::cast<clang::LabelStmt>(Stmt));
93
88
auto _S = new AST::LabelStmt ();
94
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
95
89
_S->subStmt = static_cast <AST::Stmt*>(WalkStatement (S->getSubStmt ()));
96
90
_S->name = S->getName ();
97
91
_Stmt = _S;
@@ -101,7 +95,6 @@ AST::Stmt* Parser::WalkStatement(const clang::Stmt* Stmt)
101
95
{
102
96
auto S = const_cast <clang::AttributedStmt*>(llvm::cast<clang::AttributedStmt>(Stmt));
103
97
auto _S = new AST::AttributedStmt ();
104
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
105
98
_S->subStmt = static_cast <AST::Stmt*>(WalkStatement (S->getSubStmt ()));
106
99
_Stmt = _S;
107
100
break ;
@@ -110,7 +103,6 @@ AST::Stmt* Parser::WalkStatement(const clang::Stmt* Stmt)
110
103
{
111
104
auto S = const_cast <clang::IfStmt*>(llvm::cast<clang::IfStmt>(Stmt));
112
105
auto _S = new AST::IfStmt ();
113
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
114
106
_S->cond = static_cast <AST::Expr*>(WalkExpression (S->getCond ()));
115
107
_S->then = static_cast <AST::Stmt*>(WalkStatement (S->getThen ()));
116
108
_S->_else = static_cast <AST::Stmt*>(WalkStatement (S->getElse ()));
@@ -128,7 +120,6 @@ AST::Stmt* Parser::WalkStatement(const clang::Stmt* Stmt)
128
120
{
129
121
auto S = const_cast <clang::SwitchStmt*>(llvm::cast<clang::SwitchStmt>(Stmt));
130
122
auto _S = new AST::SwitchStmt ();
131
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
132
123
_S->cond = static_cast <AST::Expr*>(WalkExpression (S->getCond ()));
133
124
_S->body = static_cast <AST::Stmt*>(WalkStatement (S->getBody ()));
134
125
_S->init = static_cast <AST::Stmt*>(WalkStatement (S->getInit ()));
@@ -143,7 +134,6 @@ AST::Stmt* Parser::WalkStatement(const clang::Stmt* Stmt)
143
134
{
144
135
auto S = const_cast <clang::WhileStmt*>(llvm::cast<clang::WhileStmt>(Stmt));
145
136
auto _S = new AST::WhileStmt ();
146
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
147
137
_S->cond = static_cast <AST::Expr*>(WalkExpression (S->getCond ()));
148
138
_S->body = static_cast <AST::Stmt*>(WalkStatement (S->getBody ()));
149
139
_S->hasVarStorage = S->hasVarStorage ();
@@ -155,7 +145,6 @@ AST::Stmt* Parser::WalkStatement(const clang::Stmt* Stmt)
155
145
{
156
146
auto S = const_cast <clang::DoStmt*>(llvm::cast<clang::DoStmt>(Stmt));
157
147
auto _S = new AST::DoStmt ();
158
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
159
148
_S->cond = static_cast <AST::Expr*>(WalkExpression (S->getCond ()));
160
149
_S->body = static_cast <AST::Stmt*>(WalkStatement (S->getBody ()));
161
150
_Stmt = _S;
@@ -165,7 +154,6 @@ AST::Stmt* Parser::WalkStatement(const clang::Stmt* Stmt)
165
154
{
166
155
auto S = const_cast <clang::ForStmt*>(llvm::cast<clang::ForStmt>(Stmt));
167
156
auto _S = new AST::ForStmt ();
168
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
169
157
_S->init = static_cast <AST::Stmt*>(WalkStatement (S->getInit ()));
170
158
_S->cond = static_cast <AST::Expr*>(WalkExpression (S->getCond ()));
171
159
_S->inc = static_cast <AST::Expr*>(WalkExpression (S->getInc ()));
@@ -178,15 +166,13 @@ AST::Stmt* Parser::WalkStatement(const clang::Stmt* Stmt)
178
166
{
179
167
auto S = const_cast <clang::GotoStmt*>(llvm::cast<clang::GotoStmt>(Stmt));
180
168
auto _S = new AST::GotoStmt ();
181
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
182
169
_Stmt = _S;
183
170
break ;
184
171
}
185
172
case clang::Stmt::IndirectGotoStmtClass:
186
173
{
187
174
auto S = const_cast <clang::IndirectGotoStmt*>(llvm::cast<clang::IndirectGotoStmt>(Stmt));
188
175
auto _S = new AST::IndirectGotoStmt ();
189
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
190
176
_S->target = static_cast <AST::Expr*>(WalkExpression (S->getTarget ()));
191
177
_Stmt = _S;
192
178
break ;
@@ -195,23 +181,20 @@ AST::Stmt* Parser::WalkStatement(const clang::Stmt* Stmt)
195
181
{
196
182
auto S = const_cast <clang::ContinueStmt*>(llvm::cast<clang::ContinueStmt>(Stmt));
197
183
auto _S = new AST::ContinueStmt ();
198
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
199
184
_Stmt = _S;
200
185
break ;
201
186
}
202
187
case clang::Stmt::BreakStmtClass:
203
188
{
204
189
auto S = const_cast <clang::BreakStmt*>(llvm::cast<clang::BreakStmt>(Stmt));
205
190
auto _S = new AST::BreakStmt ();
206
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
207
191
_Stmt = _S;
208
192
break ;
209
193
}
210
194
case clang::Stmt::ReturnStmtClass:
211
195
{
212
196
auto S = const_cast <clang::ReturnStmt*>(llvm::cast<clang::ReturnStmt>(Stmt));
213
197
auto _S = new AST::ReturnStmt ();
214
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
215
198
_S->retValue = static_cast <AST::Expr*>(WalkExpression (S->getRetValue ()));
216
199
_Stmt = _S;
217
200
break ;
@@ -220,7 +203,6 @@ AST::Stmt* Parser::WalkStatement(const clang::Stmt* Stmt)
220
203
{
221
204
auto S = const_cast <clang::GCCAsmStmt*>(llvm::cast<clang::GCCAsmStmt>(Stmt));
222
205
auto _S = new AST::GCCAsmStmt ();
223
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
224
206
_S->simple = S->isSimple ();
225
207
_S->_volatile = S->isVolatile ();
226
208
_S->numOutputs = S->getNumOutputs ();
@@ -244,7 +226,6 @@ AST::Stmt* Parser::WalkStatement(const clang::Stmt* Stmt)
244
226
{
245
227
auto S = const_cast <clang::MSAsmStmt*>(llvm::cast<clang::MSAsmStmt>(Stmt));
246
228
auto _S = new AST::MSAsmStmt ();
247
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
248
229
_S->simple = S->isSimple ();
249
230
_S->_volatile = S->isVolatile ();
250
231
_S->numOutputs = S->getNumOutputs ();
@@ -271,7 +252,6 @@ AST::Stmt* Parser::WalkStatement(const clang::Stmt* Stmt)
271
252
{
272
253
auto S = const_cast <clang::SEHExceptStmt*>(llvm::cast<clang::SEHExceptStmt>(Stmt));
273
254
auto _S = new AST::SEHExceptStmt ();
274
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
275
255
_S->filterExpr = static_cast <AST::Expr*>(WalkExpression (S->getFilterExpr ()));
276
256
_S->block = static_cast <AST::CompoundStmt*>(WalkStatement (S->getBlock ()));
277
257
_Stmt = _S;
@@ -281,7 +261,6 @@ AST::Stmt* Parser::WalkStatement(const clang::Stmt* Stmt)
281
261
{
282
262
auto S = const_cast <clang::SEHFinallyStmt*>(llvm::cast<clang::SEHFinallyStmt>(Stmt));
283
263
auto _S = new AST::SEHFinallyStmt ();
284
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
285
264
_S->block = static_cast <AST::CompoundStmt*>(WalkStatement (S->getBlock ()));
286
265
_Stmt = _S;
287
266
break ;
@@ -290,7 +269,6 @@ AST::Stmt* Parser::WalkStatement(const clang::Stmt* Stmt)
290
269
{
291
270
auto S = const_cast <clang::SEHTryStmt*>(llvm::cast<clang::SEHTryStmt>(Stmt));
292
271
auto _S = new AST::SEHTryStmt ();
293
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
294
272
_S->isCXXTry = S->getIsCXXTry ();
295
273
_S->tryBlock = static_cast <AST::CompoundStmt*>(WalkStatement (S->getTryBlock ()));
296
274
_S->handler = static_cast <AST::Stmt*>(WalkStatement (S->getHandler ()));
@@ -303,15 +281,13 @@ AST::Stmt* Parser::WalkStatement(const clang::Stmt* Stmt)
303
281
{
304
282
auto S = const_cast <clang::SEHLeaveStmt*>(llvm::cast<clang::SEHLeaveStmt>(Stmt));
305
283
auto _S = new AST::SEHLeaveStmt ();
306
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
307
284
_Stmt = _S;
308
285
break ;
309
286
}
310
287
case clang::Stmt::CapturedStmtClass:
311
288
{
312
289
auto S = const_cast <clang::CapturedStmt*>(llvm::cast<clang::CapturedStmt>(Stmt));
313
290
auto _S = new AST::CapturedStmt ();
314
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
315
291
_S->capturedStmt = static_cast <AST::Stmt*>(WalkStatement (S->getCapturedStmt ()));
316
292
_S->capture_size = S->capture_size ();
317
293
for (auto _E : S->capture_inits ())
@@ -326,7 +302,6 @@ AST::Stmt* Parser::WalkStatement(const clang::Stmt* Stmt)
326
302
{
327
303
auto S = const_cast <clang::CXXCatchStmt*>(llvm::cast<clang::CXXCatchStmt>(Stmt));
328
304
auto _S = new AST::CXXCatchStmt ();
329
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
330
305
_S->caughtType = GetQualifiedType (S->getCaughtType ());
331
306
_S->handlerBlock = static_cast <AST::Stmt*>(WalkStatement (S->getHandlerBlock ()));
332
307
_Stmt = _S;
@@ -336,7 +311,6 @@ AST::Stmt* Parser::WalkStatement(const clang::Stmt* Stmt)
336
311
{
337
312
auto S = const_cast <clang::CXXTryStmt*>(llvm::cast<clang::CXXTryStmt>(Stmt));
338
313
auto _S = new AST::CXXTryStmt ();
339
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
340
314
_S->tryBlock = static_cast <AST::CompoundStmt*>(WalkStatement (S->getTryBlock ()));
341
315
_S->numHandlers = S->getNumHandlers ();
342
316
_Stmt = _S;
@@ -346,7 +320,6 @@ AST::Stmt* Parser::WalkStatement(const clang::Stmt* Stmt)
346
320
{
347
321
auto S = const_cast <clang::CXXForRangeStmt*>(llvm::cast<clang::CXXForRangeStmt>(Stmt));
348
322
auto _S = new AST::CXXForRangeStmt ();
349
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
350
323
_S->init = static_cast <AST::Stmt*>(WalkStatement (S->getInit ()));
351
324
_S->rangeInit = static_cast <AST::Expr*>(WalkExpression (S->getRangeInit ()));
352
325
_S->cond = static_cast <AST::Expr*>(WalkExpression (S->getCond ()));
@@ -363,7 +336,6 @@ AST::Stmt* Parser::WalkStatement(const clang::Stmt* Stmt)
363
336
{
364
337
auto S = const_cast <clang::MSDependentExistsStmt*>(llvm::cast<clang::MSDependentExistsStmt>(Stmt));
365
338
auto _S = new AST::MSDependentExistsStmt ();
366
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
367
339
_S->isIfExists = S->isIfExists ();
368
340
_S->isIfNotExists = S->isIfNotExists ();
369
341
_S->subStmt = static_cast <AST::CompoundStmt*>(WalkStatement (S->getSubStmt ()));
@@ -374,7 +346,6 @@ AST::Stmt* Parser::WalkStatement(const clang::Stmt* Stmt)
374
346
{
375
347
auto S = const_cast <clang::CoroutineBodyStmt*>(llvm::cast<clang::CoroutineBodyStmt>(Stmt));
376
348
auto _S = new AST::CoroutineBodyStmt ();
377
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
378
349
_S->hasDependentPromiseType = S->hasDependentPromiseType ();
379
350
_S->body = static_cast <AST::Stmt*>(WalkStatement (S->getBody ()));
380
351
_S->promiseDeclStmt = static_cast <AST::Stmt*>(WalkStatement (S->getPromiseDeclStmt ()));
@@ -395,7 +366,6 @@ AST::Stmt* Parser::WalkStatement(const clang::Stmt* Stmt)
395
366
{
396
367
auto S = const_cast <clang::CoreturnStmt*>(llvm::cast<clang::CoreturnStmt>(Stmt));
397
368
auto _S = new AST::CoreturnStmt ();
398
- _S->stripLabelLikeStatements = static_cast <AST::Stmt*>(WalkStatement (S->stripLabelLikeStatements ()));
399
369
_S->isImplicit = S->isImplicit ();
400
370
_S->operand = static_cast <AST::Expr*>(WalkExpression (S->getOperand ()));
401
371
_S->promiseCall = static_cast <AST::Expr*>(WalkExpression (S->getPromiseCall ()));
0 commit comments