Changeset 83c7e3c for src/ResolvExpr
- Timestamp:
- Dec 23, 2020, 6:37:35 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- a3a76ea, c20533ea
- Parents:
- 4c19647 (diff), 09867ec (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/ResolvExpr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/CandidateFinder.cpp
r4c19647 r83c7e3c 905 905 // xxx - is it possible that handleTupleAssignment and main finder both produce candidates? 906 906 // this means there exists ctor/assign functions with a tuple as first parameter. 907 funcFinder.find( untypedExpr->func, selfFinder.candidates.empty() ? ResolvMode::withAdjustment() : ResolvMode::withoutFailFast() ); 907 ResolvMode mode = { 908 true, // adjust 909 !untypedExpr->func.as<ast::NameExpr>(), // prune if not calling by name 910 selfFinder.candidates.empty() // failfast if other options are not found 911 }; 912 funcFinder.find( untypedExpr->func, mode ); 908 913 // short-circuit if no candidates 909 914 // if ( funcFinder.candidates.empty() ) return; -
src/ResolvExpr/ResolvMode.h
r4c19647 r83c7e3c 23 23 const bool failFast; ///< Fail on no resulting alternatives? [true] 24 24 25 private:26 25 constexpr ResolvMode(bool a, bool p, bool ff) 27 26 : adjust(a), prune(p), failFast(ff) {} 28 27 29 public:30 28 /// Default settings 31 29 constexpr ResolvMode() : adjust(false), prune(true), failFast(true) {}
Note:
See TracChangeset
for help on using the changeset viewer.