Changeset 43c89a7 for src/SynTree
- Timestamp:
- Feb 24, 2017, 3:58:03 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, 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:
- 167a9c8
- Parents:
- 24cde55
- Location:
- src/SynTree
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/ReferenceToType.cc
r24cde55 r43c89a7 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 2 17:45:07201713 // Update Count : 2 312 // Last Modified On : Thu Feb 23 16:38:54 2017 13 // Update Count : 24 14 14 // 15 15 … … 23 23 #include "Common/utility.h" 24 24 25 ReferenceToType::ReferenceToType( const Type::Qualifiers &tq, const std::string &name, const std::list< Attribute * > & attributes ) : Type( tq, attributes ), name( name ) {25 ReferenceToType::ReferenceToType( const Type::Qualifiers &tq, const std::string &name, const std::list< Attribute * > & attributes ) : Type( tq, attributes ), name( name ), hoistType( false ) { 26 26 } 27 27 28 ReferenceToType::ReferenceToType( const ReferenceToType &other ) : Type( other ), name( other.name ) {28 ReferenceToType::ReferenceToType( const ReferenceToType &other ) : Type( other ), name( other.name ), hoistType( other.hoistType ) { 29 29 cloneAll( other.parameters, parameters ); 30 30 } -
src/SynTree/Type.h
r24cde55 r43c89a7 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 2 17:43:01201713 // Update Count : 3 312 // Last Modified On : Thu Feb 23 16:38:53 2017 13 // Update Count : 34 14 14 // 15 15 … … 240 240 void set_name( std::string newValue ) { name = newValue; } 241 241 std::list< Expression* >& get_parameters() { return parameters; } 242 bool get_hoistType() const { return hoistType; } 243 void set_hoistType( bool newValue ) { hoistType = newValue; } 242 244 243 245 virtual ReferenceToType *clone() const = 0; … … 250 252 std::string name; 251 253 private: 254 bool hoistType; 252 255 }; 253 256
Note: See TracChangeset
for help on using the changeset viewer.