Changes in src/AST/Util.cpp [f5dbc8d:90e683b]
- File:
-
- 1 edited
-
src/AST/Util.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Util.cpp
rf5dbc8d 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.