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