Lines Matching refs:Rhs

320                                                const Expr &Rhs) {  in diagNarrowType()  argument
322 << getUnqualifiedType(Rhs) << getUnqualifiedType(Lhs); in diagNarrowType()
326 SourceLocation SourceLoc, const Expr &Lhs, const Expr &Rhs) { in diagNarrowTypeToSignedInt() argument
329 << getUnqualifiedType(Rhs) << getUnqualifiedType(Lhs); in diagNarrowTypeToSignedInt()
333 SourceLocation SourceLoc, const Expr &Lhs, const Expr &Rhs, in diagNarrowIntegerConstant() argument
337 << getValueAsString(Value, /*NoHex*/ 0) << getUnqualifiedType(Rhs) in diagNarrowIntegerConstant()
342 SourceLocation SourceLoc, const Expr &Lhs, const Expr &Rhs, in diagNarrowIntegerConstantToSignedInt() argument
346 << getValueAsString(Value, HexBits) << getUnqualifiedType(Rhs) in diagNarrowIntegerConstantToSignedInt()
352 const Expr &Rhs) { in diagNarrowConstant() argument
354 << getUnqualifiedType(Rhs) << getUnqualifiedType(Lhs); in diagNarrowConstant()
359 const Expr &Rhs) { in diagConstantCast() argument
361 << getUnqualifiedType(Lhs) << getUnqualifiedType(Rhs); in diagConstantCast()
366 const Expr &Rhs) { in diagNarrowTypeOrConstant() argument
367 APValue Constant = getConstantExprValue(Context, Rhs); in diagNarrowTypeOrConstant()
369 return diagNarrowIntegerConstant(SourceLoc, Lhs, Rhs, Constant.getInt()); in diagNarrowTypeOrConstant()
371 return diagNarrowConstant(SourceLoc, Lhs, Rhs); in diagNarrowTypeOrConstant()
372 return diagNarrowType(SourceLoc, Lhs, Rhs); in diagNarrowTypeOrConstant()
378 const Expr &Rhs) { in handleIntegralCast() argument
388 const BuiltinType *FromType = getBuiltinType(Rhs); in handleIntegralCast()
400 if (getIntegerConstantExprValue(Context, Rhs, IntegerConstant)) { in handleIntegralCast()
402 diagNarrowIntegerConstantToSignedInt(SourceLoc, Lhs, Rhs, in handleIntegralCast()
408 diagNarrowTypeToSignedInt(SourceLoc, Lhs, Rhs); in handleIntegralCast()
414 const Expr &Rhs) { in handleIntegralToBoolean() argument
424 const Expr &Rhs) { in handleIntegralToFloating() argument
428 if (getIntegerConstantExprValue(Context, Rhs, IntegerConstant)) { in handleIntegralToFloating()
430 diagNarrowIntegerConstant(SourceLoc, Lhs, Rhs, IntegerConstant); in handleIntegralToFloating()
434 const BuiltinType *FromType = getBuiltinType(Rhs); in handleIntegralToFloating()
438 diagNarrowType(SourceLoc, Lhs, Rhs); in handleIntegralToFloating()
444 const Expr &Rhs) { in handleFloatingToIntegral() argument
446 if (getFloatingConstantExprValue(Context, Rhs, FloatConstant)) { in handleFloatingToIntegral()
448 return diagNarrowConstant(SourceLoc, Lhs, Rhs); in handleFloatingToIntegral()
451 return diagConstantCast(SourceLoc, Lhs, Rhs); in handleFloatingToIntegral()
456 const BuiltinType *FromType = getBuiltinType(Rhs); in handleFloatingToIntegral()
460 diagNarrowType(SourceLoc, Lhs, Rhs); // Assumed always lossy. in handleFloatingToIntegral()
465 const Expr &Rhs) { in handleFloatingToBoolean() argument
466 return diagNarrowTypeOrConstant(Context, SourceLoc, Lhs, Rhs); in handleFloatingToBoolean()
471 const Expr &Rhs) { in handleBooleanToSignedIntegral() argument
482 const Expr &Rhs) { in handleFloatingCast() argument
485 APValue Constant = getConstantExprValue(Context, Rhs); in handleFloatingCast()
496 diagNarrowConstant(SourceLoc, Lhs, Rhs); in handleFloatingCast()
499 const BuiltinType *FromType = getBuiltinType(Rhs); in handleFloatingCast()
501 diagNarrowType(SourceLoc, Lhs, Rhs); in handleFloatingCast()
508 const Expr &Rhs) { in handleBinaryOperator() argument
509 assert(!Lhs.isInstantiationDependent() && !Rhs.isInstantiationDependent() && in handleBinaryOperator()
512 const BuiltinType *RhsType = getBuiltinType(Rhs); in handleBinaryOperator()
516 return handleBooleanToSignedIntegral(Context, SourceLoc, Lhs, Rhs); in handleBinaryOperator()
518 return handleIntegralToBoolean(Context, SourceLoc, Lhs, Rhs); in handleBinaryOperator()
520 return handleIntegralToFloating(Context, SourceLoc, Lhs, Rhs); in handleBinaryOperator()
522 return handleIntegralCast(Context, SourceLoc, Lhs, Rhs); in handleBinaryOperator()
524 return handleFloatingToBoolean(Context, SourceLoc, Lhs, Rhs); in handleBinaryOperator()
526 return handleFloatingToIntegral(Context, SourceLoc, Lhs, Rhs); in handleBinaryOperator()
528 return handleFloatingCast(Context, SourceLoc, Lhs, Rhs); in handleBinaryOperator()
532 const ASTContext &Context, const Expr &Lhs, const Expr &Rhs) { in handleConditionalOperator() argument
533 if (const auto *CO = llvm::dyn_cast<ConditionalOperator>(&Rhs)) { in handleConditionalOperator()
551 const Expr &Rhs = *Cast.getSubExpr(); in handleImplicitCast() local
552 if (Lhs.isInstantiationDependent() || Rhs.isInstantiationDependent()) in handleImplicitCast()
554 if (handleConditionalOperator(Context, Lhs, Rhs)) in handleImplicitCast()
559 return handleBooleanToSignedIntegral(Context, SourceLoc, Lhs, Rhs); in handleImplicitCast()
561 return handleIntegralToBoolean(Context, SourceLoc, Lhs, Rhs); in handleImplicitCast()
563 return handleIntegralToFloating(Context, SourceLoc, Lhs, Rhs); in handleImplicitCast()
565 return handleIntegralCast(Context, SourceLoc, Lhs, Rhs); in handleImplicitCast()
567 return handleFloatingToBoolean(Context, SourceLoc, Lhs, Rhs); in handleImplicitCast()
569 return handleFloatingToIntegral(Context, SourceLoc, Lhs, Rhs); in handleImplicitCast()
571 return handleFloatingCast(Context, SourceLoc, Lhs, Rhs); in handleImplicitCast()
582 const Expr &Rhs = *Op.getRHS(); in handleBinaryOperator() local
583 if (Lhs.isInstantiationDependent() || Rhs.isInstantiationDependent()) in handleBinaryOperator()
585 if (handleConditionalOperator(Context, Lhs, Rhs)) in handleBinaryOperator()
587 handleBinaryOperator(Context, Rhs.getBeginLoc(), Lhs, Rhs); in handleBinaryOperator()