Changeset 3d618a0 for src/AST/Util.cpp


Ignore:
Timestamp:
Sep 9, 2024, 6:16:09 PM (38 hours ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
aa14aafe
Parents:
d93b813 (diff), f5dbc8d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Util.cpp

    rd93b813 r3d618a0  
    104104        }
    105105        assertf( false, "Member not found." );
    106 }
    107 
    108 template<typename node_t>
    109 void oneOfExprOrType( const node_t * node ) {
    110         if ( node->expr ) {
    111                 assertf( node->expr && !node->type, "Exactly one of expr or type should be set." );
    112         } else {
    113                 assertf( !node->expr && node->type, "Exactly one of expr or type should be set." );
    114         }
    115106}
    116107
     
    159150                previsit( (const ParseNode *)node );
    160151                memberMatchesAggregate( node );
    161         }
    162 
    163         void previsit( const SizeofExpr * node ) {
    164                 previsit( (const ParseNode *)node );
    165                 oneOfExprOrType( node );
    166         }
    167 
    168         void previsit( const AlignofExpr * node ) {
    169                 previsit( (const ParseNode *)node );
    170                 oneOfExprOrType( node );
    171152        }
    172153
Note: See TracChangeset for help on using the changeset viewer.