Changeset bb8ea30
- Timestamp:
- May 13, 2016, 1:22:24 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:
- d668182
- Parents:
- 9243a501
- Location:
- src/SynTree
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/ArrayType.cc
r9243a501 rbb8ea30 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
r9243a501 rbb8ea30 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:14:09 201612 // Last Modified On : Fri May 13 13:19:09 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 … … 323 322 os << ", from aggregate: "; 324 323 if (agg != 0) { 324 os << std::string( indent + 2, ' ' ); 325 325 agg->print(os, indent + 2); 326 326 } … … 358 358 os << std::string( indent, ' ' ) << "from aggregate: " << std::endl; 359 359 if (agg != 0) { 360 os << std::string( indent + 2, ' ' ); 360 361 agg->print(os, indent + 2); 361 362 } … … 379 380 void UntypedExpr::print( std::ostream &os, int indent ) const { 380 381 os << "Applying untyped: " << std::endl; 381 os << std::string( indent+ 4, ' ' );382 function->print(os, indent + 4);382 os << std::string( indent+2, ' ' ); 383 function->print(os, indent + 2); 383 384 os << std::string( indent, ' ' ) << "...to: " << std::endl; 384 printAll(args, os, indent + 4);385 printAll(args, os, indent + 2); 385 386 Expression::print( os, indent ); 386 387 } -
src/SynTree/Initializer.cc
r9243a501 rbb8ea30 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 12:50:47201612 // Last Modified On : Fri May 13 13:19:30 2016 13 13 // Update Count : 28 14 14 // … … 48 48 49 49 if ( ! designators.empty() ) { 50 os << std::endl << std::string(indent + 2, ' ' ) << "designated by: " 50 os << std::endl << std::string(indent + 2, ' ' ) << "designated by: " << std::endl; 51 51 for ( std::list < Expression * >::iterator i = designators.begin(); i != designators.end(); i++ ) { 52 os << std::string(indent + 4, ' ' ); 52 53 ( *i )->print(os, indent + 4 ); 53 54 } -
src/SynTree/ObjectDecl.cc
r9243a501 rbb8ea30 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:11:56201612 // Last Modified On : Fri May 13 13:20:17 2016 13 13 // Update Count : 30 14 14 // … … 56 56 57 57 if ( init ) { 58 os << std::string(indent, ' ');59 58 os << " with initializer "; 60 59 init->print( os, indent ); -
src/SynTree/Statement.cc
r9243a501 rbb8ea30 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.