Ignore:
Timestamp:
Sep 16, 2016, 10:48:28 PM (8 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
2298f728
Parents:
ba7aa2d
Message:

more refactoring of parser code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/TypeData.cc

    rba7aa2d r1b77274  
    1010// Created On       : Sat May 16 15:12:51 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Sep 15 23:05:01 2016
    13 // Update Count     : 384
     12// Last Modified On : Fri Sep 16 15:12:55 2016
     13// Update Count     : 388
    1414//
    1515
     
    763763} // buildTypeof
    764764
    765 AttrType * buildAttr( const TypeData * td ) {
    766         assert( false );
    767         return nullptr;
    768         // assert( td->kind == TypeData::Attr );
    769         // // assert( td->attr );
    770         // AttrType * ret;
    771         // if ( td->attr.expr ) {
    772         //      ret = new AttrType( buildQualifiers( td ), td->attr.name, td->attr.expr->build() );
    773         // } else {
    774         //      assert( td->attr.type );
    775         //      ret = new AttrType( buildQualifiers( td ), td->attr.name, td->attr.type->buildType() );
    776         // } // if
    777         // return ret;
    778 } // buildAttr
    779 
    780765Declaration * buildDecl( const TypeData * td, std::string name, DeclarationNode::StorageClass sc, Expression * bitfieldWidth, bool isInline, bool isNoreturn, LinkageSpec::Spec linkage, Initializer * init ) {
    781766        if ( td->kind == TypeData::Function ) {
     
    795780                } // if
    796781                for ( DeclarationNode * cur = td->function.idList; cur != 0; cur = dynamic_cast< DeclarationNode* >( cur->get_next() ) ) {
    797                         if ( cur->get_name() != "" ) {
    798                                 decl->get_oldIdents().insert( decl->get_oldIdents().end(), cur->get_name() );
     782                        if ( cur->name != "" ) {
     783                                decl->get_oldIdents().insert( decl->get_oldIdents().end(), cur->name );
    799784                        } // if
    800785                } // for
Note: See TracChangeset for help on using the changeset viewer.