Lines Matching defs:ToType
2370 Sema::IsStringLiteralToNonConstPointerConversion(Expr *From, QualType ToType) {
2380 if (const PointerType *ToPtrType = ToType->getAs<PointerType>())
2464 /// expression From to the type ToType using the pre-computed implicit
2469 Sema::PerformImplicitConversion(Expr *From, QualType ToType,
2475 ExprResult Res = PerformImplicitConversion(From, ToType, ICS.Standard,
2521 ToType.getNonReferenceType(),
2532 return PerformImplicitConversion(From, ToType, ICS.UserDefined.After,
2554 /// expression From to the type ToType by following the standard
2559 Sema::PerformImplicitConversion(Expr *From, QualType ToType,
2572 // FIXME: When can ToType be a reference type?
2573 assert(!ToType->isReferenceType());
2581 ToType, SCS.CopyConstructor,
2589 ToType, SCS.CopyConstructor,
2599 FunctionDecl *Fn = ResolveAddressOfOverloadedFunction(From, ToType,
2614 if (const AtomicType *ToAtomic = ToType->getAs<AtomicType>()) {
2615 ToAtomicType = ToType;
2616 ToType = ToAtomic->getValueType();
2655 if (CheckExceptionSpecCompatibility(From, ToType))
2663 if (CheckExceptionSpecCompatibility(From, ToType))
2666 From = ImpCastExprToType(From, ToType, CK_NoOp,
2672 if (ToType->isBooleanType()) {
2676 From = ImpCastExprToType(From, ToType, CK_IntegralToBoolean,
2679 From = ImpCastExprToType(From, ToType, CK_IntegralCast,
2686 From = ImpCastExprToType(From, ToType, CK_FloatingCast,
2693 QualType ToEl = ToType->getAs<ComplexType>()->getElementType();
2705 From = ImpCastExprToType(From, ToType, CK,
2711 if (ToType->isRealFloatingType())
2712 From = ImpCastExprToType(From, ToType, CK_IntegralToFloating,
2715 From = ImpCastExprToType(From, ToType, CK_FloatingToIntegral,
2720 From = ImpCastExprToType(From, ToType, CK_NoOp,
2731 << ToType << From->getType() << Action
2736 << From->getType() << ToType << Action
2740 ToType->isObjCObjectPointerType())
2744 !CheckObjCARCUnavailableWeakConversion(ToType,
2752 << (Action == AA_Casting) << From->getType() << ToType
2758 if (CheckPointerConversion(From, ToType, Kind, BasePath, CStyle))
2769 CheckObjCARCConversion(SourceRange(), ToType, From, CCK);
2770 From = ImpCastExprToType(From, ToType, Kind, VK_RValue, &BasePath, CCK)
2778 if (CheckMemberPointerConversion(From, ToType, Kind, BasePath, CStyle))
2780 if (CheckExceptionSpecCompatibility(From, ToType))
2782 From = ImpCastExprToType(From, ToType, Kind, VK_RValue, &BasePath, CCK)
2802 ToType.getNonReferenceType(),
2809 From = ImpCastExprToType(From, ToType.getNonReferenceType(),
2816 From = ImpCastExprToType(From, ToType, CK_BitCast,
2821 From = ImpCastExprToType(From, ToType, CK_VectorSplat,
2827 if (const ComplexType *ToComplex = ToType->getAs<ComplexType>()) {
2843 From = ImpCastExprToType(From, ToType,
2862 if (Context.hasSameUnqualifiedType(ElType, ToType)) {
2864 } else if (ToType->isRealFloatingType()) {
2865 From = ImpCastExprToType(From, ToType,
2869 assert(ToType->isIntegerType());
2870 From = ImpCastExprToType(From, ToType,
2878 From = ImpCastExprToType(From, ToType.getUnqualifiedType(), CK_BitCast,
2886 CheckTransparentUnionArgumentConstraints(ToType, FromRes);
2897 From = ImpCastExprToType(From, ToType,
2918 ExprValueKind VK = ToType->isReferenceType() ?
2920 From = ImpCastExprToType(From, ToType.getNonLValueExprType(Context),
2926 << ToType.getNonReferenceType();
4093 QualType &ToType) {
4095 ToType = To->getType();
4109 QualType T = Self.Context.getLValueReferenceType(ToType);
4114 ToType = T;
4167 ToType = TTy;