Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Mutator.cc

    r630a82a rf1b1e4c  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // Mutator.cc -- 
     7// Mutator.cc --
    88//
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Apr  1 18:05:16 2016
     11// Last Modified By : Rob Schluntz
     12// Last Modified On : Wed Apr 27 17:07:29 2016
    1313// Update Count     : 16
    1414//
     
    182182}
    183183
     184Statement *Mutator::mutate( ImplicitCtorDtorStmt *impCtorDtorStmt ) {
     185        impCtorDtorStmt->set_callStmt( maybeMutate( impCtorDtorStmt->get_callStmt(), *this ) );
     186        return impCtorDtorStmt;
     187}
     188
    184189Expression *Mutator::mutate( ApplicationExpr *applicationExpr ) {
    185190        mutateAll( applicationExpr->get_results(), *this );
     
    274279}
    275280
     281Expression *Mutator::mutate( OffsetPackExpr *offsetPackExpr ) {
     282        mutateAll( offsetPackExpr->get_results(), *this );
     283        offsetPackExpr->set_type( maybeMutate( offsetPackExpr->get_type(), *this ) );
     284        return offsetPackExpr;
     285}
     286
    276287Expression *Mutator::mutate( AttrExpr *attrExpr ) {
    277288        mutateAll( attrExpr->get_results(), *this );
     
    329340        asmExpr->set_operand( maybeMutate( asmExpr->get_operand(), *this ) );
    330341        return asmExpr;
     342}
     343
     344Expression* 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;
    331349}
    332350
     
    444462}
    445463
     464Initializer *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
    446470Subrange *Mutator::mutate( Subrange *subrange ) {
    447471        return subrange;
Note: See TracChangeset for help on using the changeset viewer.