Changeset 90e683b for src/AST/Util.cpp
- Timestamp:
- Feb 3, 2025, 11:46:55 AM (2 months ago)
- Branches:
- master
- Children:
- 54f70c6
- Parents:
- bbbff10
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/AST/Util.cpp ¶
rbbbff10 r90e683b 85 85 // Check that `type->returns` corresponds with `decl->returns`. 86 86 assert( type->returns.size() == decl->returns.size() ); 87 } 88 89 /// Check that an enumeration has not been made with an inconsistent spec. 90 void isEnumerationConsistent( const EnumDecl * node ) { 91 if ( node->is_c_enum() ) { 92 assert( nullptr == node->base ); 93 } 87 94 } 88 95 … … 135 142 previsit( (const ParseNode *)node ); 136 143 functionDeclMatchesType( node ); 144 } 145 146 void previsit( const EnumDecl * node ) { 147 previsit( (const ParseNode *)node ); 148 isEnumerationConsistent( node ); 137 149 } 138 150
Note: See TracChangeset
for help on using the changeset viewer.