Changeset 71b5aad5 for src/Parser
- Timestamp:
- Jan 24, 2024, 6:05:54 AM (20 months ago)
- Branches:
- master
- Children:
- 16afb2a, 221c542e, 8a33777
- Parents:
- 544deb9 (diff), 61e362f (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. - Location:
- src/Parser
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ExpressionNode.cc
r544deb9 r71b5aad5 673 673 ast::LogicalFlag flag ) { 674 674 return new ast::LogicalExpr( location, 675 notZeroExpr( maybeMoveBuild( expr_node1 )),676 notZeroExpr( maybeMoveBuild( expr_node2 )),675 maybeMoveBuild( expr_node1 ), 676 maybeMoveBuild( expr_node2 ), 677 677 flag 678 678 ); … … 713 713 ExpressionNode * expr_node3 ) { 714 714 return new ast::ConditionalExpr( location, 715 notZeroExpr( maybeMoveBuild( expr_node1 )),715 maybeMoveBuild( expr_node1 ), 716 716 maybeMoveBuild( expr_node2 ), 717 717 maybeMoveBuild( expr_node3 ) -
src/Parser/parserutility.cc
r544deb9 r71b5aad5 27 27 // if ( (int)(x != 0) ) ... 28 28 29 ast::Expr * notZeroExpr( ast::Expr * orig ) {29 ast::Expr * notZeroExpr( const ast::Expr * orig ) { 30 30 return ( !orig ) ? nullptr : new ast::CastExpr( orig->location, 31 31 ast::UntypedExpr::createCall( orig->location, -
src/Parser/parserutility.h
r544deb9 r71b5aad5 21 21 } 22 22 23 ast::Expr * notZeroExpr( ast::Expr *orig );23 ast::Expr * notZeroExpr( const ast::Expr *orig ); 24 24 25 25 template< typename T >
Note:
See TracChangeset
for help on using the changeset viewer.