Changes in src/AST/Expr.hpp [857b5f9:ecf3812]
- File:
-
- 1 edited
-
src/AST/Expr.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Expr.hpp
r857b5f9 recf3812 490 490 }; 491 491 492 class CountExpr final : public Expr { 493 public: 494 ptr<Expr> expr; 495 ptr<Type> type; 496 497 CountExpr( const CodeLocation & loc, const Expr * t ); 498 CountExpr( const CodeLocation & loc, const Type * t ); 499 500 const Expr * accept( Visitor & v )const override { return v.visit( this ); } 501 private: 502 CountExpr * clone() const override { return new CountExpr( *this ); } 503 MUTATE_FRIEND 504 }; 505 492 506 /// alignof expression, e.g. `alignof(int)`, `alignof 3+4` 493 507 class AlignofExpr final : public Expr { … … 500 514 private: 501 515 AlignofExpr * clone() const override { return new AlignofExpr{ *this }; } 502 MUTATE_FRIEND503 };504 505 /// countof expression, e.g. `countof(AnEnum)`, `countof pred(Head)`506 class CountofExpr final : public Expr {507 public:508 ptr<Type> type;509 510 CountofExpr( const CodeLocation & loc, const Type * t );511 512 const Expr * accept( Visitor & v ) const override { return v.visit( this ); }513 private:514 CountofExpr * clone() const override { return new CountofExpr( *this ); }515 516 MUTATE_FRIEND 516 517 };
Note:
See TracChangeset
for help on using the changeset viewer.