Changes in src/SynTree/Declaration.cc [68f9c43:f6e3e34]
- File:
-
- 1 edited
-
src/SynTree/Declaration.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.cc
r68f9c43 rf6e3e34 38 38 } 39 39 40 Declaration::~Declaration() { 41 } 42 40 43 void Declaration::fixUniqueId() { 41 44 // don't need to set unique ID twice … … 65 68 } 66 69 70 AsmDecl::~AsmDecl() { 71 delete stmt; 72 } 73 67 74 void AsmDecl::print( std::ostream &os, Indenter indent ) const { 68 75 stmt->print( os, indent ); … … 74 81 75 82 83 StaticAssertDecl::StaticAssertDecl( Expression * condition, ConstantExpr * message ) : Declaration( "", Type::StorageClasses(), LinkageSpec::C ), condition( condition ), message( message ) { 84 } 85 86 StaticAssertDecl::StaticAssertDecl( const StaticAssertDecl & other ) : Declaration( other ), condition( maybeClone( other.condition ) ), message( maybeClone( other.message ) ) { 87 } 88 89 StaticAssertDecl::~StaticAssertDecl() { 90 delete condition; 91 delete message; 92 } 93 94 void StaticAssertDecl::print( std::ostream &os, Indenter indent ) const { 95 os << "Static Assert with condition: "; 96 condition->print( os, indent+1 ); 97 os << std::endl << indent << "and message: "; 98 message->print( os, indent+1 ); 99 os << std::endl; 100 } 101 102 void StaticAssertDecl::printShort( std::ostream &os, Indenter indent ) const { 103 print( os, indent ); 104 } 105 76 106 // Local Variables: // 77 107 // tab-width: 4 //
Note:
See TracChangeset
for help on using the changeset viewer.