• Home
  • Raw
  • Download

Lines Matching refs:LHSTy

3827   QualType LHSTy = LHSExp->getType(), RHSTy = RHSExp->getType();  in CreateBuiltinArraySubscriptExpr()  local
3837 if (LHSTy->isDependentType() || RHSTy->isDependentType()) { in CreateBuiltinArraySubscriptExpr()
3841 } else if (const PointerType *PTy = LHSTy->getAs<PointerType>()) { in CreateBuiltinArraySubscriptExpr()
3846 LHSTy->getAs<ObjCObjectPointerType>()) { in CreateBuiltinArraySubscriptExpr()
3873 } else if (const VectorType *VTy = LHSTy->getAs<VectorType>()) { in CreateBuiltinArraySubscriptExpr()
3882 } else if (LHSTy->isArrayType()) { in CreateBuiltinArraySubscriptExpr()
3890 LHSExp = ImpCastExprToType(LHSExp, Context.getArrayDecayedType(LHSTy), in CreateBuiltinArraySubscriptExpr()
3892 LHSTy = LHSExp->getType(); in CreateBuiltinArraySubscriptExpr()
3896 ResultType = LHSTy->getAs<PointerType>()->getPointeeType(); in CreateBuiltinArraySubscriptExpr()
5507 QualType LHSTy = LHS.get()->getType(); in checkConditionalPointerCompatibility() local
5510 if (S.Context.hasSameType(LHSTy, RHSTy)) { in checkConditionalPointerCompatibility()
5512 return LHSTy; in checkConditionalPointerCompatibility()
5519 if (const BlockPointerType *LHSBTy = LHSTy->getAs<BlockPointerType>()) { in checkConditionalPointerCompatibility()
5524 lhptee = LHSTy->castAs<PointerType>()->getPointeeType(); in checkConditionalPointerCompatibility()
5551 << LHSTy << RHSTy << LHS.get()->getSourceRange() in checkConditionalPointerCompatibility()
5609 QualType LHSTy = LHS.get()->getType(); in checkConditionalBlockPointerCompatibility() local
5612 if (!LHSTy->isBlockPointerType() || !RHSTy->isBlockPointerType()) { in checkConditionalBlockPointerCompatibility()
5613 if (LHSTy->isVoidPointerType() || RHSTy->isVoidPointerType()) { in checkConditionalBlockPointerCompatibility()
5620 << LHSTy << RHSTy << LHS.get()->getSourceRange() in checkConditionalBlockPointerCompatibility()
5635 QualType LHSTy = LHS.get()->getType(); in checkConditionalObjectPointersCompatibility() local
5639 QualType lhptee = LHSTy->getAs<PointerType>()->getPointeeType(); in checkConditionalObjectPointersCompatibility()
5728 QualType LHSTy = LHS.get()->getType(); in CheckConditionalOperands() local
5740 if (LHSTy->isArithmeticType() && RHSTy->isArithmeticType()) in CheckConditionalOperands()
5745 if (const RecordType *LHSRT = LHSTy->getAs<RecordType>()) { // C99 6.5.15p3 in CheckConditionalOperands()
5750 return LHSTy.getUnqualifiedType(); in CheckConditionalOperands()
5756 if (LHSTy->isVoidType() || RHSTy->isVoidType()) { in CheckConditionalOperands()
5762 if (!checkConditionalNullPointer(*this, RHS, LHSTy)) return LHSTy; in CheckConditionalOperands()
5775 if (LHSTy->isBlockPointerType() || RHSTy->isBlockPointerType()) in CheckConditionalOperands()
5780 if (LHSTy->isPointerType() && RHSTy->isPointerType()) in CheckConditionalOperands()
5791 return LHSTy; in CheckConditionalOperands()
5801 << LHSTy << RHSTy << LHS.get()->getSourceRange() in CheckConditionalOperands()
5810 QualType LHSTy = LHS.get()->getType(); in FindCompositeObjCPointerType() local
5816 if (LHSTy->isObjCClassType() && in FindCompositeObjCPointerType()
5818 RHS = ImpCastExprToType(RHS.get(), LHSTy, CK_CPointerToObjCPointerCast); in FindCompositeObjCPointerType()
5819 return LHSTy; in FindCompositeObjCPointerType()
5822 (Context.hasSameType(LHSTy, Context.getObjCClassRedefinitionType()))) { in FindCompositeObjCPointerType()
5827 if (LHSTy->isObjCIdType() && in FindCompositeObjCPointerType()
5829 RHS = ImpCastExprToType(RHS.get(), LHSTy, CK_CPointerToObjCPointerCast); in FindCompositeObjCPointerType()
5830 return LHSTy; in FindCompositeObjCPointerType()
5833 (Context.hasSameType(LHSTy, Context.getObjCIdRedefinitionType()))) { in FindCompositeObjCPointerType()
5838 if (Context.isObjCSelType(LHSTy) && in FindCompositeObjCPointerType()
5840 RHS = ImpCastExprToType(RHS.get(), LHSTy, CK_BitCast); in FindCompositeObjCPointerType()
5841 return LHSTy; in FindCompositeObjCPointerType()
5844 (Context.hasSameType(LHSTy, Context.getObjCSelRedefinitionType()))) { in FindCompositeObjCPointerType()
5849 if (LHSTy->isObjCObjectPointerType() && RHSTy->isObjCObjectPointerType()) { in FindCompositeObjCPointerType()
5851 if (Context.getCanonicalType(LHSTy) == Context.getCanonicalType(RHSTy)) { in FindCompositeObjCPointerType()
5853 return LHSTy; in FindCompositeObjCPointerType()
5855 const ObjCObjectPointerType *LHSOPT = LHSTy->castAs<ObjCObjectPointerType>(); in FindCompositeObjCPointerType()
5857 QualType compositeType = LHSTy; in FindCompositeObjCPointerType()
5873 compositeType = RHSOPT->isObjCBuiltinType() ? RHSTy : LHSTy; in FindCompositeObjCPointerType()
5875 compositeType = LHSOPT->isObjCBuiltinType() ? LHSTy : RHSTy; in FindCompositeObjCPointerType()
5876 } else if ((LHSTy->isObjCQualifiedIdType() || in FindCompositeObjCPointerType()
5878 Context.ObjCQualifiedIdTypesAreCompatible(LHSTy, RHSTy, true)) { in FindCompositeObjCPointerType()
5884 } else if (LHSTy->isObjCIdType() || RHSTy->isObjCIdType()) { in FindCompositeObjCPointerType()
5891 << LHSTy << RHSTy in FindCompositeObjCPointerType()
5904 if (LHSTy->isVoidPointerType() && RHSTy->isObjCObjectPointerType()) { in FindCompositeObjCPointerType()
5908 Diag(QuestionLoc, diag::err_cond_voidptr_arc) << LHSTy << RHSTy in FindCompositeObjCPointerType()
5913 QualType lhptee = LHSTy->getAs<PointerType>()->getPointeeType(); in FindCompositeObjCPointerType()
5924 if (LHSTy->isObjCObjectPointerType() && RHSTy->isVoidPointerType()) { in FindCompositeObjCPointerType()
5928 Diag(QuestionLoc, diag::err_cond_voidptr_arc) << LHSTy << RHSTy in FindCompositeObjCPointerType()
5933 QualType lhptee = LHSTy->getAs<ObjCObjectPointerType>()->getPointeeType(); in FindCompositeObjCPointerType()
7316 QualType LHSTy = Context.isPromotableBitField(LHS.get()); in CheckAdditionOperands() local
7317 if (LHSTy.isNull()) { in CheckAdditionOperands()
7318 LHSTy = LHS.get()->getType(); in CheckAdditionOperands()
7319 if (LHSTy->isPromotableIntegerType()) in CheckAdditionOperands()
7320 LHSTy = Context.getPromotedIntegerType(LHSTy); in CheckAdditionOperands()
7322 *CompLHSTy = LHSTy; in CheckAdditionOperands()
8636 QualType LHSTy(LHSType); in CheckAssignmentOperands() local
8637 ConvTy = CheckSingleAssignmentConstraints(LHSTy, RHS); in CheckAssignmentOperands()