Lines Matching refs:LTy
6075 QualType LTy = LHS.get()->getType(); in CXXCheckConditionalOperands() local
6077 bool LVoid = LTy->isVoidType(); in CXXCheckConditionalOperands()
6113 << (LVoid ? RTy : LTy) << (LVoid ? 0 : 1) in CXXCheckConditionalOperands()
6126 if (!Context.hasSameType(LTy, RTy) && in CXXCheckConditionalOperands()
6127 (LTy->isRecordType() || RTy->isRecordType())) { in CXXCheckConditionalOperands()
6139 << LTy << RTy << LHS.get()->getSourceRange() << RHS.get()->getSourceRange(); in CXXCheckConditionalOperands()
6149 LTy = LHS.get()->getType(); in CXXCheckConditionalOperands()
6170 if (!Context.hasSameType(LTy, RTy) && in CXXCheckConditionalOperands()
6180 if (CompareReferenceRelationship(QuestionLoc, LTy, RTy, &RefConv) == in CXXCheckConditionalOperands()
6186 RHS = ImpCastExprToType(RHS.get(), LTy, CK_NoOp, RVK); in CXXCheckConditionalOperands()
6188 } else if (CompareReferenceRelationship(QuestionLoc, RTy, LTy, &RefConv) == in CXXCheckConditionalOperands()
6194 LTy = LHS.get()->getType(); in CXXCheckConditionalOperands()
6205 bool Same = Context.hasSameType(LTy, RTy); in CXXCheckConditionalOperands()
6216 if (LTy->isFunctionPointerType() || LTy->isMemberFunctionPointerType()) { in CXXCheckConditionalOperands()
6217 Qualifiers Qs = LTy.getQualifiers(); in CXXCheckConditionalOperands()
6218 LTy = FindCompositePointerType(QuestionLoc, LHS, RHS, in CXXCheckConditionalOperands()
6220 LTy = Context.getQualifiedType(LTy, Qs); in CXXCheckConditionalOperands()
6222 assert(!LTy.isNull() && "failed to find composite pointer type for " in CXXCheckConditionalOperands()
6224 assert(Context.hasSameType(LTy, RTy) && "bad composite pointer type"); in CXXCheckConditionalOperands()
6227 return LTy; in CXXCheckConditionalOperands()
6233 if (!Same && (LTy->isRecordType() || RTy->isRecordType())) { in CXXCheckConditionalOperands()
6248 LTy = LHS.get()->getType(); in CXXCheckConditionalOperands()
6257 if (Context.getCanonicalType(LTy) == Context.getCanonicalType(RTy)) { in CXXCheckConditionalOperands()
6258 if (LTy->isRecordType()) { in CXXCheckConditionalOperands()
6260 InitializedEntity Entity = InitializedEntity::InitializeTemporary(LTy); in CXXCheckConditionalOperands()
6280 if (LTy->isFunctionPointerType() || LTy->isMemberFunctionPointerType()) { in CXXCheckConditionalOperands()
6281 LTy = FindCompositePointerType(QuestionLoc, LHS, RHS); in CXXCheckConditionalOperands()
6282 assert(!LTy.isNull() && "failed to find composite pointer type for " in CXXCheckConditionalOperands()
6286 return LTy; in CXXCheckConditionalOperands()
6290 if (LTy->isVectorType() || RTy->isVectorType()) in CXXCheckConditionalOperands()
6298 if (LTy->isArithmeticType() && RTy->isArithmeticType()) { in CXXCheckConditionalOperands()
6305 diag::err_typecheck_cond_incompatible_operands) << LTy << RTy in CXXCheckConditionalOperands()