Changeset 3d618a0 for src/AST/Util.cpp
- Timestamp:
- Sep 9, 2024, 6:16:09 PM (2 months ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Util.cpp
rd93b813 r3d618a0 104 104 } 105 105 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 }115 106 } 116 107 … … 159 150 previsit( (const ParseNode *)node ); 160 151 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 );171 152 } 172 153
Note: See TracChangeset
for help on using the changeset viewer.