Lines Matching refs:ToType
2259 Sema::IsStringLiteralToNonConstPointerConversion(Expr *From, QualType ToType) {
2269 if (const PointerType *ToPtrType = ToType->getAs<PointerType>())
2351 /// expression From to the type ToType using the pre-computed implicit
2356 Sema::PerformImplicitConversion(Expr *From, QualType ToType,
2362 ExprResult Res = PerformImplicitConversion(From, ToType, ICS.Standard,
2408 ToType.getNonReferenceType(),
2419 return PerformImplicitConversion(From, ToType, ICS.UserDefined.After,
2441 /// expression From to the type ToType by following the standard
2446 Sema::PerformImplicitConversion(Expr *From, QualType ToType,
2459 // FIXME: When can ToType be a reference type?
2460 assert(!ToType->isReferenceType());
2469 ToType, SCS.CopyConstructor,
2477 ToType, SCS.CopyConstructor,
2488 FunctionDecl *Fn = ResolveAddressOfOverloadedFunction(From, ToType,
2536 if (CheckExceptionSpecCompatibility(From, ToType))
2544 if (CheckExceptionSpecCompatibility(From, ToType))
2547 From = ImpCastExprToType(From, ToType, CK_NoOp,
2553 From = ImpCastExprToType(From, ToType, CK_IntegralCast,
2559 From = ImpCastExprToType(From, ToType, CK_FloatingCast,
2566 QualType ToEl = ToType->getAs<ComplexType>()->getElementType();
2578 From = ImpCastExprToType(From, ToType, CK,
2584 if (ToType->isRealFloatingType())
2585 From = ImpCastExprToType(From, ToType, CK_IntegralToFloating,
2588 From = ImpCastExprToType(From, ToType, CK_FloatingToIntegral,
2593 From = ImpCastExprToType(From, ToType, CK_NoOp,
2604 << ToType << From->getType() << Action
2609 << From->getType() << ToType << Action
2613 ToType->isObjCObjectPointerType())
2617 !CheckObjCARCUnavailableWeakConversion(ToType,
2625 << (Action == AA_Casting) << From->getType() << ToType
2631 if (CheckPointerConversion(From, ToType, Kind, BasePath, CStyle))
2642 From = ImpCastExprToType(From, ToType, Kind, VK_RValue, &BasePath, CCK)
2650 if (CheckMemberPointerConversion(From, ToType, Kind, BasePath, CStyle))
2652 if (CheckExceptionSpecCompatibility(From, ToType))
2654 From = ImpCastExprToType(From, ToType, Kind, VK_RValue, &BasePath, CCK)
2674 ToType.getNonReferenceType(),
2681 From = ImpCastExprToType(From, ToType.getNonReferenceType(),
2688 From = ImpCastExprToType(From, ToType, CK_BitCast,
2693 From = ImpCastExprToType(From, ToType, CK_VectorSplat,
2699 if (const ComplexType *ToComplex = ToType->getAs<ComplexType>()) {
2715 From = ImpCastExprToType(From, ToType,
2734 if (Context.hasSameUnqualifiedType(ElType, ToType)) {
2736 } else if (ToType->isRealFloatingType()) {
2737 From = ImpCastExprToType(From, ToType,
2741 assert(ToType->isIntegerType());
2742 From = ImpCastExprToType(From, ToType,
2750 From = ImpCastExprToType(From, ToType.getUnqualifiedType(), CK_BitCast,
2758 CheckTransparentUnionArgumentConstraints(ToType, FromRes);
2784 ExprValueKind VK = ToType->isReferenceType() ?
2786 From = ImpCastExprToType(From, ToType.getNonLValueExprType(Context),
2792 << ToType.getNonReferenceType();
2803 if (const AtomicType *ToAtomic = ToType->getAs<AtomicType>())
2805 From = ImpCastExprToType(From, ToType, CK_NonAtomicToAtomic, VK_RValue, 0,
3864 QualType &ToType) {
3866 ToType = To->getType();
3880 QualType T = Self.Context.getLValueReferenceType(ToType);
3885 ToType = T;
3938 ToType = TTy;