Changeset 7bf7fb9 for src/SynTree
- Timestamp:
- Aug 7, 2016, 9:47:37 AM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, 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:
- 04273e9, d1625f8
- Parents:
- 35f9114
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Expression.h
r35f9114 r7bf7fb9 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Aug 5 14:23:58201613 // Update Count : 3 212 // Last Modified On : Sat Aug 6 08:52:53 2016 13 // Update Count : 35 14 14 // 15 15 … … 28 28 class Expression { 29 29 public: 30 Expression( Expression *_aname = 0);30 Expression( Expression *_aname = nullptr ); 31 31 Expression( const Expression &other ); 32 32 virtual ~Expression(); … … 98 98 class UntypedExpr : public Expression { 99 99 public: 100 UntypedExpr( Expression *function, Expression *_aname = 0);100 UntypedExpr( Expression *function, Expression *_aname = nullptr ); 101 101 UntypedExpr( const UntypedExpr &other ); 102 UntypedExpr( Expression *function, std::list<Expression *> &args, Expression *_aname = 0);102 UntypedExpr( Expression *function, std::list<Expression *> &args, Expression *_aname = nullptr ); 103 103 virtual ~UntypedExpr(); 104 104 … … 124 124 class NameExpr : public Expression { 125 125 public: 126 NameExpr( std::string name, Expression *_aname = 0);126 NameExpr( std::string name, Expression *_aname = nullptr ); 127 127 NameExpr( const NameExpr &other ); 128 128 virtual ~NameExpr(); … … 145 145 class AddressExpr : public Expression { 146 146 public: 147 AddressExpr( Expression *arg, Expression *_aname = 0);147 AddressExpr( Expression *arg, Expression *_aname = nullptr ); 148 148 AddressExpr( const AddressExpr &other ); 149 149 virtual ~AddressExpr(); … … 181 181 class CastExpr : public Expression { 182 182 public: 183 CastExpr( Expression *arg, Expression *_aname = 0);184 CastExpr( Expression *arg, Type *toType, Expression *_aname = 0);183 CastExpr( Expression *arg, Expression *_aname = nullptr ); 184 CastExpr( Expression *arg, Type *toType, Expression *_aname = nullptr ); 185 185 CastExpr( const CastExpr &other ); 186 186 virtual ~CastExpr(); … … 200 200 class UntypedMemberExpr : public Expression { 201 201 public: 202 UntypedMemberExpr( std::string member, Expression *aggregate, Expression *_aname = 0);202 UntypedMemberExpr( std::string member, Expression *aggregate, Expression *_aname = nullptr ); 203 203 UntypedMemberExpr( const UntypedMemberExpr &other ); 204 204 virtual ~UntypedMemberExpr(); … … 221 221 class MemberExpr : public Expression { 222 222 public: 223 MemberExpr( DeclarationWithType *member, Expression *aggregate, Expression *_aname = 0);223 MemberExpr( DeclarationWithType *member, Expression *aggregate, Expression *_aname = nullptr ); 224 224 MemberExpr( const MemberExpr &other ); 225 225 virtual ~MemberExpr(); … … 242 242 class VariableExpr : public Expression { 243 243 public: 244 VariableExpr( DeclarationWithType *var, Expression *_aname = 0);244 VariableExpr( DeclarationWithType *var, Expression *_aname = nullptr ); 245 245 VariableExpr( const VariableExpr &other ); 246 246 virtual ~VariableExpr(); … … 260 260 class ConstantExpr : public Expression { 261 261 public: 262 ConstantExpr( Constant constant, Expression *_aname = 0);262 ConstantExpr( Constant constant, Expression *_aname = nullptr ); 263 263 ConstantExpr( const ConstantExpr &other ); 264 264 virtual ~ConstantExpr(); … … 278 278 class SizeofExpr : public Expression { 279 279 public: 280 SizeofExpr( Expression *expr, Expression *_aname = 0);280 SizeofExpr( Expression *expr, Expression *_aname = nullptr ); 281 281 SizeofExpr( const SizeofExpr &other ); 282 SizeofExpr( Type *type, Expression *_aname = 0);282 SizeofExpr( Type *type, Expression *_aname = nullptr ); 283 283 virtual ~SizeofExpr(); 284 284 … … 303 303 class AlignofExpr : public Expression { 304 304 public: 305 AlignofExpr( Expression *expr, Expression *_aname = 0);305 AlignofExpr( Expression *expr, Expression *_aname = nullptr ); 306 306 AlignofExpr( const AlignofExpr &other ); 307 AlignofExpr( Type *type, Expression *_aname = 0);307 AlignofExpr( Type *type, Expression *_aname = nullptr ); 308 308 virtual ~AlignofExpr(); 309 309 … … 328 328 class UntypedOffsetofExpr : public Expression { 329 329 public: 330 UntypedOffsetofExpr( Type *type, const std::string &member, Expression *_aname = 0);330 UntypedOffsetofExpr( Type *type, const std::string &member, Expression *_aname = nullptr ); 331 331 UntypedOffsetofExpr( const UntypedOffsetofExpr &other ); 332 332 virtual ~UntypedOffsetofExpr(); … … 349 349 class OffsetofExpr : public Expression { 350 350 public: 351 OffsetofExpr( Type *type, DeclarationWithType *member, Expression *_aname = 0);351 OffsetofExpr( Type *type, DeclarationWithType *member, Expression *_aname = nullptr ); 352 352 OffsetofExpr( const OffsetofExpr &other ); 353 353 virtual ~OffsetofExpr(); … … 390 390 class AttrExpr : public Expression { 391 391 public: 392 AttrExpr(Expression *attr, Expression *expr, Expression *_aname = 0);392 AttrExpr(Expression *attr, Expression *expr, Expression *_aname = nullptr ); 393 393 AttrExpr( const AttrExpr &other ); 394 AttrExpr( Expression *attr, Type *type, Expression *_aname = 0);394 AttrExpr( Expression *attr, Type *type, Expression *_aname = nullptr ); 395 395 virtual ~AttrExpr(); 396 396 … … 418 418 class LogicalExpr : public Expression { 419 419 public: 420 LogicalExpr( Expression *arg1, Expression *arg2, bool andp = true, Expression *_aname = 0);420 LogicalExpr( Expression *arg1, Expression *arg2, bool andp = true, Expression *_aname = nullptr ); 421 421 LogicalExpr( const LogicalExpr &other ); 422 422 virtual ~LogicalExpr(); … … 441 441 class ConditionalExpr : public Expression { 442 442 public: 443 ConditionalExpr( Expression *arg1, Expression *arg2, Expression *arg3, Expression *_aname = 0);443 ConditionalExpr( Expression *arg1, Expression *arg2, Expression *arg3, Expression *_aname = nullptr ); 444 444 ConditionalExpr( const ConditionalExpr &other ); 445 445 virtual ~ConditionalExpr(); … … 465 465 class CommaExpr : public Expression { 466 466 public: 467 CommaExpr( Expression *arg1, Expression *arg2, Expression *_aname = 0);467 CommaExpr( Expression *arg1, Expression *arg2, Expression *_aname = nullptr ); 468 468 CommaExpr( const CommaExpr &other ); 469 469 virtual ~CommaExpr(); … … 486 486 class TupleExpr : public Expression { 487 487 public: 488 TupleExpr( Expression *_aname = 0);488 TupleExpr( Expression *_aname = nullptr ); 489 489 TupleExpr( const TupleExpr &other ); 490 490 virtual ~TupleExpr(); … … 504 504 class SolvedTupleExpr : public Expression { 505 505 public: 506 SolvedTupleExpr( Expression *_aname = 0) : Expression( _aname ) {}507 SolvedTupleExpr( std::list<Expression *> &, Expression *_aname = 0);506 SolvedTupleExpr( Expression *_aname = nullptr ) : Expression( _aname ) {} 507 SolvedTupleExpr( std::list<Expression *> &, Expression *_aname = nullptr ); 508 508 SolvedTupleExpr( const SolvedTupleExpr &other ); 509 509 virtual ~SolvedTupleExpr() {} … … 598 598 class UntypedValofExpr : public Expression { 599 599 public: 600 UntypedValofExpr( Statement *_body, Expression *_aname = 0) : Expression( _aname ), body ( _body ) {}600 UntypedValofExpr( Statement *_body, Expression *_aname = nullptr ) : Expression( _aname ), body ( _body ) {} 601 601 UntypedValofExpr( const UntypedValofExpr & other ); 602 602 virtual ~UntypedValofExpr();
Note: See TracChangeset
for help on using the changeset viewer.