Changes in src/AST/Init.hpp [16ba4a6f:99da267]
- File:
-
- 1 edited
-
src/AST/Init.hpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Init.hpp
r16ba4a6f r99da267 50 50 51 51 /// Flag for whether to construct from initialzier 52 enum ConstructFlag { NoConstruct, MaybeConstruct };52 enum ConstructFlag { DoConstruct, MaybeConstruct }; 53 53 54 54 /// Object initializer base class … … 71 71 ptr<Expr> value; 72 72 73 SingleInit( const CodeLocation & loc, const Expr * val, ConstructFlag mc = NoConstruct )73 SingleInit( const CodeLocation & loc, const Expr * val, ConstructFlag mc = DoConstruct ) 74 74 : Init( loc, mc ), value( val ) {} 75 75 … … 90 90 91 91 ListInit( const CodeLocation & loc, std::vector<ptr<Init>> && is, 92 std::vector<ptr<Designation>> && ds = {}, ConstructFlag mc = NoConstruct );92 std::vector<ptr<Designation>> && ds = {}, ConstructFlag mc = DoConstruct ); 93 93 94 94 using iterator = std::vector<ptr<Init>>::iterator; … … 118 118 ConstructorInit( 119 119 const CodeLocation & loc, const Stmt * ctor, const Stmt * dtor, const Init * init ) 120 : Init( loc, MaybeConstruct ), ctor( ctor ), dtor( dtor ), init( init ) {}120 : Init( loc, DoConstruct ), ctor( ctor ), dtor( dtor ), init( init ) {} 121 121 122 122 const Init * accept( Visitor & v ) const override { return v.visit( this ); }
Note:
See TracChangeset
for help on using the changeset viewer.