Changeset cf0941d
- Timestamp:
- Jun 4, 2015, 11:08:06 PM (8 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:
- 44b5ca0
- Parents:
- c7ed6d0
- Location:
- src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/utility.h
rc7ed6d0 rcf0941d 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Rob Schluntz12 // Last Modified On : Fri May 29 16:17:02201513 // Update Count : 711 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Jun 4 21:29:57 2015 13 // Update Count : 9 14 14 // 15 15 … … 60 60 for ( typename Container::const_iterator i = container.begin(); i != container.end(); ++i ) { 61 61 if ( *i ) { 62 os << std::string( indent, ' ');62 os << std::string( indent, ' ' ); 63 63 (*i)->print( os, indent + 2 ); 64 64 os << std::endl; … … 151 151 template< typename T > 152 152 void replace( std::list< T > &org, typename std::list< T >::iterator pos, std::list< T > &with ) { 153 // TIter should secretly be a typename std::list< T >::iterator154 // ( g++ 3.2 issues a 'is implicitly a typename' warning if I make this explicit )155 153 typename std::list< T >::iterator next = pos; advance( next, 1 ); 156 154 -
src/Parser/parser.yy
rc7ed6d0 rcf0941d 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Jun 3 22:03:06 201513 // Update Count : 102 012 // Last Modified On : Thu Jun 4 21:38:06 2015 13 // Update Count : 1021 14 14 // 15 15 -
src/SynTree/ArrayType.cc
rc7ed6d0 rcf0941d 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon May 18 07:52:08201513 // Update Count : 212 // Last Modified On : Thu Jun 4 21:16:46 2015 13 // Update Count : 7 14 14 // 15 15 … … 25 25 26 26 ArrayType::ArrayType( const ArrayType &other ) 27 : Type( other ), base( maybeClone( other.base ) ), dimension( maybeClone( other.dimension ) ),28 isVarLen( other.isVarLen ), isStatic( other.isStatic ) {27 : Type( other ), base( maybeClone( other.base ) ), dimension( maybeClone( other.dimension ) ), 28 isVarLen( other.isVarLen ), isStatic( other.isStatic ) { 29 29 } 30 30 … … 43 43 } else if ( dimension ) { 44 44 os << "array of "; 45 dimension->print( os, indent );46 45 } else { 47 46 os << "open array of "; … … 49 48 if ( base ) { 50 49 base->print( os, indent ); 50 } // if 51 if ( dimension ) { 52 dimension->print( os, indent ); 51 53 } // if 52 54 } -
src/SynTree/Expression.cc
rc7ed6d0 rcf0941d 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon May 18 08:27:07201513 // Update Count : 212 // Last Modified On : Thu Jun 4 21:42:55 2015 13 // Update Count : 10 14 14 // 15 15 … … 52 52 void Expression::print(std::ostream &os, int indent) const { 53 53 if ( env ) { 54 os << std::string( indent, ' ') << "with environment:" << std::endl;54 os << std::string( indent, ' ' ) << "with environment:" << std::endl; 55 55 env->print( os, indent+2 ); 56 56 } // if 57 57 58 58 if ( argName ) { 59 os << std::string( indent, ' ') << "with designator:";59 os << std::string( indent, ' ' ) << "with designator:"; 60 60 argName->print( os, indent+2 ); 61 61 } // if … … 72 72 73 73 void ConstantExpr::print( std::ostream &os, int indent ) const { 74 os << std:: string(indent, ' ') << "Constant Expression: ";75 constant.print(os);76 os << std::endl;74 os << std::endl; 75 os << std::string( indent, ' ' ) << "dimension of constant expression: " ; 76 constant.print( os ); 77 77 Expression::print( os, indent ); 78 78 } -
src/SynTree/ObjectDecl.cc
rc7ed6d0 rcf0941d 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Rob Schluntz12 // Last Modified On : Thu May 28 14:10:02 201513 // Update Count : 811 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Jun 4 21:21:12 2015 13 // Update Count : 10 14 14 // 15 15 … … 36 36 void ObjectDecl::print( std::ostream &os, int indent ) const { 37 37 if ( get_name() != "" ) { 38 os << get_name() << ": a";38 os << get_name() << ": "; 39 39 } // if 40 40 … … 67 67 #if 0 68 68 if ( get_mangleName() != "") { 69 os << get_mangleName() << ": a";69 os << get_mangleName() << ": "; 70 70 } else 71 71 #endif 72 72 if ( get_name() != "" ) { 73 os << get_name() << ": a";73 os << get_name() << ": "; 74 74 } // if 75 75 -
src/Tests/SynTree/Array.c
rc7ed6d0 rcf0941d 1 1 int a1[]; 2 2 int a2[*]; 3 int a4[3];3 double a4[3.0]; 4 4 5 5 int m1[][3];
Note: See TracChangeset
for help on using the changeset viewer.