Changeset 5f2f2d7 for src/SynTree
- Timestamp:
- Jun 8, 2015, 8:56:35 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:
- 81419b5
- Parents:
- cd623a4
- Location:
- src/SynTree
- Files:
-
- 10 edited
-
BasicType.cc (modified) (1 diff)
-
Constant.cc (modified) (2 diffs)
-
DeclStmt.cc (modified) (2 diffs)
-
Declaration.h (modified) (2 diffs)
-
Expression.cc (modified) (2 diffs)
-
Expression.h (modified) (2 diffs)
-
FunctionDecl.cc (modified) (3 diffs)
-
NamedTypeDecl.cc (modified) (3 diffs)
-
ReferenceToType.cc (modified) (2 diffs)
-
Type.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/BasicType.cc
rcd623a4 r5f2f2d7 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : S at Jun 6 11:52:43201513 // Update Count : 212 // Last Modified On : Sun Jun 7 08:44:36 2015 13 // Update Count : 5 14 14 // 15 15 -
src/SynTree/Constant.cc
rcd623a4 r5f2f2d7 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : S at Jun 6 12:17:22201513 // Update Count : 212 // Last Modified On : Sun Jun 7 08:45:30 2015 13 // Update Count : 5 14 14 // 15 15 … … 29 29 os << value; 30 30 if ( type ) { 31 os << " (type:";31 os << " "; 32 32 type->print( os ); 33 os << ")";34 33 } // if 35 34 } -
src/SynTree/DeclStmt.cc
rcd623a4 r5f2f2d7 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:16:03201513 // Update Count : 212 // Last Modified On : Mon Jun 8 17:24:38 2015 13 // Update Count : 3 14 14 // 15 15 … … 29 29 30 30 void DeclStmt::print( std::ostream &os, int indent ) { 31 assert( decl != 0 ); 31 32 os << "Declaration of "; 32 if ( decl ) { 33 decl->print( os, indent ); 34 } // if 33 decl->print( os, indent ); 35 34 } 36 35 -
src/SynTree/Declaration.h
rcd623a4 r5f2f2d7 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 : Mon May 25 14:08:10201513 // Update Count : 611 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun Jun 7 22:03:43 2015 13 // Update Count : 7 14 14 // 15 15 … … 38 38 virtual ~Declaration(); 39 39 40 std::stringget_name() const { return name; }40 const std::string &get_name() const { return name; } 41 41 void set_name( std::string newValue ) { name = newValue; } 42 42 StorageClass get_storageClass() const { return storageClass; } -
src/SynTree/Expression.cc
rcd623a4 r5f2f2d7 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : S at Jun 6 23:43:22201513 // Update Count : 1 512 // Last Modified On : Sun Jun 7 08:40:46 2015 13 // Update Count : 16 14 14 // 15 15 … … 72 72 73 73 void ConstantExpr::print( std::ostream &os, int indent ) const { 74 os << "constant expression :" ;74 os << "constant expression " ; 75 75 constant.print( os ); 76 76 Expression::print( os, indent ); -
src/SynTree/Expression.h
rcd623a4 r5f2f2d7 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:46:15201513 // Update Count : 312 // Last Modified On : Sun Jun 7 22:03:44 2015 13 // Update Count : 4 14 14 // 15 15 … … 125 125 virtual ~NameExpr(); 126 126 127 std::stringget_name() const { return name; }127 const std::string &get_name() const { return name; } 128 128 void set_name( std::string newValue ) { name = newValue; } 129 129 -
src/SynTree/FunctionDecl.cc
rcd623a4 r5f2f2d7 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu May 21 21:31:16201513 // Update Count : 1 112 // Last Modified On : Sun Jun 7 08:36:44 2015 13 // Update Count : 12 14 14 // 15 15 … … 52 52 53 53 if ( get_name() != "" ) { 54 os << get_name() << ": a";54 os << get_name() << ": "; 55 55 } // if 56 56 if ( get_linkage() != LinkageSpec::Cforall ) { … … 91 91 92 92 if ( get_name() != "" ) { 93 os << get_name() << ": a";93 os << get_name() << ": "; 94 94 } // if 95 95 if ( isInline ) { -
src/SynTree/NamedTypeDecl.cc
rcd623a4 r5f2f2d7 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 10:13:19 201513 // Update Count : 112 // Last Modified On : Sun Jun 7 08:36:09 2015 13 // Update Count : 2 14 14 // 15 15 … … 37 37 38 38 if ( get_name() != "" ) { 39 os << get_name() << ": a";39 os << get_name() << ": "; 40 40 } // if 41 41 if ( get_storageClass() != NoStorageClass ) { … … 61 61 62 62 if ( get_name() != "" ) { 63 os << get_name() << ": a";63 os << get_name() << ": "; 64 64 } // if 65 65 if ( get_storageClass() != NoStorageClass ) { -
src/SynTree/ReferenceToType.cc
rcd623a4 r5f2f2d7 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue May 19 16:52:40201513 // Update Count : 312 // Last Modified On : Sun Jun 7 08:31:48 2015 13 // Update Count : 4 14 14 // 15 15 … … 101 101 102 102 Type::print( os, indent ); 103 os << "instance of " << typeString() << " " << get_name() << " (" << ( isFtype ? "" : "not" ) << " afunction type) ";103 os << "instance of " << typeString() << " " << get_name() << " (" << ( isFtype ? "" : "not" ) << " function type) "; 104 104 if ( ! parameters.empty() ) { 105 105 os << endl << std::string( indent, ' ' ) << "with parameters" << endl; -
src/SynTree/Type.h
rcd623a4 r5f2f2d7 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : S at Jun 6 14:12:14201513 // Update Count : 212 // Last Modified On : Sun Jun 7 21:50:38 2015 13 // Update Count : 12 14 14 // 15 15 … … 214 214 virtual ~ReferenceToType(); 215 215 216 std::stringget_name() const { return name; }216 const std::string &get_name() const { return name; } 217 217 void set_name( std::string newValue ) { name = newValue; } 218 218 std::list< Expression* >& get_parameters() { return parameters; } … … 372 372 virtual ~AttrType(); 373 373 374 std::stringget_name() const { return name; }374 const std::string &get_name() const { return name; } 375 375 void set_name( const std::string &newValue ) { name = newValue; } 376 376 Expression *get_expr() const { return expr; }
Note:
See TracChangeset
for help on using the changeset viewer.