Changeset a32b204 for translator/InitTweak/BasicInit.cc
- Timestamp:
- May 17, 2015, 1:19:35 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 0dd3a2f
- Parents:
- b87a5ed
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/InitTweak/BasicInit.cc
rb87a5ed ra32b204 50 50 ObjectDecl *odecl = 0; 51 51 52 if ( ( odecl = dynamic_cast<ObjectDecl *>(declStmt->get_decl()) ) != 0 ){52 if ( ( odecl = dynamic_cast<ObjectDecl *>(declStmt->get_decl()) ) != 0 ){ 53 53 54 54 Initializer *init = odecl->get_init(); … … 133 133 134 134 ReferenceToType *reftype; 135 if ( (reftype = dynamic_cast< StructInstType * >( objdecl->get_type() )) != 0 ){135 if ( (reftype = dynamic_cast< StructInstType * >( objdecl->get_type() )) != 0 ){ 136 136 StructDecl *strDecl = index->lookupStruct( reftype->get_name() ); 137 137 if ( strDecl != 0 ) { … … 169 169 170 170 if ( li != 0 ) { 171 for ( std::list<Initializer *>::iterator i = li->begin_initializers();171 for ( std::list<Initializer *>::iterator i = li->begin_initializers(); 172 172 i != li->end_initializers(); 173 173 i++) { … … 181 181 std::back_inserter( des ), cast_ptr<Expression, NameExpr > ); 182 182 183 for ( std::list<NameExpr *>::iterator j = des.begin(); j != des.end(); j++ ) {183 for ( std::list<NameExpr *>::iterator j = des.begin(); j != des.end(); j++ ) { 184 184 // check for existence of the element 185 185 … … 230 230 if ( col->isComposite() ) { 231 231 VariousNames *vc = dynamic_cast< VariousNames * >( col ); 232 for ( VariousNames::key_iterator it = vc->keys_begin(); it != vc->keys_end(); it++ ) {232 for ( VariousNames::key_iterator it = vc->keys_begin(); it != vc->keys_end(); it++ ) { 233 233 prefix.push_back( *it ); 234 234 if ( (*assoc)[ *it ] != 0 )
Note: See TracChangeset
for help on using the changeset viewer.