Home | History | Annotate | Download | only in Sema

Lines Matching defs:Cond

5853 static bool checkCondition(Sema &S, Expr *Cond, SourceLocation QuestionLoc) {
5854 QualType CondTy = Cond->getType();
5859 << CondTy << Cond->getSourceRange();
5867 << CondTy << Cond->getSourceRange();
6158 static bool checkOpenCLConditionVector(Sema &S, Expr *Cond,
6162 const VectorType *CondTy = Cond->getType()->getAs<VectorType>();
6168 << Cond->getType() << Cond->getSourceRange();
6206 OpenCLCheckVectorConditional(Sema &S, ExprResult &Cond,
6209 Cond = S.DefaultFunctionArrayLvalueConversion(Cond.get());
6210 if (Cond.isInvalid())
6212 QualType CondTy = Cond.get()->getType();
6214 if (checkOpenCLConditionVector(S, Cond.get(), QuestionLoc))
6238 /// In that case, LHS = cond.
6240 QualType Sema::CheckConditionalOperands(ExprResult &Cond, ExprResult &LHS,
6255 return CXXCheckConditionalOperands(Cond, LHS, RHS, VK, OK, QuestionLoc);
6262 if (getLangOpts().OpenCL && Cond.get()->getType()->isVectorType())
6263 return OpenCLCheckVectorConditional(*this, Cond, LHS, RHS, QuestionLoc);
6266 Cond = UsualUnaryConversions(Cond.get());
6267 if (Cond.isInvalid())
6269 if (checkCondition(*this, Cond.get(), QuestionLoc))
6671 ExprResult Cond = CondExpr, LHS = LHSExpr, RHS = RHSExpr;
6672 QualType result = CheckConditionalOperands(Cond, LHS, RHS,
6674 if (result.isNull() || Cond.isInvalid() || LHS.isInvalid() ||
6678 DiagnoseConditionalPrecedence(*this, QuestionLoc, Cond.get(), LHS.get(),
6681 CheckBoolLikeConversion(Cond.get(), QuestionLoc);
6685 ConditionalOperator(Cond.get(), QuestionLoc, LHS.get(), ColonLoc,
6689 commonExpr, opaqueValue, Cond.get(), LHS.get(), RHS.get(), QuestionLoc,