Lines Matching refs:getAs
51 if (const auto *PtrType = Ty->getAs<PointerType>()) { in isValidSwiftIndirectResultType()
53 } else if (const auto *RefType = Ty->getAs<ReferenceType>()) { in isValidSwiftIndirectResultType()
63 if (const auto *PtrType = Ty->getAs<PointerType>()) { in isValidSwiftErrorResultType()
65 } else if (const auto *RefType = Ty->getAs<ReferenceType>()) { in isValidSwiftErrorResultType()
104 const auto *PT = QT->getAs<PointerType>(); in isErrorParameter()
111 if (const auto *OPT = Pointee->getAs<ObjCObjectPointerType>()) in isErrorParameter()
117 if (const auto *PT = Pointee->getAs<PointerType>()) in isErrorParameter()
118 if (const auto *RT = PT->getPointeeType()->getAs<RecordType>()) in isErrorParameter()
219 ->getAs<FunctionProtoType>(); in checkSwiftAsyncErrorBlock()
250 if (const auto *ObjCPtrTy = Param->getAs<ObjCObjectPointerType>()) { in checkSwiftAsyncErrorBlock()
259 if (const auto *PtrTy = Param->getAs<PointerType>()) { in checkSwiftAsyncErrorBlock()
260 if (const auto *RT = PtrTy->getPointeeType()->getAs<RecordType>()) { in checkSwiftAsyncErrorBlock()