Home
last modified time | relevance | path

Searched refs:FromType (Results 1 – 12 of 12) sorted by relevance

/external/clang/lib/Sema/
DSemaOverload.cpp242 QualType FromType = getFromType(); in isPointerConversionToVoidPointer() local
249 FromType = Context.getArrayDecayedType(FromType); in isPointerConversionToVoidPointer()
251 if (Second == ICK_Pointer_Conversion && FromType->isAnyPointerType()) in isPointerConversionToVoidPointer()
803 QualType FromType = From->getType(); in TryImplicitConversion() local
804 if (ToType->getAs<RecordType>() && FromType->getAs<RecordType>() && in TryImplicitConversion()
805 (S.Context.hasSameUnqualifiedType(FromType, ToType) || in TryImplicitConversion()
806 S.IsDerivedFrom(FromType, ToType))) { in TryImplicitConversion()
809 ICS.Standard.setFromType(FromType); in TryImplicitConversion()
819 if (!S.Context.hasSameUnqualifiedType(FromType, ToType)) in TryImplicitConversion()
938 bool Sema::IsNoReturnConversion(QualType FromType, QualType ToType, in IsNoReturnConversion() argument
[all …]
DSemaExprObjC.cpp1821 QualType FromType = SubExpr->getType(); in BuildObjCBridgedCast() local
1826 } else if (T->isObjCARCBridgableType() && FromType->isCARCBridgableType()) { in BuildObjCBridgedCast()
1835 << FromType in BuildObjCBridgedCast()
1843 << FromType in BuildObjCBridgedCast()
1855 } else if (T->isCARCBridgableType() && FromType->isObjCARCBridgableType()) { in BuildObjCBridgedCast()
1866 SubExpr = ImplicitCastExpr::Create(Context, FromType, in BuildObjCBridgedCast()
1873 << (FromType->isBlockPointerType()? 1 : 0) in BuildObjCBridgedCast()
1874 << FromType in BuildObjCBridgedCast()
1891 << FromType << T << Kind in BuildObjCBridgedCast()
DSemaExprCXX.cpp2186 QualType FromType = From->getType(); in PerformImplicitConversion() local
2214 if (Context.hasSameType(FromType, Context.OverloadTy)) { in PerformImplicitConversion()
2225 FromType = From->getType(); in PerformImplicitConversion()
2247 FromType = FromType.getUnqualifiedType(); in PerformImplicitConversion()
2248 From = ImplicitCastExpr::Create(Context, FromType, CK_LValueToRValue, in PerformImplicitConversion()
2253 FromType = Context.getArrayDecayedType(FromType); in PerformImplicitConversion()
2254 From = ImpCastExprToType(From, FromType, CK_ArrayToPointerDecay, in PerformImplicitConversion()
2259 FromType = Context.getPointerType(FromType); in PerformImplicitConversion()
2260 From = ImpCastExprToType(From, FromType, CK_FunctionToPointerDecay, in PerformImplicitConversion()
2390 ScalarTypeToBooleanCastKind(FromType), in PerformImplicitConversion()
DSemaCXXCast.cpp915 QualType FromType = SrcExpr->getType(); in TryLValueToRValueCast() local
918 FromType = FromType.getUnqualifiedType(); in TryLValueToRValueCast()
923 ToType, FromType, in TryLValueToRValueCast()
DSemaExpr.cpp1911 QualType FromType = From->getType(); in PerformObjectMemberConversion() local
1916 if (FromType->getAs<PointerType>()) { in PerformObjectMemberConversion()
1918 FromRecordType = FromType->getPointeeType(); in PerformObjectMemberConversion()
1922 FromRecordType = FromType; in PerformObjectMemberConversion()
1931 if (FromType->getAs<PointerType>()) { in PerformObjectMemberConversion()
1932 FromRecordType = FromType->getPointeeType(); in PerformObjectMemberConversion()
1935 FromRecordType = FromType; in PerformObjectMemberConversion()
1943 if (DestType->isDependentType() || FromType->isDependentType()) in PerformObjectMemberConversion()
1994 FromType = QType; in PerformObjectMemberConversion()
2030 FromType = UType; in PerformObjectMemberConversion()
[all …]
DSemaTemplateDeduction.cpp3152 QualType FromType = Conv->getConversionType(); in DeduceTemplateArguments() local
3155 QualType P = Context.getCanonicalType(FromType); in DeduceTemplateArguments()
DSemaInit.cpp4613 QualType FromType = Args[0]->getType(); in Diagnose() local
4618 << FromType in Diagnose()
/external/webkit/Source/ThirdParty/ANGLE/src/libGLESv2/geometry/
Dvertexconversion.h91 template <class FromType, std::size_t ScaleBits>
98 static float convert(FromType x)
100 const float divisor = 1.0f / static_cast<float>(static_cast<FromType>(1) << ScaleBits);
/external/clang/include/clang/Sema/
DOverload.h481 QualType FromType, QualType ToType) { in setBad() argument
483 Bad.init(Failure, FromType, ToType); in setBad()
DSema.h1302 bool IsIntegralPromotion(Expr *From, QualType FromType, QualType ToType);
1303 bool IsFloatingPointPromotion(QualType FromType, QualType ToType);
1304 bool IsComplexPromotion(QualType FromType, QualType ToType);
1305 bool IsPointerConversion(Expr *From, QualType FromType, QualType ToType,
1308 bool isObjCPointerConversion(QualType FromType, QualType ToType,
1310 bool isObjCWritebackConversion(QualType FromType, QualType ToType,
1312 bool IsBlockPointerConversion(QualType FromType, QualType ToType,
1321 bool IsMemberPointerConversion(Expr *From, QualType FromType, QualType ToType,
1328 bool IsQualificationConversion(QualType FromType, QualType ToType,
1330 bool IsNoReturnConversion(QualType FromType, QualType ToType,
/external/chromium/testing/gmock/test/
Dgmock-actions_test.cc519 class FromType { class
521 FromType(bool* is_converted) : converted_(is_converted) {} in FromType() function in __anon9c228ec50111::FromType
527 GTEST_DISALLOW_ASSIGN_(FromType);
532 ToType(const FromType& x) { *x.converted() = true; } in ToType()
537 FromType x(&converted); in TEST()
/external/llvm/lib/Transforms/Scalar/
DScalarReplAggregates.cpp742 Type *FromType = FromVal->getType(); in CreateShuffleVectorCast() local
743 VectorType *FromVTy = cast<VectorType>(FromType); in CreateShuffleVectorCast()
747 Value *UnV = UndefValue::get(FromType); in CreateShuffleVectorCast()
781 Type *FromType = FromVal->getType(); in ConvertScalar_ExtractValue() local
782 if (FromType == ToType && Offset == 0) in ConvertScalar_ExtractValue()
787 if (VectorType *VTy = dyn_cast<VectorType>(FromType)) { in ConvertScalar_ExtractValue()
788 unsigned FromTypeSize = TD.getTypeAllocSize(FromType); in ConvertScalar_ExtractValue()
795 if (FromType->getPrimitiveSizeInBits() == in ConvertScalar_ExtractValue()
806 Type *CastElementTy = getScaledElementType(FromType, ToType, in ConvertScalar_ExtractValue()