Lines Matching refs:LHSTy
4374 QualType LHSTy = LHSExp->getType(), RHSTy = RHSExp->getType(); in CreateBuiltinArraySubscriptExpr() local
4384 if (LHSTy->isDependentType() || RHSTy->isDependentType()) { in CreateBuiltinArraySubscriptExpr()
4388 } else if (const PointerType *PTy = LHSTy->getAs<PointerType>()) { in CreateBuiltinArraySubscriptExpr()
4393 LHSTy->getAs<ObjCObjectPointerType>()) { in CreateBuiltinArraySubscriptExpr()
4420 } else if (const VectorType *VTy = LHSTy->getAs<VectorType>()) { in CreateBuiltinArraySubscriptExpr()
4429 } else if (LHSTy->isArrayType()) { in CreateBuiltinArraySubscriptExpr()
4437 LHSExp = ImpCastExprToType(LHSExp, Context.getArrayDecayedType(LHSTy), in CreateBuiltinArraySubscriptExpr()
4439 LHSTy = LHSExp->getType(); in CreateBuiltinArraySubscriptExpr()
4443 ResultType = LHSTy->getAs<PointerType>()->getPointeeType(); in CreateBuiltinArraySubscriptExpr()
6209 QualType LHSTy = LHS.get()->getType(); in checkConditionalPointerCompatibility() local
6212 if (S.Context.hasSameType(LHSTy, RHSTy)) { in checkConditionalPointerCompatibility()
6214 return LHSTy; in checkConditionalPointerCompatibility()
6221 if (const BlockPointerType *LHSBTy = LHSTy->getAs<BlockPointerType>()) { in checkConditionalPointerCompatibility()
6226 lhptee = LHSTy->castAs<PointerType>()->getPointeeType(); in checkConditionalPointerCompatibility()
6282 << LHSTy << RHSTy << 2 << LHS.get()->getSourceRange() in checkConditionalPointerCompatibility()
6300 << LHSTy << RHSTy << LHS.get()->getSourceRange() in checkConditionalPointerCompatibility()
6338 QualType LHSTy = LHS.get()->getType(); in checkConditionalBlockPointerCompatibility() local
6341 if (!LHSTy->isBlockPointerType() || !RHSTy->isBlockPointerType()) { in checkConditionalBlockPointerCompatibility()
6342 if (LHSTy->isVoidPointerType() || RHSTy->isVoidPointerType()) { in checkConditionalBlockPointerCompatibility()
6349 << LHSTy << RHSTy << LHS.get()->getSourceRange() in checkConditionalBlockPointerCompatibility()
6364 QualType LHSTy = LHS.get()->getType(); in checkConditionalObjectPointersCompatibility() local
6368 QualType lhptee = LHSTy->getAs<PointerType>()->getPointeeType(); in checkConditionalObjectPointersCompatibility()
6655 QualType LHSTy = LHS.get()->getType(); in CheckConditionalOperands() local
6660 if (unsupportedTypeConversion(*this, LHSTy, RHSTy)) { in CheckConditionalOperands()
6662 diag::err_typecheck_cond_incompatible_operands) << LHSTy << RHSTy in CheckConditionalOperands()
6676 if (LHSTy->isArithmeticType() && RHSTy->isArithmeticType()) { in CheckConditionalOperands()
6685 if (const RecordType *LHSRT = LHSTy->getAs<RecordType>()) { // C99 6.5.15p3 in CheckConditionalOperands()
6690 return LHSTy.getUnqualifiedType(); in CheckConditionalOperands()
6696 if (LHSTy->isVoidType() || RHSTy->isVoidType()) { in CheckConditionalOperands()
6702 if (!checkConditionalNullPointer(*this, RHS, LHSTy)) return LHSTy; in CheckConditionalOperands()
6715 if (LHSTy->isBlockPointerType() || RHSTy->isBlockPointerType()) in CheckConditionalOperands()
6720 if (LHSTy->isPointerType() && RHSTy->isPointerType()) in CheckConditionalOperands()
6731 return LHSTy; in CheckConditionalOperands()
6741 << LHSTy << RHSTy << LHS.get()->getSourceRange() in CheckConditionalOperands()
6750 QualType LHSTy = LHS.get()->getType(); in FindCompositeObjCPointerType() local
6756 if (LHSTy->isObjCClassType() && in FindCompositeObjCPointerType()
6758 RHS = ImpCastExprToType(RHS.get(), LHSTy, CK_CPointerToObjCPointerCast); in FindCompositeObjCPointerType()
6759 return LHSTy; in FindCompositeObjCPointerType()
6762 (Context.hasSameType(LHSTy, Context.getObjCClassRedefinitionType()))) { in FindCompositeObjCPointerType()
6767 if (LHSTy->isObjCIdType() && in FindCompositeObjCPointerType()
6769 RHS = ImpCastExprToType(RHS.get(), LHSTy, CK_CPointerToObjCPointerCast); in FindCompositeObjCPointerType()
6770 return LHSTy; in FindCompositeObjCPointerType()
6773 (Context.hasSameType(LHSTy, Context.getObjCIdRedefinitionType()))) { in FindCompositeObjCPointerType()
6778 if (Context.isObjCSelType(LHSTy) && in FindCompositeObjCPointerType()
6780 RHS = ImpCastExprToType(RHS.get(), LHSTy, CK_BitCast); in FindCompositeObjCPointerType()
6781 return LHSTy; in FindCompositeObjCPointerType()
6784 (Context.hasSameType(LHSTy, Context.getObjCSelRedefinitionType()))) { in FindCompositeObjCPointerType()
6789 if (LHSTy->isObjCObjectPointerType() && RHSTy->isObjCObjectPointerType()) { in FindCompositeObjCPointerType()
6791 if (Context.getCanonicalType(LHSTy) == Context.getCanonicalType(RHSTy)) { in FindCompositeObjCPointerType()
6793 return LHSTy; in FindCompositeObjCPointerType()
6795 const ObjCObjectPointerType *LHSOPT = LHSTy->castAs<ObjCObjectPointerType>(); in FindCompositeObjCPointerType()
6797 QualType compositeType = LHSTy; in FindCompositeObjCPointerType()
6816 compositeType = RHSOPT->isObjCBuiltinType() ? RHSTy : LHSTy; in FindCompositeObjCPointerType()
6818 compositeType = LHSOPT->isObjCBuiltinType() ? LHSTy : RHSTy; in FindCompositeObjCPointerType()
6819 } else if ((LHSTy->isObjCQualifiedIdType() || in FindCompositeObjCPointerType()
6821 Context.ObjCQualifiedIdTypesAreCompatible(LHSTy, RHSTy, true)) { in FindCompositeObjCPointerType()
6827 } else if (LHSTy->isObjCIdType() || RHSTy->isObjCIdType()) { in FindCompositeObjCPointerType()
6831 << LHSTy << RHSTy in FindCompositeObjCPointerType()
6844 if (LHSTy->isVoidPointerType() && RHSTy->isObjCObjectPointerType()) { in FindCompositeObjCPointerType()
6848 Diag(QuestionLoc, diag::err_cond_voidptr_arc) << LHSTy << RHSTy in FindCompositeObjCPointerType()
6853 QualType lhptee = LHSTy->getAs<PointerType>()->getPointeeType(); in FindCompositeObjCPointerType()
6864 if (LHSTy->isObjCObjectPointerType() && RHSTy->isVoidPointerType()) { in FindCompositeObjCPointerType()
6868 Diag(QuestionLoc, diag::err_cond_voidptr_arc) << LHSTy << RHSTy in FindCompositeObjCPointerType()
6873 QualType lhptee = LHSTy->getAs<ObjCObjectPointerType>()->getPointeeType(); in FindCompositeObjCPointerType()
8415 QualType LHSTy = Context.isPromotableBitField(LHS.get()); in CheckAdditionOperands() local
8416 if (LHSTy.isNull()) { in CheckAdditionOperands()
8417 LHSTy = LHS.get()->getType(); in CheckAdditionOperands()
8418 if (LHSTy->isPromotableIntegerType()) in CheckAdditionOperands()
8419 LHSTy = Context.getPromotedIntegerType(LHSTy); in CheckAdditionOperands()
8421 *CompLHSTy = LHSTy; in CheckAdditionOperands()
9986 QualType LHSTy(LHSType); in CheckAssignmentOperands() local
9987 ConvTy = CheckSingleAssignmentConstraints(LHSTy, RHS); in CheckAssignmentOperands()
10818 QualType LHSTy = LHSExpr->getType(); in CreateBuiltinBinOp() local
10822 if (LHSTy->isAtomicType() || RHSTy->isAtomicType()) { in CreateBuiltinBinOp()
10833 if (LHSTy->isImageType() || RHSTy->isImageType() || in CreateBuiltinBinOp()
10834 LHSTy->isSamplerT() || RHSTy->isSamplerT() || in CreateBuiltinBinOp()
10835 LHSTy->isPipeType() || RHSTy->isPipeType() || in CreateBuiltinBinOp()
10836 LHSTy->isBlockPointerType() || RHSTy->isBlockPointerType()) { in CreateBuiltinBinOp()