Searched refs:allowNarrowing (Results 1 – 2 of 2) sorted by relevance
253 const bool allowNarrowing = context.fConfig->fSettings.fAllowNarrowingConversions; in determineBinaryType() local259 return right.canCoerceTo(left, allowNarrowing); in determineBinaryType()266 if (rightToLeft.isPossible(allowNarrowing)) { in determineBinaryType()273 if (leftToRight.isPossible(allowNarrowing)) { in determineBinaryType()288 return left.canCoerceTo(*context.fTypes.fBool, allowNarrowing) && in determineBinaryType()289 right.canCoerceTo(*context.fTypes.fBool, allowNarrowing); in determineBinaryType()382 if (rightToLeftCost.isPossible(allowNarrowing) && rightToLeftCost < leftToRightCost) { in determineBinaryType()387 } else if (leftToRightCost.isPossible(allowNarrowing)) { in determineBinaryType()
32 bool isPossible(bool allowNarrowing) const { in isPossible()33 return !fImpossible && (fNarrowingCost == 0 || allowNarrowing); in isPossible()250 bool canCoerceTo(const Type& other, bool allowNarrowing) const { in canCoerceTo() argument251 return this->coercionCost(other).isPossible(allowNarrowing); in canCoerceTo()