Ignore:
Timestamp:
Sep 1, 2025, 9:49:24 PM (3 weeks ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
9f385e4
Parents:
567a75f
Message:

formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/StatementNode.cpp

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