Changeset fa463f1 for src/SynTree
- Timestamp:
- Aug 30, 2016, 4:26:01 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- c8dfcd3
- Parents:
- 3906301 (diff), 32a2a99 (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
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
r3906301 rfa463f1 153 153 public: 154 154 NamedTypeDecl( const std::string &name, DeclarationNode::StorageClass sc, Type *type ); 155 NamedTypeDecl( const TypeDecl &other );155 NamedTypeDecl( const NamedTypeDecl &other ); 156 156 virtual ~NamedTypeDecl(); 157 157 -
src/SynTree/NamedTypeDecl.cc
r3906301 rfa463f1 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // NamedTypeDecl.cc -- 7 // NamedTypeDecl.cc -- 8 8 // 9 9 // Author : Richard C. Bilson … … 21 21 : Parent( name, sc, LinkageSpec::Cforall ), base( base ) {} 22 22 23 NamedTypeDecl::NamedTypeDecl( const TypeDecl &other )23 NamedTypeDecl::NamedTypeDecl( const NamedTypeDecl &other ) 24 24 : Parent( other ), base( maybeClone( other.base ) ) { 25 25 cloneAll( other.parameters, parameters ); … … 35 35 void NamedTypeDecl::print( std::ostream &os, int indent ) const { 36 36 using namespace std; 37 37 38 38 if ( get_name() != "" ) { 39 39 os << get_name() << ": "; … … 59 59 void NamedTypeDecl::printShort( std::ostream &os, int indent ) const { 60 60 using namespace std; 61 61 62 62 if ( get_name() != "" ) { 63 63 os << get_name() << ": "; -
src/SynTree/ReferenceToType.cc
r3906301 rfa463f1 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // ReferenceToType.cc -- 7 // ReferenceToType.cc -- 8 8 // 9 9 // Author : Richard C. Bilson … … 36 36 void ReferenceToType::print( std::ostream &os, int indent ) const { 37 37 using std::endl; 38 38 39 39 Type::print( os, indent ); 40 40 os << "instance of " << typeString() << " " << name << " "; … … 128 128 } 129 129 130 TypeInstType::~TypeInstType() { 131 // delete baseType; //This is shared and should not be deleted 132 } 133 130 134 void TypeInstType::set_baseType( TypeDecl *newValue ) { 131 135 baseType = newValue; … … 137 141 void TypeInstType::print( std::ostream &os, int indent ) const { 138 142 using std::endl; 139 143 140 144 Type::print( os, indent ); 141 145 os << "instance of " << typeString() << " " << get_name() << " (" << ( isFtype ? "" : "not" ) << " function type) "; -
src/SynTree/Type.h
r3906301 rfa463f1 327 327 TypeInstType( const Type::Qualifiers &tq, const std::string &name, bool isFtype ); 328 328 TypeInstType( const TypeInstType &other ) : Parent( other ), baseType( other.baseType ), isFtype( other.isFtype ) {} 329 ~TypeInstType(); 329 330 330 331 TypeDecl *get_baseType() const { return baseType; }
Note: See TracChangeset
for help on using the changeset viewer.