Changeset d2ded3e7 for src/SynTree
- Timestamp:
- Oct 28, 2015, 3:47:29 PM (10 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:
- 37a3b8f9, 4673385, e56cfdb0
- Parents:
- 698664b3 (diff), 097e2b0 (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:
-
- 4 edited
-
ArrayType.cc (modified) (2 diffs)
-
BasicType.cc (modified) (2 diffs)
-
Expression.cc (modified) (3 diffs)
-
Initializer.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/ArrayType.cc
r698664b3 rd2ded3e7 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 : Sat Jun 6 14:11:48201513 // Update Count : 911 // Last Modified By : Rob Schluntz 12 // Last Modified On : Wed Aug 12 14:19:07 2015 13 // Update Count : 11 14 14 // 15 15 … … 50 50 } // if 51 51 if ( dimension ) { 52 os << " with dimension of ";53 dimension->print( os, indent);52 os << " with dimension of "; 53 dimension->print( os, 0 ); 54 54 } // if 55 55 } -
src/SynTree/BasicType.cc
r698664b3 rd2ded3e7 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 : Sun Jun 7 08:44:36201513 // Update Count : 511 // Last Modified By : Rob Schluntz 12 // Last Modified On : Wed Aug 12 14:15:45 2015 13 // Update Count : 6 14 14 // 15 15 … … 28 28 29 29 Type::print( os, indent ); 30 os << kindNames[ kind ] << ' ';30 os << kindNames[ kind ]; 31 31 } 32 32 -
src/SynTree/Expression.cc
r698664b3 rd2ded3e7 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 : Tue Jul 28 16:27:17201513 // Update Count : 2211 // Last Modified By : Rob Schluntz 12 // Last Modified On : Wed Sep 02 12:07:10 2015 13 // Update Count : 33 14 14 // 15 15 … … 31 31 Expression::Expression( Expression *_aname ) : env( 0 ), argName( _aname ) {} 32 32 33 Expression::Expression( const Expression &other ) : env( maybeClone( other.env ) ) {33 Expression::Expression( const Expression &other ) : env( maybeClone( other.env ) ), argName( maybeClone( other.get_argName() ) ) { 34 34 cloneAll( other.results, results ); 35 argName = other.get_argName();36 35 } 37 36 … … 72 71 73 72 void ConstantExpr::print( std::ostream &os, int indent ) const { 74 os << "constant expression " ;73 os << std::string( indent, ' ' ) << "constant expression " ; 75 74 constant.print( os ); 76 75 Expression::print( os, indent ); 76 os << std::endl; 77 77 } 78 78 -
src/SynTree/Initializer.cc
r698664b3 rd2ded3e7 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.