Ignore:
Timestamp:
Dec 11, 2023, 4:18:13 AM (23 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
21ce2c7, 2554f24
Parents:
5ddb8bf (diff), 1c85ffc (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.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/Resolver.cc

    r5ddb8bf r81da3da4  
    2525#include "Resolver.h"
    2626#include "ResolveTypeof.h"
    27 #include "ResolvMode.h"                  // for ResolvMode
     27#include "ResolveMode.hpp"               // for ResolveMode
    2828#include "typeops.h"                     // for extractResultType
    2929#include "Unify.h"                       // for unify
    3030#include "CompilationState.h"
    31 #include "AST/Chain.hpp"
    3231#include "AST/Decl.hpp"
    3332#include "AST/Init.hpp"
     
    104103                                                                }
    105104                                                        }
    106                                                 } 
    107                                         } 
     105                                                }
     106                                        }
    108107                                        visit_children = false;
    109108                                }
     
    123122                CandidateRef findUnfinishedKindExpression(
    124123                        const ast::Expr * untyped, const ResolveContext & context, const std::string & kind,
    125                         std::function<bool(const Candidate &)> pred = anyCandidate, ResolvMode mode = {}
     124                        std::function<bool(const Candidate &)> pred = anyCandidate, ResolveMode mode = {}
    126125                ) {
    127126                        if ( ! untyped ) return nullptr;
     
    263262                ast::ptr< ast::CastExpr > untyped = new ast::CastExpr{ expr };
    264263                CandidateRef choice = findUnfinishedKindExpression(
    265                         untyped, context, "", anyCandidate, ResolvMode::withAdjustment() );
     264                        untyped, context, "", anyCandidate, ResolveMode::withAdjustment() );
    266265
    267266                // a cast expression has either 0 or 1 interpretations (by language rules);
     
    292291                        const ast::Expr * untyped, const ResolveContext & context,
    293292                        std::function<bool(const Candidate &)> pred = anyCandidate,
    294                         const std::string & kind = "", ResolvMode mode = {}
     293                        const std::string & kind = "", ResolveMode mode = {}
    295294                ) {
    296295                        if ( ! untyped ) return {};
     
    607606                                ( objectDecl->get_type() )->base->base ) {
    608607                                objectDecl = fixObjectType( objectDecl, context );
    609                                 currentObject = ast::CurrentObject{ 
    610                                         objectDecl->location, 
     608                                currentObject = ast::CurrentObject{
     609                                        objectDecl->location,
    611610                                        enumBase
    612611                                };
     
    860859
    861860                        // Find all candidates for a function in canonical form
    862                         funcFinder.find( clause.target, ResolvMode::withAdjustment() );
     861                        funcFinder.find( clause.target, ResolveMode::withAdjustment() );
    863862
    864863                        if ( funcFinder.candidates.empty() ) {
Note: See TracChangeset for help on using the changeset viewer.