1 | // |
---|
2 | // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo |
---|
3 | // |
---|
4 | // The contents of this file are covered under the licence agreement in the |
---|
5 | // file "LICENCE" distributed with Cforall. |
---|
6 | // |
---|
7 | // Visitor.cc -- |
---|
8 | // |
---|
9 | // Author : Richard C. Bilson |
---|
10 | // Created On : Mon May 18 07:44:20 2015 |
---|
11 | // Last Modified By : Andrew Beach |
---|
12 | // Last Modified On : Mon Jul 24 16:30:00 2017 |
---|
13 | // Update Count : 27 |
---|
14 | // |
---|
15 | |
---|
16 | #include <cassert> |
---|
17 | #include "Visitor.h" |
---|
18 | #include "Initializer.h" |
---|
19 | #include "Statement.h" |
---|
20 | #include "Type.h" |
---|
21 | #include "Declaration.h" |
---|
22 | #include "Expression.h" |
---|
23 | #include "Constant.h" |
---|
24 | |
---|
25 | Visitor::Visitor() {} |
---|
26 | |
---|
27 | Visitor::~Visitor() {} |
---|
28 | |
---|
29 | void Visitor::visit( ObjectDecl *objectDecl ) { |
---|
30 | maybeAccept( objectDecl->get_type(), *this ); |
---|
31 | maybeAccept( objectDecl->get_init(), *this ); |
---|
32 | maybeAccept( objectDecl->get_bitfieldWidth(), *this ); |
---|
33 | } |
---|
34 | |
---|
35 | void Visitor::visit( FunctionDecl *functionDecl ) { |
---|
36 | maybeAccept( functionDecl->get_functionType(), *this ); |
---|
37 | maybeAccept( functionDecl->get_statements(), *this ); |
---|
38 | } |
---|
39 | |
---|
40 | void Visitor::handleAggregateDecl( AggregateDecl *aggregateDecl ) { |
---|
41 | acceptAll( aggregateDecl->get_parameters(), *this ); |
---|
42 | acceptAll( aggregateDecl->get_members(), *this ); |
---|
43 | } |
---|
44 | |
---|
45 | void Visitor::visit( StructDecl *aggregateDecl ) { |
---|
46 | handleAggregateDecl( static_cast< AggregateDecl* >( aggregateDecl ) ); |
---|
47 | } |
---|
48 | |
---|
49 | void Visitor::visit( UnionDecl *aggregateDecl ) { |
---|
50 | handleAggregateDecl( static_cast< AggregateDecl* >( aggregateDecl ) ); |
---|
51 | } |
---|
52 | |
---|
53 | void Visitor::visit( EnumDecl *aggregateDecl ) { |
---|
54 | handleAggregateDecl( static_cast< AggregateDecl* >( aggregateDecl ) ); |
---|
55 | } |
---|
56 | |
---|
57 | void Visitor::visit( TraitDecl *aggregateDecl ) { |
---|
58 | handleAggregateDecl( static_cast< AggregateDecl* >( aggregateDecl ) ); |
---|
59 | } |
---|
60 | |
---|
61 | void Visitor::handleNamedTypeDecl( NamedTypeDecl *typeDecl ) { |
---|
62 | acceptAll( typeDecl->get_parameters(), *this ); |
---|
63 | acceptAll( typeDecl->get_assertions(), *this ); |
---|
64 | maybeAccept( typeDecl->get_base(), *this ); |
---|
65 | } |
---|
66 | |
---|
67 | void Visitor::visit( TypeDecl *typeDecl ) { |
---|
68 | handleNamedTypeDecl( static_cast< NamedTypeDecl* >( typeDecl ) ); |
---|
69 | maybeAccept( typeDecl->get_init(), *this ); |
---|
70 | } |
---|
71 | |
---|
72 | void Visitor::visit( TypedefDecl *typeDecl ) { |
---|
73 | handleNamedTypeDecl( static_cast< NamedTypeDecl* >( typeDecl ) ); |
---|
74 | } |
---|
75 | |
---|
76 | void Visitor::visit( AsmDecl *asmDecl ) { |
---|
77 | maybeAccept( asmDecl->get_stmt(), *this ); |
---|
78 | } |
---|
79 | |
---|
80 | |
---|
81 | void Visitor::visit( CompoundStmt *compoundStmt ) { |
---|
82 | acceptAll( compoundStmt->get_kids(), *this ); |
---|
83 | } |
---|
84 | |
---|
85 | void Visitor::visit( ExprStmt *exprStmt ) { |
---|
86 | maybeAccept( exprStmt->get_expr(), *this ); |
---|
87 | } |
---|
88 | |
---|
89 | void Visitor::visit( AsmStmt *asmStmt ) { |
---|
90 | maybeAccept( asmStmt->get_instruction(), *this ); |
---|
91 | acceptAll( asmStmt->get_output(), *this ); |
---|
92 | acceptAll( asmStmt->get_input(), *this ); |
---|
93 | acceptAll( asmStmt->get_clobber(), *this ); |
---|
94 | } |
---|
95 | |
---|
96 | void Visitor::visit( IfStmt *ifStmt ) { |
---|
97 | maybeAccept( ifStmt->get_condition(), *this ); |
---|
98 | maybeAccept( ifStmt->get_thenPart(), *this ); |
---|
99 | maybeAccept( ifStmt->get_elsePart(), *this ); |
---|
100 | } |
---|
101 | |
---|
102 | void Visitor::visit( WhileStmt *whileStmt ) { |
---|
103 | maybeAccept( whileStmt->get_condition(), *this ); |
---|
104 | maybeAccept( whileStmt->get_body(), *this ); |
---|
105 | } |
---|
106 | |
---|
107 | void Visitor::visit( ForStmt *forStmt ) { |
---|
108 | acceptAll( forStmt->get_initialization(), *this ); |
---|
109 | maybeAccept( forStmt->get_condition(), *this ); |
---|
110 | maybeAccept( forStmt->get_increment(), *this ); |
---|
111 | maybeAccept( forStmt->get_body(), *this ); |
---|
112 | } |
---|
113 | |
---|
114 | void Visitor::visit( SwitchStmt *switchStmt ) { |
---|
115 | maybeAccept( switchStmt->get_condition(), *this ); |
---|
116 | acceptAll( switchStmt->get_statements(), *this ); |
---|
117 | } |
---|
118 | |
---|
119 | void Visitor::visit( CaseStmt *caseStmt ) { |
---|
120 | maybeAccept( caseStmt->get_condition(), *this ); |
---|
121 | acceptAll( caseStmt->get_statements(), *this ); |
---|
122 | } |
---|
123 | |
---|
124 | void Visitor::visit( __attribute__((unused)) BranchStmt *branchStmt ) { |
---|
125 | } |
---|
126 | |
---|
127 | void Visitor::visit( ReturnStmt *returnStmt ) { |
---|
128 | maybeAccept( returnStmt->get_expr(), *this ); |
---|
129 | } |
---|
130 | |
---|
131 | void Visitor::visit( ThrowStmt * throwStmt ) { |
---|
132 | maybeAccept( throwStmt->get_expr(), *this ); |
---|
133 | maybeAccept( throwStmt->get_target(), *this ); |
---|
134 | } |
---|
135 | |
---|
136 | void Visitor::visit( TryStmt *tryStmt ) { |
---|
137 | maybeAccept( tryStmt->get_block(), *this ); |
---|
138 | acceptAll( tryStmt->get_catchers(), *this ); |
---|
139 | maybeAccept( tryStmt->get_finally(), *this ); |
---|
140 | } |
---|
141 | |
---|
142 | void Visitor::visit( CatchStmt *catchStmt ) { |
---|
143 | maybeAccept( catchStmt->get_decl(), *this ); |
---|
144 | maybeAccept( catchStmt->get_cond(), *this ); |
---|
145 | maybeAccept( catchStmt->get_body(), *this ); |
---|
146 | } |
---|
147 | |
---|
148 | void Visitor::visit( FinallyStmt *finalStmt ) { |
---|
149 | maybeAccept( finalStmt->get_block(), *this ); |
---|
150 | } |
---|
151 | |
---|
152 | void Visitor::visit( __attribute__((unused)) NullStmt *nullStmt ) { |
---|
153 | } |
---|
154 | |
---|
155 | void Visitor::visit( DeclStmt *declStmt ) { |
---|
156 | maybeAccept( declStmt->get_decl(), *this ); |
---|
157 | } |
---|
158 | |
---|
159 | void Visitor::visit( ImplicitCtorDtorStmt *impCtorDtorStmt ) { |
---|
160 | maybeAccept( impCtorDtorStmt->get_callStmt(), *this ); |
---|
161 | } |
---|
162 | |
---|
163 | |
---|
164 | void Visitor::visit( ApplicationExpr *applicationExpr ) { |
---|
165 | maybeAccept( applicationExpr->get_result(), *this ); |
---|
166 | maybeAccept( applicationExpr->get_function(), *this ); |
---|
167 | acceptAll( applicationExpr->get_args(), *this ); |
---|
168 | } |
---|
169 | |
---|
170 | void Visitor::visit( UntypedExpr *untypedExpr ) { |
---|
171 | maybeAccept( untypedExpr->get_result(), *this ); |
---|
172 | acceptAll( untypedExpr->get_args(), *this ); |
---|
173 | } |
---|
174 | |
---|
175 | void Visitor::visit( NameExpr *nameExpr ) { |
---|
176 | maybeAccept( nameExpr->get_result(), *this ); |
---|
177 | } |
---|
178 | |
---|
179 | void Visitor::visit( AddressExpr *addressExpr ) { |
---|
180 | maybeAccept( addressExpr->get_result(), *this ); |
---|
181 | maybeAccept( addressExpr->get_arg(), *this ); |
---|
182 | } |
---|
183 | |
---|
184 | void Visitor::visit( LabelAddressExpr *labAddressExpr ) { |
---|
185 | maybeAccept( labAddressExpr->get_result(), *this ); |
---|
186 | maybeAccept( labAddressExpr->get_arg(), *this ); |
---|
187 | } |
---|
188 | |
---|
189 | void Visitor::visit( CastExpr *castExpr ) { |
---|
190 | maybeAccept( castExpr->get_result(), *this ); |
---|
191 | maybeAccept( castExpr->get_arg(), *this ); |
---|
192 | } |
---|
193 | |
---|
194 | void Visitor::visit( VirtualCastExpr *castExpr ) { |
---|
195 | maybeAccept( castExpr->get_result(), *this ); |
---|
196 | maybeAccept( castExpr->get_arg(), *this ); |
---|
197 | } |
---|
198 | |
---|
199 | void Visitor::visit( UntypedMemberExpr *memberExpr ) { |
---|
200 | maybeAccept( memberExpr->get_result(), *this ); |
---|
201 | maybeAccept( memberExpr->get_aggregate(), *this ); |
---|
202 | maybeAccept( memberExpr->get_member(), *this ); |
---|
203 | } |
---|
204 | |
---|
205 | void Visitor::visit( MemberExpr *memberExpr ) { |
---|
206 | maybeAccept( memberExpr->get_result(), *this ); |
---|
207 | maybeAccept( memberExpr->get_aggregate(), *this ); |
---|
208 | } |
---|
209 | |
---|
210 | void Visitor::visit( VariableExpr *variableExpr ) { |
---|
211 | maybeAccept( variableExpr->get_result(), *this ); |
---|
212 | } |
---|
213 | |
---|
214 | void Visitor::visit( ConstantExpr *constantExpr ) { |
---|
215 | maybeAccept( constantExpr->get_result(), *this ); |
---|
216 | maybeAccept( constantExpr->get_constant(), *this ); |
---|
217 | } |
---|
218 | |
---|
219 | void Visitor::visit( SizeofExpr *sizeofExpr ) { |
---|
220 | maybeAccept( sizeofExpr->get_result(), *this ); |
---|
221 | if ( sizeofExpr->get_isType() ) { |
---|
222 | maybeAccept( sizeofExpr->get_type(), *this ); |
---|
223 | } else { |
---|
224 | maybeAccept( sizeofExpr->get_expr(), *this ); |
---|
225 | } |
---|
226 | } |
---|
227 | |
---|
228 | void Visitor::visit( AlignofExpr *alignofExpr ) { |
---|
229 | maybeAccept( alignofExpr->get_result(), *this ); |
---|
230 | if ( alignofExpr->get_isType() ) { |
---|
231 | maybeAccept( alignofExpr->get_type(), *this ); |
---|
232 | } else { |
---|
233 | maybeAccept( alignofExpr->get_expr(), *this ); |
---|
234 | } |
---|
235 | } |
---|
236 | |
---|
237 | void Visitor::visit( UntypedOffsetofExpr *offsetofExpr ) { |
---|
238 | maybeAccept( offsetofExpr->get_result(), *this ); |
---|
239 | maybeAccept( offsetofExpr->get_type(), *this ); |
---|
240 | } |
---|
241 | |
---|
242 | void Visitor::visit( OffsetofExpr *offsetofExpr ) { |
---|
243 | maybeAccept( offsetofExpr->get_result(), *this ); |
---|
244 | maybeAccept( offsetofExpr->get_type(), *this ); |
---|
245 | maybeAccept( offsetofExpr->get_member(), *this ); |
---|
246 | } |
---|
247 | |
---|
248 | void Visitor::visit( OffsetPackExpr *offsetPackExpr ) { |
---|
249 | maybeAccept( offsetPackExpr->get_result(), *this ); |
---|
250 | maybeAccept( offsetPackExpr->get_type(), *this ); |
---|
251 | } |
---|
252 | |
---|
253 | void Visitor::visit( AttrExpr *attrExpr ) { |
---|
254 | maybeAccept( attrExpr->get_result(), *this ); |
---|
255 | if ( attrExpr->get_isType() ) { |
---|
256 | maybeAccept( attrExpr->get_type(), *this ); |
---|
257 | } else { |
---|
258 | maybeAccept( attrExpr->get_expr(), *this ); |
---|
259 | } |
---|
260 | } |
---|
261 | |
---|
262 | void Visitor::visit( LogicalExpr *logicalExpr ) { |
---|
263 | maybeAccept( logicalExpr->get_result(), *this ); |
---|
264 | maybeAccept( logicalExpr->get_arg1(), *this ); |
---|
265 | maybeAccept( logicalExpr->get_arg2(), *this ); |
---|
266 | } |
---|
267 | |
---|
268 | void Visitor::visit( ConditionalExpr *conditionalExpr ) { |
---|
269 | maybeAccept( conditionalExpr->get_result(), *this ); |
---|
270 | maybeAccept( conditionalExpr->get_arg1(), *this ); |
---|
271 | maybeAccept( conditionalExpr->get_arg2(), *this ); |
---|
272 | maybeAccept( conditionalExpr->get_arg3(), *this ); |
---|
273 | } |
---|
274 | |
---|
275 | void Visitor::visit( CommaExpr *commaExpr ) { |
---|
276 | maybeAccept( commaExpr->get_result(), *this ); |
---|
277 | maybeAccept( commaExpr->get_arg1(), *this ); |
---|
278 | maybeAccept( commaExpr->get_arg2(), *this ); |
---|
279 | } |
---|
280 | |
---|
281 | void Visitor::visit( TypeExpr *typeExpr ) { |
---|
282 | maybeAccept( typeExpr->get_result(), *this ); |
---|
283 | maybeAccept( typeExpr->get_type(), *this ); |
---|
284 | } |
---|
285 | |
---|
286 | void Visitor::visit( AsmExpr *asmExpr ) { |
---|
287 | maybeAccept( asmExpr->get_inout(), *this ); |
---|
288 | maybeAccept( asmExpr->get_constraint(), *this ); |
---|
289 | maybeAccept( asmExpr->get_operand(), *this ); |
---|
290 | } |
---|
291 | |
---|
292 | void Visitor::visit( ImplicitCopyCtorExpr *impCpCtorExpr ) { |
---|
293 | maybeAccept( impCpCtorExpr->get_result(), *this ); |
---|
294 | maybeAccept( impCpCtorExpr->get_callExpr(), *this ); |
---|
295 | acceptAll( impCpCtorExpr->get_tempDecls(), *this ); |
---|
296 | acceptAll( impCpCtorExpr->get_returnDecls(), *this ); |
---|
297 | acceptAll( impCpCtorExpr->get_dtors(), *this ); |
---|
298 | } |
---|
299 | |
---|
300 | void Visitor::visit( ConstructorExpr * ctorExpr ) { |
---|
301 | maybeAccept( ctorExpr->get_result(), *this ); |
---|
302 | maybeAccept( ctorExpr->get_callExpr(), *this ); |
---|
303 | } |
---|
304 | |
---|
305 | void Visitor::visit( CompoundLiteralExpr *compLitExpr ) { |
---|
306 | maybeAccept( compLitExpr->get_result(), *this ); |
---|
307 | maybeAccept( compLitExpr->get_initializer(), *this ); |
---|
308 | } |
---|
309 | |
---|
310 | void Visitor::visit( RangeExpr *rangeExpr ) { |
---|
311 | maybeAccept( rangeExpr->get_low(), *this ); |
---|
312 | maybeAccept( rangeExpr->get_high(), *this ); |
---|
313 | } |
---|
314 | |
---|
315 | void Visitor::visit( UntypedTupleExpr *tupleExpr ) { |
---|
316 | maybeAccept( tupleExpr->get_result(), *this ); |
---|
317 | acceptAll( tupleExpr->get_exprs(), *this ); |
---|
318 | } |
---|
319 | |
---|
320 | void Visitor::visit( TupleExpr *tupleExpr ) { |
---|
321 | maybeAccept( tupleExpr->get_result(), *this ); |
---|
322 | acceptAll( tupleExpr->get_exprs(), *this ); |
---|
323 | } |
---|
324 | |
---|
325 | void Visitor::visit( TupleIndexExpr *tupleExpr ) { |
---|
326 | maybeAccept( tupleExpr->get_result(), *this ); |
---|
327 | maybeAccept( tupleExpr->get_tuple(), *this ); |
---|
328 | } |
---|
329 | |
---|
330 | void Visitor::visit( TupleAssignExpr *assignExpr ) { |
---|
331 | maybeAccept( assignExpr->get_result(), *this ); |
---|
332 | maybeAccept( assignExpr->get_stmtExpr(), *this ); |
---|
333 | } |
---|
334 | |
---|
335 | void Visitor::visit( StmtExpr *stmtExpr ) { |
---|
336 | maybeAccept( stmtExpr->get_result(), *this ); |
---|
337 | maybeAccept( stmtExpr->get_statements(), *this ); |
---|
338 | acceptAll( stmtExpr->get_returnDecls(), *this ); |
---|
339 | acceptAll( stmtExpr->get_dtors(), *this ); |
---|
340 | } |
---|
341 | |
---|
342 | void Visitor::visit( UniqueExpr *uniqueExpr ) { |
---|
343 | maybeAccept( uniqueExpr->get_result(), *this ); |
---|
344 | maybeAccept( uniqueExpr->get_expr(), *this ); |
---|
345 | } |
---|
346 | |
---|
347 | void Visitor::visit( UntypedInitExpr * initExpr ) { |
---|
348 | maybeAccept( initExpr->get_result(), *this ); |
---|
349 | maybeAccept( initExpr->get_expr(), *this ); |
---|
350 | // not currently visiting initAlts, but this doesn't matter since this node is only used in the resolver. |
---|
351 | } |
---|
352 | |
---|
353 | void Visitor::visit( InitExpr * initExpr ) { |
---|
354 | maybeAccept( initExpr->get_result(), *this ); |
---|
355 | maybeAccept( initExpr->get_expr(), *this ); |
---|
356 | maybeAccept( initExpr->get_designation(), *this ); |
---|
357 | } |
---|
358 | |
---|
359 | |
---|
360 | void Visitor::visit( VoidType *voidType ) { |
---|
361 | acceptAll( voidType->get_forall(), *this ); |
---|
362 | } |
---|
363 | |
---|
364 | void Visitor::visit( BasicType *basicType ) { |
---|
365 | acceptAll( basicType->get_forall(), *this ); |
---|
366 | } |
---|
367 | |
---|
368 | void Visitor::visit( PointerType *pointerType ) { |
---|
369 | acceptAll( pointerType->get_forall(), *this ); |
---|
370 | maybeAccept( pointerType->get_base(), *this ); |
---|
371 | } |
---|
372 | |
---|
373 | void Visitor::visit( ArrayType *arrayType ) { |
---|
374 | acceptAll( arrayType->get_forall(), *this ); |
---|
375 | maybeAccept( arrayType->get_dimension(), *this ); |
---|
376 | maybeAccept( arrayType->get_base(), *this ); |
---|
377 | } |
---|
378 | |
---|
379 | void Visitor::visit( FunctionType *functionType ) { |
---|
380 | acceptAll( functionType->get_forall(), *this ); |
---|
381 | acceptAll( functionType->get_returnVals(), *this ); |
---|
382 | acceptAll( functionType->get_parameters(), *this ); |
---|
383 | } |
---|
384 | |
---|
385 | void Visitor::handleReferenceToType( ReferenceToType *aggregateUseType ) { |
---|
386 | acceptAll( aggregateUseType->get_forall(), *this ); |
---|
387 | acceptAll( aggregateUseType->get_parameters(), *this ); |
---|
388 | } |
---|
389 | |
---|
390 | void Visitor::visit( StructInstType *aggregateUseType ) { |
---|
391 | handleReferenceToType( static_cast< ReferenceToType * >( aggregateUseType ) ); |
---|
392 | } |
---|
393 | |
---|
394 | void Visitor::visit( UnionInstType *aggregateUseType ) { |
---|
395 | handleReferenceToType( static_cast< ReferenceToType * >( aggregateUseType ) ); |
---|
396 | } |
---|
397 | |
---|
398 | void Visitor::visit( EnumInstType *aggregateUseType ) { |
---|
399 | handleReferenceToType( static_cast< ReferenceToType * >( aggregateUseType ) ); |
---|
400 | } |
---|
401 | |
---|
402 | void Visitor::visit( TraitInstType *aggregateUseType ) { |
---|
403 | handleReferenceToType( static_cast< ReferenceToType * >( aggregateUseType ) ); |
---|
404 | acceptAll( aggregateUseType->get_members(), *this ); |
---|
405 | } |
---|
406 | |
---|
407 | void Visitor::visit( TypeInstType *aggregateUseType ) { |
---|
408 | handleReferenceToType( static_cast< ReferenceToType * >( aggregateUseType ) ); |
---|
409 | } |
---|
410 | |
---|
411 | void Visitor::visit( TupleType *tupleType ) { |
---|
412 | acceptAll( tupleType->get_forall(), *this ); |
---|
413 | acceptAll( tupleType->get_types(), *this ); |
---|
414 | acceptAll( tupleType->get_members(), *this ); |
---|
415 | } |
---|
416 | |
---|
417 | void Visitor::visit( TypeofType *typeofType ) { |
---|
418 | assert( typeofType->get_expr() ); |
---|
419 | typeofType->get_expr()->accept( *this ); |
---|
420 | } |
---|
421 | |
---|
422 | void Visitor::visit( AttrType *attrType ) { |
---|
423 | if ( attrType->get_isType() ) { |
---|
424 | assert( attrType->get_type() ); |
---|
425 | attrType->get_type()->accept( *this ); |
---|
426 | } else { |
---|
427 | assert( attrType->get_expr() ); |
---|
428 | attrType->get_expr()->accept( *this ); |
---|
429 | } // if |
---|
430 | } |
---|
431 | |
---|
432 | void Visitor::visit( VarArgsType *varArgsType ) { |
---|
433 | acceptAll( varArgsType->get_forall(), *this ); |
---|
434 | } |
---|
435 | |
---|
436 | void Visitor::visit( ZeroType *zeroType ) { |
---|
437 | acceptAll( zeroType->get_forall(), *this ); |
---|
438 | } |
---|
439 | |
---|
440 | void Visitor::visit( OneType *oneType ) { |
---|
441 | acceptAll( oneType->get_forall(), *this ); |
---|
442 | } |
---|
443 | |
---|
444 | void Visitor::visit( Designation * designation ) { |
---|
445 | acceptAll( designation->get_designators(), *this ); |
---|
446 | } |
---|
447 | |
---|
448 | void Visitor::visit( SingleInit *singleInit ) { |
---|
449 | singleInit->get_value()->accept( *this ); |
---|
450 | } |
---|
451 | |
---|
452 | void Visitor::visit( ListInit *listInit ) { |
---|
453 | acceptAll( listInit->get_designations(), *this ); |
---|
454 | acceptAll( listInit->get_initializers(), *this ); |
---|
455 | } |
---|
456 | |
---|
457 | void Visitor::visit( ConstructorInit *ctorInit ) { |
---|
458 | maybeAccept( ctorInit->get_ctor(), *this ); |
---|
459 | maybeAccept( ctorInit->get_dtor(), *this ); |
---|
460 | maybeAccept( ctorInit->get_init(), *this ); |
---|
461 | } |
---|
462 | |
---|
463 | |
---|
464 | void Visitor::visit( __attribute__((unused)) Subrange *subrange ) {} |
---|
465 | |
---|
466 | |
---|
467 | void Visitor::visit( __attribute__((unused)) Constant *constant ) {} |
---|
468 | // Local Variables: // |
---|
469 | // tab-width: 4 // |
---|
470 | // mode: c++ // |
---|
471 | // compile-command: "make install" // |
---|
472 | // End: // |
---|