Lines Matching refs:getAs
397 if (auto Ptr = From->getAs<PointerType>()) { in diagnoseBadCast()
402 if (auto Ptr = To->getAs<PointerType>()) { in diagnoseBadCast()
407 auto RecFrom = From->getAs<RecordType>(); in diagnoseBadCast()
408 auto RecTo = To->getAs<RecordType>(); in diagnoseBadCast()
428 const PointerType *T1PtrType = T1->getAs<PointerType>(), in UnwrapDissimilarPointerTypes()
429 *T2PtrType = T2->getAs<PointerType>(); in UnwrapDissimilarPointerTypes()
436 T1->getAs<ObjCObjectPointerType>(), in UnwrapDissimilarPointerTypes()
438 T2->getAs<ObjCObjectPointerType>(); in UnwrapDissimilarPointerTypes()
459 const MemberPointerType *T1MPType = T1->getAs<MemberPointerType>(), in UnwrapDissimilarPointerTypes()
460 *T2MPType = T2->getAs<MemberPointerType>(); in UnwrapDissimilarPointerTypes()
467 const BlockPointerType *T1BPType = T1->getAs<BlockPointerType>(), in UnwrapDissimilarPointerTypes()
468 *T2BPType = T2->getAs<BlockPointerType>(); in UnwrapDissimilarPointerTypes()
589 const PointerType *DestPointer = DestType->getAs<PointerType>(); in CheckDynamicCast()
593 } else if ((DestReference = DestType->getAs<ReferenceType>())) { in CheckDynamicCast()
602 const RecordType *DestRecord = DestPointee->getAs<RecordType>(); in CheckDynamicCast()
626 if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) { in CheckDynamicCast()
649 const RecordType *SrcRecord = SrcPointee->getAs<RecordType>(); in CheckDynamicCast()
1010 if (const EnumType *Enum = SrcType->getAs<EnumType>()) { in TryStaticCast()
1061 if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) { in TryStaticCast()
1064 if (const PointerType *DestPointer = DestType->getAs<PointerType>()) { in TryStaticCast()
1123 if (auto SrcPointer = SrcType->getAs<PointerType>()) in TryStaticCast()
1124 if (auto DestPointer = DestType->getAs<PointerType>()) in TryStaticCast()
1125 if (SrcPointer->getPointeeType()->getAs<RecordType>() && in TryStaticCast()
1126 DestPointer->getPointeeType()->getAs<RecordType>()) in TryStaticCast()
1141 const RValueReferenceType *R = DestType->getAs<RValueReferenceType>(); in TryLValueToRValueCast()
1202 const ReferenceType *DestReference = DestType->getAs<ReferenceType>(); in TryStaticReferenceDowncast()
1239 const PointerType *DestPointer = DestType->getAs<PointerType>(); in TryStaticPointerDowncast()
1244 const PointerType *SrcPointer = SrcType->getAs<PointerType>(); in TryStaticPointerDowncast()
1271 if (!DestType->getAs<RecordType>() || !SrcType->getAs<RecordType>()) { in TryStaticDowncast()
1378 const MemberPointerType *DestMemPtr = DestType->getAs<MemberPointerType>(); in TryStaticMemberPointerUpcast()
1395 const MemberPointerType *SrcMemPtr = SrcType->getAs<MemberPointerType>(); in TryStaticMemberPointerUpcast()
1550 if (const ReferenceType *DestTypeTmp =DestType->getAs<ReferenceType>()) { in TryConstCast()
1672 if (!SrcType->getAs<PointerType>() || !DestType->getAs<PointerType>()) { in CheckCompatibleReinterpretCast()
1678 if (!DestType->getAs<ReferenceType>()) { in CheckCompatibleReinterpretCast()
1695 if (SrcTy->getAs<TagType>() || DestTy->getAs<TagType>()) { in CheckCompatibleReinterpretCast()
1715 if (const PointerType *SrcPtrTy = SrcType->getAs<PointerType>()) in DiagnoseCastOfObjCSEL()
1892 if (const ReferenceType *DestTypeTmp = DestType->getAs<ReferenceType>()) { in TryReinterpretCast()
1937 const MemberPointerType *DestMemPtr = DestType->getAs<MemberPointerType>(), in TryReinterpretCast()
1938 *SrcMemPtr = SrcType->getAs<MemberPointerType>(); in TryReinterpretCast()
2216 if (const VectorType *vecTy = DestType->getAs<VectorType>()) in CheckCXXCStyleCast()
2378 const PointerType *DestPtr = DestType->getAs<PointerType>(); in CheckCStyleCast()
2379 if (!DestPtr->isAddressSpaceOverlapping(*SrcType->getAs<PointerType>())) { in CheckCStyleCast()
2396 const RecordType *DestRecordTy = DestType->getAs<RecordType>(); in CheckCStyleCast()
2468 if (const VectorType *DestVecTy = DestType->getAs<VectorType>()) { in CheckCStyleCast()
2534 if (const PointerType *CastPtr = DestType->getAs<PointerType>()) { in CheckCStyleCast()
2535 if (const PointerType *ExprPtr = SrcType->getAs<PointerType>()) { in CheckCStyleCast()