Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/StatementNode.cpp

    r7a8de40 rcd28605  
    1111// Created On       : Sat May 16 14:59:41 2015
    1212// Last Modified By : Peter A. Buhr
    13 // Last Modified On : Sat Apr 19 13:01:31 2025
    14 // Update Count     : 436
     13// Last Modified On : Thu Feb  6 11:38:39 2025
     14// Update Count     : 434
    1515//
    1616
     
    119119} // build_expr
    120120
    121 static ast::Expr * build_if_control( CondCtrl * ctrl, std::vector<ast::ptr<ast::Stmt>> & inits ) {
     121static ast::Expr * build_if_control( CondCtrl * ctrl,
     122                std::vector<ast::ptr<ast::Stmt>> & inits ) {
    122123        assert( inits.empty() );
    123124        if ( nullptr != ctrl->init ) {
     
    148149        ast::Stmt const * astelse = buildMoveOptional( else_ );
    149150
    150         return new ast::IfStmt( location, astcond, astthen, astelse, std::move( astinit ) );
     151        return new ast::IfStmt( location, astcond, astthen, astelse,
     152                std::move( astinit )
     153        );
    151154} // build_if
    152155
     
    190193        ast::Expr * astcond = build_if_control( ctrl, astinit ); // ctrl deleted, cond/init set
    191194
    192         return new ast::WhileDoStmt( location, astcond, buildMoveSingle( stmt ), buildMoveOptional( else_ ),
    193                                                                  std::move( astinit ), ast::While );
     195        return new ast::WhileDoStmt( location,
     196                astcond,
     197                buildMoveSingle( stmt ),
     198                buildMoveOptional( else_ ),
     199                std::move( astinit ),
     200                ast::While
     201        );
    194202} // build_while
    195203
Note: See TracChangeset for help on using the changeset viewer.