Changeset 06cafa4 for src/SynTree/Declaration.h
- Timestamp:
- Aug 11, 2017, 2:38:10 PM (7 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:
- c3acf0aa
- Parents:
- c65a80b (diff), 2006db0 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
rc65a80b r06cafa4 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Wed Aug 9 14:45:00 201713 // Update Count : 12 612 // Last Modified On : Fri Aug 11 10:20:00 2017 13 // Update Count : 127 14 14 // 15 15 … … 269 269 typedef AggregateDecl Parent; 270 270 public: 271 StructDecl( const std::string &name, DeclarationNode::Aggregate kind = DeclarationNode::Struct, const std::list< Attribute * > & attributes = std::list< class Attribute * >(), LinkageSpec::Spec linkage = LinkageSpec::Cforall ) : Parent( name, attributes, linkage ), kind( kind ), tagged( false ), parent_name( "" ) {} 272 StructDecl( const std::string &name, const std::string *parent, const std::list< Attribute * > & attributes = std::list< class Attribute * >(), LinkageSpec::Spec linkage = LinkageSpec::Cforall ) : Parent( name, attributes, linkage ), kind( DeclarationNode::Struct ), tagged( true ), parent_name( parent ? *parent : "" ) {} 273 StructDecl( const StructDecl &other ) : Parent( other ) {} 271 StructDecl( const std::string &name, DeclarationNode::Aggregate kind = DeclarationNode::Struct, const std::list< Attribute * > & attributes = std::list< class Attribute * >(), LinkageSpec::Spec linkage = LinkageSpec::Cforall ) : Parent( name, attributes, linkage ), kind( kind ) {} 272 StructDecl( const StructDecl &other ) : Parent( other ), kind( other.kind ) {} 274 273 275 274 bool is_coroutine() { return kind == DeclarationNode::Coroutine; } … … 277 276 bool is_thread() { return kind == DeclarationNode::Thread; } 278 277 279 // Tagged/Tree Structure Excetion280 bool get_tagged() { return tagged; }281 void set_tagged( bool newValue ) { tagged = newValue; }282 bool has_parent() { return parent_name != ""; }283 std::string get_parentName() { return parent_name; }284 285 278 virtual StructDecl *clone() const { return new StructDecl( *this ); } 286 279 virtual void accept( Visitor &v ) { v.visit( this ); } … … 289 282 DeclarationNode::Aggregate kind; 290 283 virtual std::string typeString() const; 291 292 bool tagged;293 std::string parent_name;294 284 }; 295 285
Note: See TracChangeset
for help on using the changeset viewer.