Changes in src/SynTree/Mutator.cc [630a82a:f1b1e4c]
- File:
-
- 1 edited
-
src/SynTree/Mutator.cc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Mutator.cc
r630a82a rf1b1e4c 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Mutator.cc -- 7 // Mutator.cc -- 8 8 // 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Fri Apr 1 18:05:16201611 // Last Modified By : Rob Schluntz 12 // Last Modified On : Wed Apr 27 17:07:29 2016 13 13 // Update Count : 16 14 14 // … … 182 182 } 183 183 184 Statement *Mutator::mutate( ImplicitCtorDtorStmt *impCtorDtorStmt ) { 185 impCtorDtorStmt->set_callStmt( maybeMutate( impCtorDtorStmt->get_callStmt(), *this ) ); 186 return impCtorDtorStmt; 187 } 188 184 189 Expression *Mutator::mutate( ApplicationExpr *applicationExpr ) { 185 190 mutateAll( applicationExpr->get_results(), *this ); … … 274 279 } 275 280 281 Expression *Mutator::mutate( OffsetPackExpr *offsetPackExpr ) { 282 mutateAll( offsetPackExpr->get_results(), *this ); 283 offsetPackExpr->set_type( maybeMutate( offsetPackExpr->get_type(), *this ) ); 284 return offsetPackExpr; 285 } 286 276 287 Expression *Mutator::mutate( AttrExpr *attrExpr ) { 277 288 mutateAll( attrExpr->get_results(), *this ); … … 329 340 asmExpr->set_operand( maybeMutate( asmExpr->get_operand(), *this ) ); 330 341 return asmExpr; 342 } 343 344 Expression* Mutator::mutate( ImplicitCopyCtorExpr *impCpCtorExpr ) { 345 impCpCtorExpr->set_callExpr( maybeMutate( impCpCtorExpr->get_callExpr(), *this ) ); 346 mutateAll( impCpCtorExpr->get_tempDecls(), *this ); 347 mutateAll( impCpCtorExpr->get_returnDecls(), *this ); 348 return impCpCtorExpr; 331 349 } 332 350 … … 444 462 } 445 463 464 Initializer *Mutator::mutate( ConstructorInit *ctorInit ) { 465 ctorInit->set_ctor( maybeMutate( ctorInit->get_ctor(), *this ) ); 466 ctorInit->set_init( maybeMutate( ctorInit->get_init(), *this ) ); 467 return ctorInit; 468 } 469 446 470 Subrange *Mutator::mutate( Subrange *subrange ) { 447 471 return subrange;
Note:
See TracChangeset
for help on using the changeset viewer.