Changeset 81da3da4 for src/ResolvExpr/Resolver.cc
- Timestamp:
- Dec 11, 2023, 4:18:13 AM (23 months ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Resolver.cc
r5ddb8bf r81da3da4 25 25 #include "Resolver.h" 26 26 #include "ResolveTypeof.h" 27 #include "Resolv Mode.h" // for ResolvMode27 #include "ResolveMode.hpp" // for ResolveMode 28 28 #include "typeops.h" // for extractResultType 29 29 #include "Unify.h" // for unify 30 30 #include "CompilationState.h" 31 #include "AST/Chain.hpp"32 31 #include "AST/Decl.hpp" 33 32 #include "AST/Init.hpp" … … 104 103 } 105 104 } 106 } 107 } 105 } 106 } 108 107 visit_children = false; 109 108 } … … 123 122 CandidateRef findUnfinishedKindExpression( 124 123 const ast::Expr * untyped, const ResolveContext & context, const std::string & kind, 125 std::function<bool(const Candidate &)> pred = anyCandidate, Resolv Mode mode = {}124 std::function<bool(const Candidate &)> pred = anyCandidate, ResolveMode mode = {} 126 125 ) { 127 126 if ( ! untyped ) return nullptr; … … 263 262 ast::ptr< ast::CastExpr > untyped = new ast::CastExpr{ expr }; 264 263 CandidateRef choice = findUnfinishedKindExpression( 265 untyped, context, "", anyCandidate, Resolv Mode::withAdjustment() );264 untyped, context, "", anyCandidate, ResolveMode::withAdjustment() ); 266 265 267 266 // a cast expression has either 0 or 1 interpretations (by language rules); … … 292 291 const ast::Expr * untyped, const ResolveContext & context, 293 292 std::function<bool(const Candidate &)> pred = anyCandidate, 294 const std::string & kind = "", Resolv Mode mode = {}293 const std::string & kind = "", ResolveMode mode = {} 295 294 ) { 296 295 if ( ! untyped ) return {}; … … 607 606 ( objectDecl->get_type() )->base->base ) { 608 607 objectDecl = fixObjectType( objectDecl, context ); 609 currentObject = ast::CurrentObject{ 610 objectDecl->location, 608 currentObject = ast::CurrentObject{ 609 objectDecl->location, 611 610 enumBase 612 611 }; … … 860 859 861 860 // Find all candidates for a function in canonical form 862 funcFinder.find( clause.target, Resolv Mode::withAdjustment() );861 funcFinder.find( clause.target, ResolveMode::withAdjustment() ); 863 862 864 863 if ( funcFinder.candidates.empty() ) {
Note:
See TracChangeset
for help on using the changeset viewer.