Home
last modified time | relevance | path

Searched refs:BPT (Results 1 – 9 of 9) sorted by relevance

/llvm-project-15.0.7/clang/lib/Analysis/
H A DBodyFarm.cpp38 const BlockPointerType *BPT = Ty->getAs<BlockPointerType>(); in isDispatchBlock() local
39 if (!BPT) in isDispatchBlock()
45 BPT->getPointeeType()->getAs<FunctionProtoType>(); in isDispatchBlock()
/llvm-project-15.0.7/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp419 const auto *BPT = T->castAs<BlockPointerType>(); in convertBlockPointerToFunctionPointer() local
420 T = Context->getPointerType(BPT->getPointeeType()); in convertBlockPointerToFunctionPointer()
1052 else if (const BlockPointerType *BPT = retType->getAs<BlockPointerType>()) in RewriteTypeIntoString() local
1053 PointeeTy = BPT->getPointeeType(); in RewriteTypeIntoString()
3960 const BlockPointerType *BPT = QT->getAs<BlockPointerType>(); in PointerTypeTakesAnyBlockArguments() local
3961 assert(BPT && "BlockPointerTypeTakeAnyBlockArguments(): not a block pointer type"); in PointerTypeTakesAnyBlockArguments()
3962 FTP = BPT->getPointeeType()->getAs<FunctionProtoType>(); in PointerTypeTakesAnyBlockArguments()
3978 const BlockPointerType *BPT = QT->getAs<BlockPointerType>(); in PointerTypeTakesAnyObjCQualifiedType() local
3979 assert(BPT && "BlockPointerTypeTakeAnyBlockArguments(): not a block pointer type"); in PointerTypeTakesAnyObjCQualifiedType()
3980 FTP = BPT->getPointeeType()->getAs<FunctionProtoType>(); in PointerTypeTakesAnyObjCQualifiedType()
H A DRewriteModernObjC.cpp509 const auto *BPT = T->castAs<BlockPointerType>(); in convertBlockPointerToFunctionPointer() local
510 T = Context->getPointerType(BPT->getPointeeType()); in convertBlockPointerToFunctionPointer()
1219 else if (const BlockPointerType *BPT = retType->getAs<BlockPointerType>()) in RewriteTypeIntoString() local
1220 PointeeTy = BPT->getPointeeType(); in RewriteTypeIntoString()
4807 const BlockPointerType *BPT = QT->getAs<BlockPointerType>(); in PointerTypeTakesAnyBlockArguments() local
4808 assert(BPT && "BlockPointerTypeTakeAnyBlockArguments(): not a block pointer type"); in PointerTypeTakesAnyBlockArguments()
4809 FTP = BPT->getPointeeType()->getAs<FunctionProtoType>(); in PointerTypeTakesAnyBlockArguments()
4825 const BlockPointerType *BPT = QT->getAs<BlockPointerType>(); in PointerTypeTakesAnyObjCQualifiedType() local
4826 assert(BPT && "BlockPointerTypeTakeAnyBlockArguments(): not a block pointer type"); in PointerTypeTakesAnyObjCQualifiedType()
4827 FTP = BPT->getPointeeType()->getAs<FunctionProtoType>(); in PointerTypeTakesAnyObjCQualifiedType()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGBlocks.cpp1186 const auto *BPT = E->getCallee()->getType()->castAs<BlockPointerType>(); in EmitBlockCallExpr() local
1190 QualType FnType = BPT->getPointeeType(); in EmitBlockCallExpr()
/llvm-project-15.0.7/clang/lib/AST/
H A DType.cpp630 if (const auto *BPT = getAs<BlockPointerType>()) in getPointeeType() local
631 return BPT->getPointeeType(); in getPointeeType()
H A DExpr.cpp1498 } else if (const auto *BPT = CalleeType->getAs<BlockPointerType>()) { in getCallReturnType() local
1499 CalleeType = BPT->getPointeeType(); in getCallReturnType()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaChecking.cpp1335 const BlockPointerType *BPT = in checkOpenCLBlockArgs() local
1338 BPT->getPointeeType()->castAs<FunctionProtoType>()->getParamTypes(); in checkOpenCLBlockArgs()
1440 const BlockPointerType *BPT = in checkOpenCLEnqueueVariadicArgs() local
1443 BPT->getPointeeType()->castAs<FunctionProtoType>()->getNumParams(); in checkOpenCLEnqueueVariadicArgs()
1534 const BlockPointerType *BPT = in SemaOpenCLBuiltinEnqueueKernel() local
1536 if (BPT->getPointeeType()->castAs<FunctionProtoType>()->getNumParams() > 0) { in SemaOpenCLBuiltinEnqueueKernel()
H A DSemaCodeComplete.cpp5494 } else if (const auto *BPT = Callee->getAs<BlockPointerType>()) { in getApproximateType() local
5495 Callee = BPT->getPointeeType(); in getApproximateType()
H A DSemaExpr.cpp6987 } else if (const BlockPointerType *BPT = in BuildResolvedCallExpr() local
6989 FuncT = BPT->getPointeeType()->castAs<FunctionType>(); in BuildResolvedCallExpr()