Changeset d668182
- Timestamp:
- May 13, 2016, 1:28:17 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, with_gc
- Children:
- 102b0cd
- Parents:
- 7b3f66b (diff), bb8ea30 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- src/SynTree
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/ArrayType.cc
r7b3f66b rd668182 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // ArrayType.cc -- 7 // ArrayType.cc -- 8 8 // 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Wed Aug 12 14:19:07 201512 // Last Modified On : Thu May 12 14:07:16 2016 13 13 // Update Count : 11 14 14 // … … 51 51 if ( dimension ) { 52 52 os << " with dimension of "; 53 dimension->print( os, 0);53 dimension->print( os, indent ); 54 54 } // if 55 55 } -
src/SynTree/Expression.cc
r7b3f66b rd668182 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Wed May 04 12:17:51 201612 // Last Modified On : Fri May 13 13:23:11 2016 13 13 // Update Count : 40 14 14 // … … 75 75 constant.print( os ); 76 76 Expression::print( os, indent ); 77 os << std::endl;78 77 } 79 78 … … 325 324 os << ", from aggregate: "; 326 325 if (agg != 0) { 326 os << std::string( indent + 2, ' ' ); 327 327 agg->print(os, indent + 2); 328 328 } … … 360 360 os << std::string( indent, ' ' ) << "from aggregate: " << std::endl; 361 361 if (agg != 0) { 362 os << std::string( indent + 2, ' ' ); 362 363 agg->print(os, indent + 2); 363 364 } … … 381 382 void UntypedExpr::print( std::ostream &os, int indent ) const { 382 383 os << "Applying untyped: " << std::endl; 383 os << std::string( indent+ 4, ' ' );384 function->print(os, indent + 4);384 os << std::string( indent+2, ' ' ); 385 function->print(os, indent + 2); 385 386 os << std::string( indent, ' ' ) << "...to: " << std::endl; 386 printAll(args, os, indent + 4);387 printAll(args, os, indent + 2); 387 388 Expression::print( os, indent ); 388 389 } -
src/SynTree/Initializer.cc
r7b3f66b rd668182 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Tue Apr 26 15:51:35201612 // Last Modified On : Fri May 13 13:23:03 2016 13 13 // Update Count : 28 14 14 // … … 49 49 50 50 if ( ! designators.empty() ) { 51 os << std::endl << std::string(indent + 2, ' ' ) << "designated by: " 51 os << std::endl << std::string(indent + 2, ' ' ) << "designated by: " << std::endl; 52 52 for ( std::list < Expression * >::iterator i = designators.begin(); i != designators.end(); i++ ) { 53 os << std::string(indent + 4, ' ' ); 53 54 ( *i )->print(os, indent + 4 ); 54 55 } -
src/SynTree/ObjectDecl.cc
r7b3f66b rd668182 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Wed May 04 12:18:28201612 // Last Modified On : Fri May 13 13:23:32 2016 13 13 // Update Count : 30 14 14 // … … 57 57 58 58 if ( init ) { 59 os << std::string(indent, ' ');60 59 os << " with initializer "; 61 60 init->print( os, indent ); 62 os << std::string(indent, ' ') << "maybeConstructed? " << init->get_maybeConstructed(); 61 os << std::endl << std::string(indent, ' '); 62 os << "maybeConstructed? " << init->get_maybeConstructed(); 63 63 } // if 64 64 -
src/SynTree/Statement.cc
r7b3f66b rd668182 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Thu Apr 28 13:34:32201612 // Last Modified On : Thu May 12 13:33:18 2016 13 13 // Update Count : 54 14 14 // … … 43 43 44 44 void ExprStmt::print( std::ostream &os, int indent ) const { 45 os << "Expression Statement:" << endl << std::string( indent , ' ' );45 os << "Expression Statement:" << endl << std::string( indent + 2, ' ' ); 46 46 expr->print( os, indent + 2 ); 47 47 } … … 290 290 os << string( indent + 2, ' ' ) << "initialization: \n"; 291 291 for ( std::list<Statement *>::const_iterator it = initialization.begin(); it != initialization.end(); ++it ) { 292 os << string( indent + 4, ' ' ); 292 293 (*it)->print( os, indent + 4 ); 293 294 } 294 295 295 296 os << "\n" << string( indent + 2, ' ' ) << "condition: \n"; 296 if ( condition != 0 ) 297 if ( condition != 0 ) { 298 os << string( indent + 4, ' ' ); 297 299 condition->print( os, indent + 4 ); 300 } 298 301 299 302 os << "\n" << string( indent + 2, ' ' ) << "increment: \n"; 300 if ( increment != 0 ) 303 if ( increment != 0 ) { 304 os << string( indent + 4, ' ' ); 301 305 increment->print( os, indent + 4 ); 306 } 302 307 303 308 os << "\n" << string( indent + 2, ' ' ) << "statement block: \n"; 304 if ( body != 0 ) 309 if ( body != 0 ) { 310 os << string( indent + 4, ' ' ); 305 311 body->print( os, indent + 4 ); 312 } 306 313 307 314 os << endl;
Note: See TracChangeset
for help on using the changeset viewer.