Changes in src/SynTree/Expression.cc [47534159:d0d9610]
- File:
-
- 1 edited
-
src/SynTree/Expression.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Expression.cc
r47534159 rd0d9610 122 122 void SizeofExpr::print( std::ostream &os, int indent) const { 123 123 os << std::string( indent, ' ' ) << "Sizeof Expression on: "; 124 125 if (isType)126 type->print(os, indent + 2);127 else128 expr->print(os, indent + 2);129 130 os << std::endl;131 Expression::print( os, indent );132 }133 134 AlignofExpr::AlignofExpr( Expression *expr_, Expression *_aname ) :135 Expression( _aname ), expr(expr_), type(0), isType(false) {136 add_result( new BasicType( Type::Qualifiers(), BasicType::UnsignedInt ) );137 }138 139 AlignofExpr::AlignofExpr( Type *type_, Expression *_aname ) :140 Expression( _aname ), expr(0), type(type_), isType(true) {141 add_result( new BasicType( Type::Qualifiers(), BasicType::UnsignedInt ) );142 }143 144 AlignofExpr::AlignofExpr( const AlignofExpr &other ) :145 Expression( other ), expr( maybeClone( other.expr ) ), type( maybeClone( other.type ) ), isType( other.isType ) {146 }147 148 AlignofExpr::~AlignofExpr() {149 delete expr;150 delete type;151 }152 153 void AlignofExpr::print( std::ostream &os, int indent) const {154 os << std::string( indent, ' ' ) << "Alignof Expression on: ";155 124 156 125 if (isType)
Note:
See TracChangeset
for help on using the changeset viewer.