Changes in src/SynTree/Mutator.cc [f1b1e4c:630a82a]
- File:
-
- 1 edited
-
src/SynTree/Mutator.cc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Mutator.cc
rf1b1e4c r630a82a 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 : Rob Schluntz12 // Last Modified On : Wed Apr 27 17:07:29201611 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Apr 1 18:05:16 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 189 184 Expression *Mutator::mutate( ApplicationExpr *applicationExpr ) { 190 185 mutateAll( applicationExpr->get_results(), *this ); … … 279 274 } 280 275 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 287 276 Expression *Mutator::mutate( AttrExpr *attrExpr ) { 288 277 mutateAll( attrExpr->get_results(), *this ); … … 340 329 asmExpr->set_operand( maybeMutate( asmExpr->get_operand(), *this ) ); 341 330 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;349 331 } 350 332 … … 462 444 } 463 445 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 470 446 Subrange *Mutator::mutate( Subrange *subrange ) { 471 447 return subrange;
Note:
See TracChangeset
for help on using the changeset viewer.