Ignore:
Timestamp:
Jun 5, 2017, 3:16:16 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:
c81ebf9
Parents:
7e003011
Message:

PassVisitor? now supports field skip_children

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/PassVisitor.impl.h

    r7e003011 r7b13aeb  
    33#define VISIT_START( node )  \
    44        call_previsit( node ); \
    5 
    6 #define VISIT_END( node )                \
     5        if( visit_children() ) { \
     6
     7#define VISIT_END( node )            \
     8        }                              \
    79        return call_postvisit( node ); \
    810
    911#define MUTATE_START( node )  \
    1012        call_premutate( node ); \
     13        if( visit_children() ) { \
    1114
    1215#define MUTATE_END( type, node )                \
     16        }                                         \
    1317        return call_postmutate< type * >( node ); \
    1418
Note: See TracChangeset for help on using the changeset viewer.