Changeset 61e362f
- Timestamp:
- Jan 23, 2024, 2:16:13 PM (20 months ago)
- Branches:
- master
- Children:
- 71b5aad5
- Parents:
- a4ed165
- Location:
- src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cpp
ra4ed165 r61e362f 1135 1135 if ( clause->when_cond ) { 1136 1136 output << "when("; 1137 stmt->timeout_cond->accept( *visitor );1137 clause->when_cond->accept( *visitor ); 1138 1138 output << ") "; 1139 1139 } -
src/InitTweak/FixInit.cpp
ra4ed165 r61e362f 1176 1176 throw errors; 1177 1177 } 1178 // return funcDecl;1179 1178 return function; 1180 1179 } -
src/Parser/ExpressionNode.cc
ra4ed165 r61e362f 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
ra4ed165 r61e362f 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
ra4ed165 r61e362f 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 > -
src/ResolvExpr/CandidateFinder.cpp
ra4ed165 r61e362f 46 46 #include "AST/Type.hpp" 47 47 #include "Common/utility.h" // for move, copy 48 #include "Parser/parserutility.h" // for notZeroExpr 48 49 #include "SymTab/Mangler.h" 49 50 #include "Tuples/Tuples.h" // for handleTupleAssignment … … 1502 1503 void Finder::postvisit( const ast::LogicalExpr * logicalExpr ) { 1503 1504 CandidateFinder finder1( context, tenv ); 1504 finder1.find( logicalExpr->arg1, ResolveMode::withAdjustment() ); 1505 ast::ptr<ast::Expr> arg1 = notZeroExpr( logicalExpr->arg1 ); 1506 finder1.find( arg1, ResolveMode::withAdjustment() ); 1505 1507 if ( finder1.candidates.empty() ) return; 1506 1508 1507 1509 CandidateFinder finder2( context, tenv ); 1508 finder2.find( logicalExpr->arg2, ResolveMode::withAdjustment() ); 1510 ast::ptr<ast::Expr> arg2 = notZeroExpr( logicalExpr->arg2 ); 1511 finder2.find( arg2, ResolveMode::withAdjustment() ); 1509 1512 if ( finder2.candidates.empty() ) return; 1510 1513 … … 1532 1535 // candidates for condition 1533 1536 CandidateFinder finder1( context, tenv ); 1534 finder1.find( conditionalExpr->arg1, ResolveMode::withAdjustment() ); 1537 ast::ptr<ast::Expr> arg1 = notZeroExpr( conditionalExpr->arg1 ); 1538 finder1.find( arg1, ResolveMode::withAdjustment() ); 1535 1539 if ( finder1.candidates.empty() ) return; 1536 1540 -
src/main.cc
ra4ed165 r61e362f 82 82 #include "Validate/ReturnCheck.hpp" // for checkReturnStatements 83 83 #include "Validate/VerifyCtorDtorAssign.hpp" // for verifyCtorDtorAssign 84 #include "Validate/ReplacePseudoFunc.hpp" 84 #include "Validate/ReplacePseudoFunc.hpp" // for replacePseudoFunc 85 85 #include "Virtual/ExpandCasts.h" // for expandCasts 86 86 #include "Virtual/VirtualDtor.hpp" // for implementVirtDtors
Note:
See TracChangeset
for help on using the changeset viewer.