reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/Sema/SemaExprCXX.cpp
 3901   QualType FromType = From->getType();
 3909                                   From, /*FIXME:ConstructLoc*/SourceLocation(),
 3922         From, /*HadMultipleCandidates*/ false,
 3930     FunctionDecl *Fn = ResolveAddressOfOverloadedFunction(From, ToType,
 3935     if (DiagnoseUseOfDecl(Fn, From->getBeginLoc()))
 3938     From = FixOverloadedFunctionReference(From, Found, Fn);
 3938     From = FixOverloadedFunctionReference(From, Found, Fn);
 3939     FromType = From->getType();
 3956       From = ImplicitCastExpr::Create(Context, FromType, CK_AtomicToNonAtomic,
 3957                                       From, /*BasePath=*/nullptr, VK_RValue);
 3962     assert(From->getObjectKind() != OK_ObjCProperty);
 3963     ExprResult FromRes = DefaultLvalueConversion(From);
 3965     From = FromRes.get();
 3966     FromType = From->getType();
 3972     From = ImpCastExprToType(From, FromType, CK_ArrayToPointerDecay,
 3972     From = ImpCastExprToType(From, FromType, CK_ArrayToPointerDecay,
 3978     From = ImpCastExprToType(From, FromType, CK_FunctionToPointerDecay,
 3978     From = ImpCastExprToType(From, FromType, CK_FunctionToPointerDecay,
 4002       if (CheckExceptionSpecCompatibility(From, ToType))
 4021       From = ImpCastExprToType(From, ToType, CK_IntegralToBoolean,
 4021       From = ImpCastExprToType(From, ToType, CK_IntegralToBoolean,
 4024       From = ImpCastExprToType(From, ToType, CK_IntegralCast,
 4024       From = ImpCastExprToType(From, ToType, CK_IntegralCast,
 4031     From = ImpCastExprToType(From, ToType, CK_FloatingCast,
 4031     From = ImpCastExprToType(From, ToType, CK_FloatingCast,
 4037     QualType FromEl = From->getType()->castAs<ComplexType>()->getElementType();
 4050     From = ImpCastExprToType(From, ToType, CK,
 4050     From = ImpCastExprToType(From, ToType, CK,
 4057       From = ImpCastExprToType(From, ToType, CK_IntegralToFloating,
 4057       From = ImpCastExprToType(From, ToType, CK_IntegralToFloating,
 4060       From = ImpCastExprToType(From, ToType, CK_FloatingToIntegral,
 4060       From = ImpCastExprToType(From, ToType, CK_FloatingToIntegral,
 4065       From = ImpCastExprToType(From, ToType, CK_NoOp,
 4065       From = ImpCastExprToType(From, ToType, CK_NoOp,
 4074         Diag(From->getBeginLoc(),
 4076             << ToType << From->getType() << Action << From->getSourceRange()
 4076             << ToType << From->getType() << Action << From->getSourceRange()
 4079         Diag(From->getBeginLoc(),
 4081             << From->getType() << ToType << Action << From->getSourceRange()
 4081             << From->getType() << ToType << Action << From->getSourceRange()
 4084       if (From->getType()->isObjCObjectPointerType() &&
 4086         EmitRelatedResultTypeNote(From);
 4089                                                       From->getType())) {
 4091         Diag(From->getBeginLoc(), diag::err_arc_weak_unavailable_assign);
 4093         Diag(From->getBeginLoc(), diag::err_arc_convesion_of_weak_unavailable)
 4094             << (Action == AA_Casting) << From->getType() << ToType
 4095             << From->getSourceRange();
 4100     if (CheckPointerConversion(From, ToType, Kind, BasePath, CStyle))
 4106       ExprResult E = From;
 4108       From = E.get();
 4111       CheckObjCConversion(SourceRange(), ToType, From, CCK);
 4112     From = ImpCastExprToType(From, ToType, Kind, VK_RValue, &BasePath, CCK)
 4112     From = ImpCastExprToType(From, ToType, Kind, VK_RValue, &BasePath, CCK)
 4120     if (CheckMemberPointerConversion(From, ToType, Kind, BasePath, CStyle))
 4122     if (CheckExceptionSpecCompatibility(From, ToType))
 4128       (void)isCompleteType(From->getExprLoc(), From->getType());
 4128       (void)isCompleteType(From->getExprLoc(), From->getType());
 4129       (void)isCompleteType(From->getExprLoc(), ToType);
 4132     From = ImpCastExprToType(From, ToType, Kind, VK_RValue, &BasePath, CCK)
 4132     From = ImpCastExprToType(From, ToType, Kind, VK_RValue, &BasePath, CCK)
 4139     if (From->getType()->isHalfType()) {
 4140       From = ImpCastExprToType(From, Context.FloatTy, CK_FloatingCast).get();
 4140       From = ImpCastExprToType(From, Context.FloatTy, CK_FloatingCast).get();
 4144     From = ImpCastExprToType(From, Context.BoolTy,
 4144     From = ImpCastExprToType(From, Context.BoolTy,
 4152             From->getType(), ToType.getNonReferenceType(), From->getBeginLoc(),
 4152             From->getType(), ToType.getNonReferenceType(), From->getBeginLoc(),
 4153             From->getSourceRange(), &BasePath, CStyle))
 4156     From = ImpCastExprToType(From, ToType.getNonReferenceType(),
 4156     From = ImpCastExprToType(From, ToType.getNonReferenceType(),
 4157                       CK_DerivedToBase, From->getValueKind(),
 4163     From = ImpCastExprToType(From, ToType, CK_BitCast,
 4163     From = ImpCastExprToType(From, ToType, CK_BitCast,
 4169     Expr *Elem = prepareVectorSplat(ToType, From).get();
 4170     From = ImpCastExprToType(Elem, ToType, CK_VectorSplat, VK_RValue,
 4182       if (Context.hasSameUnqualifiedType(ElType, From->getType())) {
 4184       } else if (From->getType()->isRealFloatingType()) {
 4185         From = ImpCastExprToType(From, ElType,
 4185         From = ImpCastExprToType(From, ElType,
 4188         assert(From->getType()->isIntegerType());
 4189         From = ImpCastExprToType(From, ElType,
 4189         From = ImpCastExprToType(From, ElType,
 4193       From = ImpCastExprToType(From, ToType,
 4193       From = ImpCastExprToType(From, ToType,
 4199       const ComplexType *FromComplex = From->getType()->getAs<ComplexType>();
 4206       From = ImpCastExprToType(From, ElType,
 4206       From = ImpCastExprToType(From, ElType,
 4215         From = ImpCastExprToType(From, ToType,
 4215         From = ImpCastExprToType(From, ToType,
 4220         From = ImpCastExprToType(From, ToType,
 4220         From = ImpCastExprToType(From, ToType,
 4236     From = ImpCastExprToType(From, ToType.getUnqualifiedType(), Kind,
 4236     From = ImpCastExprToType(From, ToType.getUnqualifiedType(), Kind,
 4242     ExprResult FromRes = From;
 4247     From = FromRes.get();
 4256     From = ImpCastExprToType(From, ToType,
 4256     From = ImpCastExprToType(From, ToType,
 4258                              From->getValueKind()).get();
 4280     if (CheckExceptionSpecCompatibility(From, ToType))
 4283     From = ImpCastExprToType(From, ToType, CK_NoOp,
 4283     From = ImpCastExprToType(From, ToType, CK_NoOp,
 4291         ToType->isReferenceType() ? From->getValueKind() : VK_RValue;
 4297             From->getType().getAddressSpace())
 4302             From->getType()->getPointeeType().getAddressSpace())
 4305     From = ImpCastExprToType(From, ToType.getNonLValueExprType(Context), CK, VK,
 4305     From = ImpCastExprToType(From, ToType.getNonLValueExprType(Context), CK, VK,
 4311       Diag(From->getBeginLoc(),
 4329         ToAtomicType->castAs<AtomicType>()->getValueType(), From->getType()));
 4330     From = ImpCastExprToType(From, ToAtomicType, CK_NonAtomicToAtomic,
 4330     From = ImpCastExprToType(From, ToAtomicType, CK_NonAtomicToAtomic,
 4338                                         From->getBeginLoc());
 4340   return From;