Changeset 58dd019 for src/SynTree/DeclarationWithType.cc
- Timestamp:
- Dec 13, 2016, 3:14:59 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:
- 04c8bba
- Parents:
- 2ee5426
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/DeclarationWithType.cc
r2ee5426 r58dd019 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : T hu Aug 18 23:50:41201613 // Update Count : 412 // Last Modified On : Tue Dec 13 14:49:43 2016 13 // Update Count : 7 14 14 // 15 15 … … 20 20 21 21 DeclarationWithType::DeclarationWithType( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Spec linkage, const std::list< Attribute * > & attributes ) 22 : Declaration( name, sc, linkage), attributes( attributes ) {22 : Declaration( name, sc, linkage ), asmName( nullptr ), attributes( attributes ) { 23 23 } 24 24 … … 26 26 : Declaration( other ), mangleName( other.mangleName ), scopeLevel( other.scopeLevel ) { 27 27 cloneAll( other.attributes, attributes ); 28 asmName = maybeClone( other.asmName ); 28 29 } 29 30 30 31 DeclarationWithType::~DeclarationWithType() { 31 32 deleteAll( attributes ); 33 delete asmName; 32 34 } 33 35
Note: See TracChangeset
for help on using the changeset viewer.