Lines Matching refs:getAs
29 if (const PointerType *PtrTy = T->getAs<PointerType>()) in GetUnderlyingFunction()
31 else if (const ReferenceType *RefTy = T->getAs<ReferenceType>()) in GetUnderlyingFunction()
33 else if (const MemberPointerType *MPTy = T->getAs<MemberPointerType>()) in GetUnderlyingFunction()
35 return T->getAs<FunctionProtoType>(); in GetUnderlyingFunction()
85 if (const PointerType *PT = T->getAs<PointerType>()) { in CheckSpecifiedExceptionType()
93 } else if (const ReferenceType *RT = T->getAs<ReferenceType>()) { in CheckSpecifiedExceptionType()
114 PointeeT->getAs<RecordType>()->isBeingDefined()) && in CheckSpecifiedExceptionType()
126 if (const PointerType *PT = T->getAs<PointerType>()) in CheckDistantExceptionSpec()
128 else if (const MemberPointerType *PT = T->getAs<MemberPointerType>()) in CheckDistantExceptionSpec()
133 const FunctionProtoType *FnT = T->getAs<FunctionProtoType>(); in CheckDistantExceptionSpec()
202 Decl->getTypeSourceInfo()->getType()->getAs<FunctionProtoType>(); in hasImplicitExceptionSpec()
223 Old->getType()->getAs<FunctionProtoType>(), Old->getLocation(), in CheckEquivalentExceptionSpec()
224 New->getType()->getAs<FunctionProtoType>(), New->getLocation(), in CheckEquivalentExceptionSpec()
346 if (auto FTLoc = TL.getAs<FunctionProtoTypeLoc>()) in CheckEquivalentExceptionSpec()
677 if (const ReferenceType *RefTy = CanonicalSubT->getAs<ReferenceType>()) in CheckExceptionSpecSubset()
679 if (const PointerType *PtrTy = CanonicalSubT->getAs<PointerType>()) { in CheckExceptionSpecSubset()
695 if (const ReferenceType *RefTy = CanonicalSuperT->getAs<ReferenceType>()) in CheckExceptionSpecSubset()
698 if (const PointerType *PtrTy = CanonicalSuperT->getAs<PointerType>()) in CheckExceptionSpecSubset()
859 Old->getType()->getAs<FunctionProtoType>(), in CheckOverridingFunctionExceptionSpec()
861 New->getType()->getAs<FunctionProtoType>(), in CheckOverridingFunctionExceptionSpec()
890 if ((FT = T->getAs<FunctionProtoType>())) { in canCalleeThrow()
891 } else if (const PointerType *PT = T->getAs<PointerType>()) in canCalleeThrow()
892 FT = PT->getPointeeType()->getAs<FunctionProtoType>(); in canCalleeThrow()
893 else if (const ReferenceType *RT = T->getAs<ReferenceType>()) in canCalleeThrow()
894 FT = RT->getPointeeType()->getAs<FunctionProtoType>(); in canCalleeThrow()
895 else if (const MemberPointerType *MT = T->getAs<MemberPointerType>()) in canCalleeThrow()
896 FT = MT->getPointeeType()->getAs<FunctionProtoType>(); in canCalleeThrow()
897 else if (const BlockPointerType *BT = T->getAs<BlockPointerType>()) in canCalleeThrow()
898 FT = BT->getPointeeType()->getAs<FunctionProtoType>(); in canCalleeThrow()
931 const RecordType *RT = Op->getType()->getAs<RecordType>(); in canTypeidThrow()
1028 if (const RecordType *RT = DTy->getAs<RecordType>()) { in canThrow()