Changeset d7dc824 for src/Common


Ignore:
Timestamp:
Jun 7, 2017, 4:53:42 PM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
c77fd8b, ec95d11
Parents:
af397ef8
Message:

Removed more warnings

Location:
src/Common
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/Common/PassVisitor.h

    raf397ef8 rd7dc824  
    9090        virtual void visit( TupleExpr *tupleExpr ) override final;
    9191        virtual void visit( TupleIndexExpr *tupleExpr ) override final;
    92         virtual void visit( MemberTupleExpr *tupleExpr ) override final;
    9392        virtual void visit( TupleAssignExpr *assignExpr ) override final;
    9493        virtual void visit( StmtExpr * stmtExpr ) override final;
     
    176175        virtual Expression* mutate( TupleExpr *tupleExpr ) override final;
    177176        virtual Expression* mutate( TupleIndexExpr *tupleExpr ) override final;
    178         virtual Expression* mutate( MemberTupleExpr *tupleExpr ) override final;
    179177        virtual Expression* mutate( TupleAssignExpr *assignExpr ) override final;
    180178        virtual Expression* mutate( StmtExpr * stmtExpr ) override final;
  • src/Common/PassVisitor.impl.h

    raf397ef8 rd7dc824  
    617617
    618618template< typename pass_type >
    619 void PassVisitor< pass_type >::visit( MemberTupleExpr * node ) {
    620         VISIT_BODY( node );
    621 }
    622 
    623 template< typename pass_type >
    624619void PassVisitor< pass_type >::visit( TupleAssignExpr * node ) {
    625620        VISIT_BODY( node );
     
    999994
    1000995template< typename pass_type >
    1001 Expression * PassVisitor< pass_type >::mutate( MemberTupleExpr * node ) {
    1002         MUTATE_BODY( Expression, node );
    1003 }
    1004 
    1005 template< typename pass_type >
    1006996Expression * PassVisitor< pass_type >::mutate( TupleAssignExpr * node ) {
    1007997        MUTATE_BODY( Expression, node );
  • src/Common/PassVisitor.proto.h

    raf397ef8 rd7dc824  
    1818// Visit
    1919template<typename pass_type, typename node_type>
    20 static inline auto previsit_impl( pass_type& pass, node_type * node, __attribute__((unused)) int unused ) ->decltype( pass.previsit( node ), void() ) {
     20static inline auto previsit_impl( pass_type& pass, node_type * node, __attribute__((unused)) int unused ) -> decltype( pass.previsit( node ), void() ) {
    2121        pass.previsit( node );
    2222}
     
    2727
    2828template<typename pass_type, typename node_type>
    29 static inline auto postvisit_impl( pass_type& pass, node_type * node, __attribute__((unused)) int unused ) ->decltype( pass.postvisit( node ), void() ) {
     29static inline auto postvisit_impl( pass_type& pass, node_type * node, __attribute__((unused)) int unused ) -> decltype( pass.postvisit( node ), void() ) {
    3030        pass.postvisit( node );
    3131}
     
    3636// Mutate
    3737template<typename pass_type, typename node_type>
    38 static inline auto premutate_impl( pass_type& pass, node_type * node, __attribute__((unused)) int unused ) ->decltype( pass.premutate( node ), void() ) {
     38static inline auto premutate_impl( pass_type& pass, node_type * node, __attribute__((unused)) int unused ) -> decltype( pass.premutate( node ), void() ) {
    3939        return pass.premutate( node );
    4040}
     
    4545
    4646template<typename return_type, typename pass_type, typename node_type>
    47 static inline auto postmutate_impl( pass_type& pass, node_type * node, __attribute__((unused)) int unused ) ->decltype( pass.postmutate( node ) ) {
     47static inline auto postmutate_impl( pass_type& pass, node_type * node, __attribute__((unused)) int unused ) -> decltype( pass.postmutate( node ) ) {
    4848        return pass.postmutate( node );
    4949}
     
    5454// Begin/End scope
    5555template<typename pass_type>
    56 static inline auto begin_scope_impl( pass_type& pass, __attribute__((unused)) int unused ) ->decltype( pass.beginScope(), void() ) {
     56static inline auto begin_scope_impl( pass_type& pass, __attribute__((unused)) int unused ) -> decltype( pass.beginScope(), void() ) {
    5757        pass.beginScope();
    5858}
     
    6363
    6464template<typename pass_type>
    65 static inline auto end_scope_impl( pass_type& pass, __attribute__((unused)) int unused ) ->decltype( pass.endScope(), void() ) {
     65static inline auto end_scope_impl( pass_type& pass, __attribute__((unused)) int unused ) -> decltype( pass.endScope(), void() ) {
    6666        pass.endScope();
    6767}
     
    7373#define FIELD_PTR( type, name )                                                                                                        \
    7474template<typename pass_type>                                                                                                           \
    75 static inline auto name##_impl( pass_type& pass, __attribute__((unused)) int unused ) ->decltype( &pass.name ) { return &pass.name; }  \
     75static inline auto name##_impl( pass_type& pass, __attribute__((unused)) int unused ) -> decltype( &pass.name ) { return &pass.name; }  \
    7676                                                                                                                                       \
    7777template<typename pass_type>                                                                                                           \
Note: See TracChangeset for help on using the changeset viewer.