Changeset d58ebf3 for src/SynTree/Initializer.cc
- Timestamp:
- Aug 12, 2015, 2:24:56 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:
- e869d663
- Parents:
- a3a17ba
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Initializer.cc
ra3a17ba rd58ebf3 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Mon May 18 09:02:45 201513 // Update Count : 211 // Last Modified By : Rob Schluntz 12 // Last Modified On : Wed Aug 12 14:05:25 2015 13 // Update Count : 14 14 14 // 15 15 … … 43 43 44 44 void SingleInit::print( std::ostream &os, int indent ) { 45 os << std::endl << std::string(indent, ' ' ) << "Simple Initializer: " ;46 value->print( os, indent+ 2);45 os << std::endl << std::string(indent, ' ' ) << "Simple Initializer: " << std::endl; 46 value->print( os, indent+4 ); 47 47 48 48 if ( ! designators.empty() ) { 49 os << std::endl << std::string(indent + 2, ' ' ) << "designated by: " ;50 for ( std::list < Expression * >::iterator i = designators.begin(); i != designators.end(); i++ ) 49 os << std::endl << std::string(indent + 2, ' ' ) << "designated by: " << std::endl; 50 for ( std::list < Expression * >::iterator i = designators.begin(); i != designators.end(); i++ ) { 51 51 ( *i )->print(os, indent + 4 ); 52 } 52 53 } // if 53 54 }
Note: See TracChangeset
for help on using the changeset viewer.