Lines Matching refs:getAs

396   if (auto Ptr = From->getAs<PointerType>()) {  in diagnoseBadCast()
401 if (auto Ptr = To->getAs<PointerType>()) { in diagnoseBadCast()
406 auto RecFrom = From->getAs<RecordType>(); in diagnoseBadCast()
407 auto RecTo = To->getAs<RecordType>(); in diagnoseBadCast()
427 const PointerType *T1PtrType = T1->getAs<PointerType>(), in UnwrapDissimilarPointerTypes()
428 *T2PtrType = T2->getAs<PointerType>(); in UnwrapDissimilarPointerTypes()
435 T1->getAs<ObjCObjectPointerType>(), in UnwrapDissimilarPointerTypes()
437 T2->getAs<ObjCObjectPointerType>(); in UnwrapDissimilarPointerTypes()
458 const MemberPointerType *T1MPType = T1->getAs<MemberPointerType>(), in UnwrapDissimilarPointerTypes()
459 *T2MPType = T2->getAs<MemberPointerType>(); in UnwrapDissimilarPointerTypes()
466 const BlockPointerType *T1BPType = T1->getAs<BlockPointerType>(), in UnwrapDissimilarPointerTypes()
467 *T2BPType = T2->getAs<BlockPointerType>(); in UnwrapDissimilarPointerTypes()
588 const PointerType *DestPointer = DestType->getAs<PointerType>(); in CheckDynamicCast()
592 } else if ((DestReference = DestType->getAs<ReferenceType>())) { in CheckDynamicCast()
601 const RecordType *DestRecord = DestPointee->getAs<RecordType>(); in CheckDynamicCast()
625 if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) { in CheckDynamicCast()
648 const RecordType *SrcRecord = SrcPointee->getAs<RecordType>(); in CheckDynamicCast()
1009 if (const EnumType *Enum = SrcType->getAs<EnumType>()) { in TryStaticCast()
1060 if (const PointerType *SrcPointer = SrcType->getAs<PointerType>()) { in TryStaticCast()
1063 if (const PointerType *DestPointer = DestType->getAs<PointerType>()) { in TryStaticCast()
1122 if (auto SrcPointer = SrcType->getAs<PointerType>()) in TryStaticCast()
1123 if (auto DestPointer = DestType->getAs<PointerType>()) in TryStaticCast()
1124 if (SrcPointer->getPointeeType()->getAs<RecordType>() && in TryStaticCast()
1125 DestPointer->getPointeeType()->getAs<RecordType>()) in TryStaticCast()
1140 const RValueReferenceType *R = DestType->getAs<RValueReferenceType>(); in TryLValueToRValueCast()
1201 const ReferenceType *DestReference = DestType->getAs<ReferenceType>(); in TryStaticReferenceDowncast()
1238 const PointerType *DestPointer = DestType->getAs<PointerType>(); in TryStaticPointerDowncast()
1243 const PointerType *SrcPointer = SrcType->getAs<PointerType>(); in TryStaticPointerDowncast()
1270 if (!DestType->getAs<RecordType>() || !SrcType->getAs<RecordType>()) { in TryStaticDowncast()
1380 const MemberPointerType *DestMemPtr = DestType->getAs<MemberPointerType>(); in TryStaticMemberPointerUpcast()
1397 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()
1781 if (const ReferenceType *DestTypeTmp = DestType->getAs<ReferenceType>()) { in TryReinterpretCast()
1826 const MemberPointerType *DestMemPtr = DestType->getAs<MemberPointerType>(), in TryReinterpretCast()
1827 *SrcMemPtr = SrcType->getAs<MemberPointerType>(); in TryReinterpretCast()
2103 if (const VectorType *vecTy = DestType->getAs<VectorType>()) in CheckCXXCStyleCast()
2264 const PointerType *DestPtr = DestType->getAs<PointerType>(); in CheckCStyleCast()
2265 if (!DestPtr->isAddressSpaceOverlapping(*SrcType->getAs<PointerType>())) { in CheckCStyleCast()
2282 const RecordType *DestRecordTy = DestType->getAs<RecordType>(); in CheckCStyleCast()
2338 if (const VectorType *DestVecTy = DestType->getAs<VectorType>()) { in CheckCStyleCast()
2403 if (const PointerType *CastPtr = DestType->getAs<PointerType>()) { in CheckCStyleCast()
2404 if (const PointerType *ExprPtr = SrcType->getAs<PointerType>()) { in CheckCStyleCast()