Home | History | Annotate | Download | only in Sema

Lines Matching refs:Rhs

3530     OpaqueValueExpr Rhs(KeyLoc, RhsT.getNonLValueExprType(Self.Context),
3538 ExprResult Result = Self.BuildBinOp(/*S=*/0, KeyLoc, BO_Assign, &Lhs, &Rhs);
3713 QualType Sema::CheckPointerToMemberOperands(ExprResult &LHS, ExprResult &RHS,
3718 !RHS.get()->getType()->isPlaceholderType() &&
3727 // The RHS always undergoes lvalue conversions.
3728 RHS = DefaultLvalueConversion(RHS.take());
3729 if (RHS.isInvalid()) return QualType();
3736 QualType RHSType = RHS.get()->getType();
3740 << OpSpelling << RHSType << RHS.get()->getSourceRange();
3794 if (isa<CXXScalarValueInitExpr>(RHS.get()->IgnoreParens())) {
3950 static bool FindConditionalOverload(Sema &Self, ExprResult &LHS, ExprResult &RHS,
3952 Expr *Args[2] = { LHS.get(), RHS.get() };
3969 Self.PerformImplicitConversion(RHS.get(), Best->BuiltinTypes.ParamTypes[1],
3973 RHS = move(RHSRes);
3984 if (Self.DiagnoseConditionalForNull(LHS.get(), RHS.get(), QuestionLoc))
3988 << LHS.get()->getType() << RHS.get()->getType()
3989 << LHS.get()->getSourceRange() << RHS.get()->getSourceRange();
3994 << LHS.get()->getType() << RHS.get()->getType()
3995 << LHS.get()->getSourceRange() << RHS.get()->getSourceRange();
4026 QualType Sema::CXXCheckConditionalOperands(ExprResult &Cond, ExprResult &LHS, ExprResult &RHS,
4046 if (LHS.get()->isTypeDependent() || RHS.get()->isTypeDependent())
4052 QualType RTy = RHS.get()->getType();
4059 RHS = DefaultFunctionArrayLvalueConversion(RHS.take());
4060 if (LHS.isInvalid() || RHS.isInvalid())
4063 RTy = RHS.get()->getType();
4069 bool RThrow = isa<CXXThrowExpr>(RHS.get());
4083 << LHS.get()->getSourceRange() << RHS.get()->getSourceRange();
4099 if (TryClassUnification(*this, LHS.get(), RHS.get(), QuestionLoc, HaveL2R, L2RType))
4101 if (TryClassUnification(*this, RHS.get(), LHS.get(), QuestionLoc, HaveR2L, R2LType))
4107 << LTy << RTy << LHS.get()->getSourceRange() << RHS.get()->getSourceRange();
4119 if (ConvertForConditional(*this, RHS, R2LType) || RHS.isInvalid())
4121 RTy = RHS.get()->getType();
4135 LHS.get()->getValueKind() == RHS.get()->getValueKind() &&
4137 RHS.get()->isOrdinaryOrBitFieldObject()) {
4140 RHS.get()->getObjectKind() == OK_BitField)
4152 if (FindConditionalOverload(*this, LHS, RHS, QuestionLoc))
4160 RHS = DefaultFunctionArrayLvalueConversion(RHS.take());
4161 if (LHS.isInvalid() || RHS.isInvalid())
4164 RTy = RHS.get()->getType();
4184 RHS);
4189 RHS = RHSCopy;
4197 return CheckVectorOperands(LHS, RHS, QuestionLoc, /*isCompAssign*/false);
4203 UsualArithmeticConversions(LHS, RHS);
4204 if (LHS.isInvalid() || RHS.isInvalid())
4220 QualType Composite = FindCompositePointerType(QuestionLoc, LHS, RHS,
4227 << LHS.get()->getSourceRange() << RHS.get()->getSourceRange();
4233 Composite = FindCompositeObjCPointerType(LHS, RHS, QuestionLoc);
4238 if (DiagnoseConditionalForNull(LHS.get(), RHS.get(), QuestionLoc))
4242 << LHS.get()->getType() << RHS.get()->getType()
4243 << LHS.get()->getSourceRange() << RHS.get()->getSourceRange();
4689 ExprResult RHS = ActOnDecltypeExpression(BO->getRHS());
4690 if (RHS.isInvalid())
4692 if (RHS.get() == BO->getRHS())
4694 return Owned(new (Context) BinaryOperator(BO->getLHS(), RHS.take(),