Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Util.cpp

    r90e683b rf5dbc8d  
    8585        // Check that `type->returns` corresponds with `decl->returns`.
    8686        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         }
    9487}
    9588
     
    142135                previsit( (const ParseNode *)node );
    143136                functionDeclMatchesType( node );
    144         }
    145 
    146         void previsit( const EnumDecl * node ) {
    147                 previsit( (const ParseNode *)node );
    148                 isEnumerationConsistent( node );
    149137        }
    150138
Note: See TracChangeset for help on using the changeset viewer.