Changeset 1b77274 for src/Parser/TypeData.cc
- Timestamp:
- Sep 16, 2016, 10:48:28 PM (8 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/TypeData.cc
rba7aa2d r1b77274 10 10 // Created On : Sat May 16 15:12:51 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Sep 15 23:05:01201613 // Update Count : 38 412 // Last Modified On : Fri Sep 16 15:12:55 2016 13 // Update Count : 388 14 14 // 15 15 … … 763 763 } // buildTypeof 764 764 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 // } // if777 // return ret;778 } // buildAttr779 780 765 Declaration * buildDecl( const TypeData * td, std::string name, DeclarationNode::StorageClass sc, Expression * bitfieldWidth, bool isInline, bool isNoreturn, LinkageSpec::Spec linkage, Initializer * init ) { 781 766 if ( td->kind == TypeData::Function ) { … … 795 780 } // if 796 781 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 ); 799 784 } // if 800 785 } // for
Note: See TracChangeset
for help on using the changeset viewer.