Changeset a4da45e for src/Validate
- Timestamp:
- Feb 26, 2024, 3:53:42 AM (7 months ago)
- Branches:
- master
- Children:
- 3f9a8d0
- Parents:
- 0522ebe (diff), 022bce0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Validate/Autogen.cpp
r0522ebe ra4da45e 133 133 /// Generates a single struct member operation. 134 134 /// (constructor call, destructor call, assignment call) 135 // This is managed because it uses another helper that returns a ast::ptr. 136 ast::ptr<ast::Stmt> makeMemberOp( 135 const ast::Stmt * makeMemberOp( 137 136 const CodeLocation& location, 138 137 const ast::ObjectDecl * dstParam, const ast::Expr * src, … … 525 524 } 526 525 527 ast::ptr<ast::Stmt>StructFuncGenerator::makeMemberOp(526 const ast::Stmt * StructFuncGenerator::makeMemberOp( 528 527 const CodeLocation& location, const ast::ObjectDecl * dstParam, 529 528 const ast::Expr * src, const ast::ObjectDecl * field, … … 540 539 ) 541 540 ); 542 autostmt = genImplicitCall(541 const ast::Stmt * stmt = genImplicitCall( 543 542 srcParam, dstSelect, location, func->name, 544 543 field, direction … … 598 597 location, field, new ast::VariableExpr( location, srcParam ) 599 598 ) : nullptr; 600 ast::ptr<ast::Stmt>stmt =599 const ast::Stmt * stmt = 601 600 makeMemberOp( location, dstParam, srcSelect, field, func, direction ); 602 601 603 602 if ( nullptr != stmt ) { 604 stmts->kids. push_back( stmt );603 stmts->kids.emplace_back( stmt ); 605 604 } 606 605 } … … 623 622 for ( auto param = params.begin() + 1 ; current != end ; ++current ) { 624 623 const ast::ptr<ast::Decl> & member = *current; 625 ast::ptr<ast::Stmt>stmt = nullptr;624 const ast::Stmt * stmt = nullptr; 626 625 auto field = member.as<ast::ObjectDecl>(); 627 626 // Not sure why it could be null. … … 641 640 642 641 if ( nullptr != stmt ) { 643 stmts->kids. push_back( stmt );642 stmts->kids.emplace_back( stmt ); 644 643 } 645 644 }
Note: See TracChangeset
for help on using the changeset viewer.