- Timestamp:
- Jun 20, 2019, 2:32:55 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- b8524ca, f5edcb4
- Parents:
- c0f9efe
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Init.hpp
rc0f9efe r234b1cb 55 55 ConstructFlag maybeConstructed; 56 56 57 Init( const CodeLocation & loc, ConstructFlag mc ) : ParseNode( loc ), maybeConstructed( mc ) {}57 Init( const CodeLocation & loc, ConstructFlag mc ) : ParseNode( loc ), maybeConstructed( mc ) {} 58 58 59 const Init * accept( Visitor & v ) const override = 0;59 const Init * accept( Visitor & v ) const override = 0; 60 60 private: 61 61 Init * clone() const override = 0; … … 69 69 ptr<Expr> value; 70 70 71 SingleInit( const CodeLocation & loc, Expr* val, ConstructFlag mc = DoConstruct )71 SingleInit( const CodeLocation & loc, const Expr * val, ConstructFlag mc = DoConstruct ) 72 72 : Init( loc, mc ), value( val ) {} 73 73 … … 87 87 std::vector<ptr<Designation>> designations; 88 88 89 ListInit( const CodeLocation & loc, std::vector<ptr<Init>>&& is,90 std::vector<ptr<Designation>> && ds = {}, ConstructFlag mc = DoConstruct );89 ListInit( const CodeLocation & loc, std::vector<ptr<Init>> && is, 90 std::vector<ptr<Designation>> && ds = {}, ConstructFlag mc = DoConstruct ); 91 91 92 92 using iterator = std::vector<ptr<Init>>::iterator; … … 114 114 ptr<Init> init; 115 115 116 ConstructorInit( const CodeLocation& loc, Stmt* ctor, Stmt* dtor, Init* init ) 116 ConstructorInit( 117 const CodeLocation & loc, const Stmt * ctor, const Stmt * dtor, const Init * init ) 117 118 : Init( loc, DoConstruct ), ctor( ctor ), dtor( dtor ), init( init ) {} 118 119
Note: See TracChangeset
for help on using the changeset viewer.