Changeset 5b2f5bb for src/SynTree/Initializer.cc
- Timestamp:
- Mar 30, 2016, 3:48:55 PM (8 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, with_gc
- Children:
- e0323a2
- Parents:
- 4cc4286
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Initializer.cc
r4cc4286 r5b2f5bb 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Wed Jan 13 15:31:45201612 // Last Modified On : Wed Mar 30 13:58:32 2016 13 13 // Update Count : 28 14 14 // … … 16 16 #include "Initializer.h" 17 17 #include "Expression.h" 18 #include "Statement.h" 18 19 #include "Common/utility.h" 19 20 … … 81 82 82 83 83 ConstructorInit::ConstructorInit( Expression * ctor, Initializer * init ) : Initializer( true ), ctor( ctor ), init( init ) {}84 ConstructorInit::ConstructorInit( Statement * ctor, Statement * dtor, Initializer * init ) : Initializer( true ), ctor( ctor ), dtor( dtor ), init( init ) {} 84 85 ConstructorInit::~ConstructorInit() { 85 86 delete ctor; … … 98 99 } // if 99 100 101 if ( dtor ) { 102 os << " destructed with "; 103 dtor->print( os, indent+2 ); 104 } 105 100 106 if ( init ) { 101 107 os << " with fallback C-style initializer: ";
Note: See TracChangeset
for help on using the changeset viewer.