Ignore:
Timestamp:
Nov 17, 2023, 3:03:51 PM (11 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
f7f997a
Parents:
41606df1
Message:

Most of ResolvExpr? was written before the new style standard. Some files updated, focus on headers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/CandidateFinder.cpp

    r41606df1 r2908f08  
    751751                        const ast::Type * returnType = funcType->returns.front();
    752752                        if ( selfFinder.strictMode ) {
    753                                 if ( ! unifyExact(
     753                                if ( !unifyExact(
    754754                                        returnType, targetType, funcEnv, funcNeed, funcHave, funcOpen, noWiden() ) // xxx - is no widening correct?
    755755                                ) {
     
    757757                                        return;
    758758                                }
    759                         }
    760                         else {
    761                                 if ( ! unify(
     759                        } else {
     760                                if ( !unify(
    762761                                        returnType, targetType, funcEnv, funcNeed, funcHave, funcOpen )
    763762                                ) {
     
    11091108                                                intrinsicResult.emplace_back(std::move(withFunc));
    11101109                                        }
    1111                                 }
    1112                                 else {
     1110                                } else {
    11131111                                        candidates.emplace_back( std::move( withFunc ) );
    11141112                                }
     
    11561154
    11571155                for ( CandidateRef & r : finder.candidates ) {
    1158                         if ( ! isLvalue( r->expr ) ) continue;
     1156                        if ( !isLvalue( r->expr ) ) continue;
    11591157                        addCandidate( *r, new ast::AddressExpr{ addressExpr->location, r->expr } );
    11601158                }
Note: See TracChangeset for help on using the changeset viewer.