Lines Matching refs:From
2014 Sema::IsStringLiteralToNonConstPointerConversion(Expr *From, QualType ToType) { in IsStringLiteralToNonConstPointerConversion() argument
2016 if (ImplicitCastExpr *Cast = dyn_cast<ImplicitCastExpr>(From)) in IsStringLiteralToNonConstPointerConversion()
2017 From = Cast->getSubExpr(); in IsStringLiteralToNonConstPointerConversion()
2023 if (StringLiteral *StrLit = dyn_cast<StringLiteral>(From->IgnoreParens())) in IsStringLiteralToNonConstPointerConversion()
2046 Expr *From) { in BuildCXXCastArgument() argument
2053 MultiExprArg(&From, 1), in BuildCXXCastArgument()
2069 assert(!From->getType()->isPointerType() && "Arg can't have pointer type!"); in BuildCXXCastArgument()
2072 ExprResult Result = S.BuildCXXMemberCallExpr(From, FoundDecl, Method); in BuildCXXCastArgument()
2087 Sema::PerformImplicitConversion(Expr *From, QualType ToType, in PerformImplicitConversion() argument
2093 ExprResult Res = PerformImplicitConversion(From, ToType, ICS.Standard, in PerformImplicitConversion()
2097 From = Res.take(); in PerformImplicitConversion()
2127 PerformImplicitConversion(From, BeforeToType, in PerformImplicitConversion()
2132 From = Res.take(); in PerformImplicitConversion()
2137 From->getLocStart(), in PerformImplicitConversion()
2141 From); in PerformImplicitConversion()
2146 From = CastArg.take(); in PerformImplicitConversion()
2148 return PerformImplicitConversion(From, ToType, ICS.UserDefined.After, in PerformImplicitConversion()
2153 ICS.DiagnoseAmbiguousConversion(*this, From->getExprLoc(), in PerformImplicitConversion()
2155 << From->getSourceRange()); in PerformImplicitConversion()
2160 return Owned(From); in PerformImplicitConversion()
2167 return Owned(From); in PerformImplicitConversion()
2176 Sema::PerformImplicitConversion(Expr *From, QualType ToType, in PerformImplicitConversion() argument
2186 QualType FromType = From->getType(); in PerformImplicitConversion()
2194 MultiExprArg(*this, &From, 1), in PerformImplicitConversion()
2207 MultiExprArg(*this, &From, 1), in PerformImplicitConversion()
2216 FunctionDecl *Fn = ResolveAddressOfOverloadedFunction(From, ToType, in PerformImplicitConversion()
2221 if (DiagnoseUseOfDecl(Fn, From->getSourceRange().getBegin())) in PerformImplicitConversion()
2224 From = FixOverloadedFunctionReference(From, Found, Fn); in PerformImplicitConversion()
2225 FromType = From->getType(); in PerformImplicitConversion()
2236 if (From->getObjectKind() == OK_ObjCProperty) { in PerformImplicitConversion()
2237 ExprResult FromRes = ConvertPropertyForRValue(From); in PerformImplicitConversion()
2240 From = FromRes.take(); in PerformImplicitConversion()
2241 if (!From->isGLValue()) break; in PerformImplicitConversion()
2245 CheckArrayAccess(From); in PerformImplicitConversion()
2248 From = ImplicitCastExpr::Create(Context, FromType, CK_LValueToRValue, in PerformImplicitConversion()
2249 From, 0, VK_RValue); in PerformImplicitConversion()
2254 From = ImpCastExprToType(From, FromType, CK_ArrayToPointerDecay, in PerformImplicitConversion()
2260 From = ImpCastExprToType(From, FromType, CK_FunctionToPointerDecay, in PerformImplicitConversion()
2274 if (CheckExceptionSpecCompatibility(From, ToType)) in PerformImplicitConversion()
2282 if (CheckExceptionSpecCompatibility(From, ToType)) in PerformImplicitConversion()
2285 From = ImpCastExprToType(From, ToType, CK_NoOp, in PerformImplicitConversion()
2291 From = ImpCastExprToType(From, ToType, CK_IntegralCast, in PerformImplicitConversion()
2297 From = ImpCastExprToType(From, ToType, CK_FloatingCast, in PerformImplicitConversion()
2303 QualType FromEl = From->getType()->getAs<ComplexType>()->getElementType(); in PerformImplicitConversion()
2316 From = ImpCastExprToType(From, ToType, CK, in PerformImplicitConversion()
2323 From = ImpCastExprToType(From, ToType, CK_IntegralToFloating, in PerformImplicitConversion()
2326 From = ImpCastExprToType(From, ToType, CK_FloatingToIntegral, in PerformImplicitConversion()
2331 From = ImpCastExprToType(From, ToType, CK_NoOp, in PerformImplicitConversion()
2340 Diag(From->getSourceRange().getBegin(), in PerformImplicitConversion()
2342 << ToType << From->getType() << Action in PerformImplicitConversion()
2343 << From->getSourceRange(); in PerformImplicitConversion()
2345 Diag(From->getSourceRange().getBegin(), in PerformImplicitConversion()
2347 << From->getType() << ToType << Action in PerformImplicitConversion()
2348 << From->getSourceRange(); in PerformImplicitConversion()
2350 if (From->getType()->isObjCObjectPointerType() && in PerformImplicitConversion()
2352 EmitRelatedResultTypeNote(From); in PerformImplicitConversion()
2356 From->getType())) { in PerformImplicitConversion()
2358 Diag(From->getSourceRange().getBegin(), in PerformImplicitConversion()
2361 Diag(From->getSourceRange().getBegin(), in PerformImplicitConversion()
2363 << (Action == AA_Casting) << From->getType() << ToType in PerformImplicitConversion()
2364 << From->getSourceRange(); in PerformImplicitConversion()
2369 if (CheckPointerConversion(From, ToType, Kind, BasePath, CStyle)) in PerformImplicitConversion()
2371 From = ImpCastExprToType(From, ToType, Kind, VK_RValue, &BasePath, CCK) in PerformImplicitConversion()
2379 if (CheckMemberPointerConversion(From, ToType, Kind, BasePath, CStyle)) in PerformImplicitConversion()
2381 if (CheckExceptionSpecCompatibility(From, ToType)) in PerformImplicitConversion()
2383 From = ImpCastExprToType(From, ToType, Kind, VK_RValue, &BasePath, CCK) in PerformImplicitConversion()
2389 From = ImpCastExprToType(From, Context.BoolTy, in PerformImplicitConversion()
2396 if (CheckDerivedToBaseConversion(From->getType(), in PerformImplicitConversion()
2398 From->getLocStart(), in PerformImplicitConversion()
2399 From->getSourceRange(), in PerformImplicitConversion()
2404 From = ImpCastExprToType(From, ToType.getNonReferenceType(), in PerformImplicitConversion()
2405 CK_DerivedToBase, CastCategory(From), in PerformImplicitConversion()
2411 From = ImpCastExprToType(From, ToType, CK_BitCast, in PerformImplicitConversion()
2416 From = ImpCastExprToType(From, ToType, CK_VectorSplat, in PerformImplicitConversion()
2427 if (Context.hasSameUnqualifiedType(ElType, From->getType())) { in PerformImplicitConversion()
2429 } else if (From->getType()->isRealFloatingType()) { in PerformImplicitConversion()
2430 From = ImpCastExprToType(From, ElType, in PerformImplicitConversion()
2433 assert(From->getType()->isIntegerType()); in PerformImplicitConversion()
2434 From = ImpCastExprToType(From, ElType, in PerformImplicitConversion()
2438 From = ImpCastExprToType(From, ToType, in PerformImplicitConversion()
2444 const ComplexType *FromComplex = From->getType()->getAs<ComplexType>(); in PerformImplicitConversion()
2451 From = ImpCastExprToType(From, ElType, in PerformImplicitConversion()
2460 From = ImpCastExprToType(From, ToType, in PerformImplicitConversion()
2465 From = ImpCastExprToType(From, ToType, in PerformImplicitConversion()
2473 From = ImpCastExprToType(From, ToType.getUnqualifiedType(), CK_BitCast, in PerformImplicitConversion()
2479 ExprResult FromRes = Owned(From); in PerformImplicitConversion()
2484 From = FromRes.take(); in PerformImplicitConversion()
2509 CastCategory(From) : VK_RValue; in PerformImplicitConversion()
2510 From = ImpCastExprToType(From, ToType.getNonLValueExprType(Context), in PerformImplicitConversion()
2515 Diag(From->getLocStart(), diag::warn_deprecated_string_literal_conversion) in PerformImplicitConversion()
2526 return Owned(From); in PerformImplicitConversion()
3056 OpaqueValueExpr From(KeyLoc, LhsT.getNonLValueExprType(Self.Context), in EvaluateBinaryTypeTrait() local
3058 Expr *FromPtr = &From; in EvaluateBinaryTypeTrait()
3391 static bool TryClassUnification(Sema &Self, Expr *From, Expr *To, in TryClassUnification() argument
3413 InitializationSequence InitSeq(Self, Entity, Kind, &From, 1); in TryClassUnification()
3421 return InitSeq.Diagnose(Self, Entity, Kind, &From, 1); in TryClassUnification()
3427 QualType FTy = From->getType(); in TryClassUnification()
3441 InitializationSequence InitSeq(Self, Entity, Kind, &From, 1); in TryClassUnification()
3448 return InitSeq.Diagnose(Self, Entity, Kind, &From, 1); in TryClassUnification()
3466 InitializationSequence InitSeq(Self, Entity, Kind, &From, 1); in TryClassUnification()
3470 return InitSeq.Diagnose(Self, Entity, Kind, &From, 1); in TryClassUnification()