Changes in src/SynTree/ObjectDecl.cc [974906e2:1cbca6e]
- File:
-
- 1 edited
-
src/SynTree/ObjectDecl.cc (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/ObjectDecl.cc
r974906e2 r1cbca6e 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // ObjectDecl.cc -- 7 // ObjectDecl.cc -- 8 8 // 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Fri Jan 08 15:29:10 201613 // Update Count : 2712 // Last Modified On : Tue Sep 29 14:13:01 2015 13 // Update Count : 18 14 14 // 15 15 … … 19 19 #include "Expression.h" 20 20 #include "utility.h" 21 #include "Statement.h"22 21 23 22 ObjectDecl::ObjectDecl( const std::string &name, DeclarationNode::StorageClass sc, LinkageSpec::Type linkage, Expression *bitfieldWidth, Type *type, Initializer *init, bool isInline, bool isNoreturn ) … … 25 24 set_isInline( isInline ); 26 25 set_isNoreturn( isNoreturn ); 27 set_ctor( NULL );28 26 } 29 27 30 28 ObjectDecl::ObjectDecl( const ObjectDecl &other ) 31 : Parent( other ), type( maybeClone( other.type ) ), init( maybeClone( other.init ) ), bitfieldWidth( maybeClone( other.bitfieldWidth ) ) , ctor( maybeClone( other.ctor ) ){29 : Parent( other ), type( maybeClone( other.type ) ), init( maybeClone( other.init ) ), bitfieldWidth( maybeClone( other.bitfieldWidth ) ) { 32 30 } 33 31 … … 36 34 delete init; 37 35 delete bitfieldWidth; 38 delete ctor;39 36 } 40 37 … … 61 58 os << " with initializer "; 62 59 init->print( os, indent ); 63 os << std::string(indent, ' ') << "maybeConstructed? " << init->get_maybeConstructed();64 60 } // if 65 61 … … 68 64 bitfieldWidth->print( os ); 69 65 } // if 70 71 if ( ctor ) {72 os << " initially constructed with ";73 ctor->print( os, indent );74 } // if75 66 } 76 67 … … 78 69 #if 0 79 70 if ( get_mangleName() != "") { 80 os << get_mangleName() << ": "; 81 } else 71 os << get_mangleName() << ": "; 72 } else 82 73 #endif 83 74 if ( get_name() != "" ) {
Note:
See TracChangeset
for help on using the changeset viewer.