/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaExceptionSpec.cpp | 28 static const FunctionProtoType *GetUnderlyingFunction(QualType T) in GetUnderlyingFunction() 36 return T->getAs<FunctionProtoType>(); in GetUnderlyingFunction() 199 const FunctionProtoType *FnT = T->getAs<FunctionProtoType>(); in CheckDistantExceptionSpec() 206 const FunctionProtoType * 207 Sema::ResolveExceptionSpec(SourceLocation Loc, const FunctionProtoType *FPT) { in ResolveExceptionSpec() 217 const FunctionProtoType *SourceFPT = in ResolveExceptionSpec() 218 SourceDecl->getType()->castAs<FunctionProtoType>(); in ResolveExceptionSpec() 230 const FunctionProtoType *Proto = in ResolveExceptionSpec() 231 SourceDecl->getType()->castAs<FunctionProtoType>(); in ResolveExceptionSpec() 241 const FunctionProtoType::ExceptionSpecInfo &ESI) { in UpdateExceptionSpec() [all …]
|
H A D | SemaLambda.cpp | 374 const FunctionProtoType *FPT = MethodType->castAs<FunctionProtoType>(); in buildTypeForLambdaCallOperator() 894 FunctionProtoType::ExtProtoInfo EPI(S.Context.getDefaultCallingConvention( in getDummyLambdaType() 1579 Sema &S, const FunctionProtoType &CallOpProto, Func F) { in repeatForLambdaConversionFunctionCallingConvs() 1627 const FunctionProtoType *CallOpProto) { in getLambdaConversionFunctionCallConv() 1642 const FunctionProtoType *CallOpProto, CallingConv CC) { in getLambdaConversionFunctionResultType() 1643 const FunctionProtoType::ExtProtoInfo CallOpExtInfo = in getLambdaConversionFunctionResultType() 1645 FunctionProtoType::ExtProtoInfo InvokerExtInfo = CallOpExtInfo; in getLambdaConversionFunctionResultType() 1672 FunctionProtoType::ExtProtoInfo ConvExtInfo( in addFunctionPointerConversion() 1834 const FunctionProtoType *CallOpProto = in addFunctionPointerConversions() 1835 CallOperator->getType()->castAs<FunctionProtoType>(); in addFunctionPointerConversions() [all …]
|
H A D | SemaOpenCL.cpp | 109 BPT->getPointeeType()->castAs<FunctionProtoType>()->getParamTypes(); in checkBlockArgs() 223 BPT->getPointeeType()->castAs<FunctionProtoType>()->getNumParams(); in checkOpenCLEnqueueVariadicArgs() 290 if (BPT->getPointeeType()->castAs<FunctionProtoType>()->getNumParams() > in checkBuiltinEnqueueKernel()
|
H A D | SemaOverload.cpp | 86 if (auto *FPT = DRE->getType()->getAs<FunctionProtoType>()) { in CreateFunctionRefExpr() 1323 const auto *OldType = cast<FunctionProtoType>(OldQType); in IsOverloadOrOverrideImpl() 1324 const auto *NewType = cast<FunctionProtoType>(NewQType); in IsOverloadOrOverrideImpl() 1836 if (const auto *FromFPT = dyn_cast<FunctionProtoType>(FromFn)) { in IsFunctionConversion() 1837 const auto *ToFPT = cast<FunctionProtoType>(ToFn); in IsFunctionConversion() 1849 SmallVector<FunctionProtoType::ExtParameterInfo, 4> NewParamInfos; in IsFunctionConversion() 1854 FunctionProtoType::ExtProtoInfo ExtInfo = FromFPT->getExtProtoInfo(); in IsFunctionConversion() 1868 FromFPT = cast<FunctionProtoType>(FromFn); // in case FromFn changed above in IsFunctionConversion() 1875 FunctionProtoType::ExtProtoInfo ExtInfo = FromFPT->getExtProtoInfo(); in IsFunctionConversion() 2980 const FunctionProtoType *FromFunctionType in isObjCPointerConversion() [all …]
|
H A D | SemaARM.cpp | 551 if (const auto *FPT = Ty->getAs<FunctionProtoType>()) { in getArmStreamingFnType() 636 const auto *T = FD->getType()->getAs<FunctionProtoType>(); in hasArmZAState() 643 const auto *T = FD->getType()->getAs<FunctionProtoType>(); in hasArmZT0State() 1220 Sema &S, const ParsedAttr &AL, const FunctionProtoType *FPT, in checkNewAttrMutualExclusion() 1277 if (auto *FPT = dyn_cast<FunctionProtoType>(D->getFunctionType())) { in handleNewAttr()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CodeGenTypes.h | 36 class FunctionProtoType; variable 214 const CGFunctionInfo &arrangeFreeFunctionType(CanQual<FunctionProtoType> Ty); 242 const FunctionProtoType *type, 258 const FunctionProtoType *type, 266 const FunctionProtoType *FTP, 278 ArrayRef<FunctionProtoType::ExtParameterInfo> paramInfos,
|
H A D | CGCall.h | 43 const FunctionProtoType *CalleeProtoTy; 49 CGCalleeInfo(const FunctionProtoType *calleeProtoTy, GlobalDecl calleeDecl) in CGCalleeInfo() 51 CGCalleeInfo(const FunctionProtoType *calleeProtoTy) in CGCalleeInfo() 56 const FunctionProtoType *getCalleeFunctionProtoType() const { in getCalleeFunctionProtoType()
|
H A D | CodeGenABITypes.cpp | 44 CanQual<FunctionProtoType> Ty) { in arrangeFreeFunctionType() 57 const FunctionProtoType *FTP, in arrangeCXXMethodType()
|
H A D | CodeGenTypes.cpp | 212 if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT)) in isFuncTypeConvertible() 306 if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT)) in ConvertFunctionTypeInternal() 320 if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(FT)) { in ConvertFunctionTypeInternal() 322 CanQual<FunctionProtoType>::CreateUnsafe(QualType(FPT, 0))); in ConvertFunctionTypeInternal()
|
H A D | CGCall.cpp | 101 static CanQual<FunctionProtoType> GetFormalType(const CXXMethodDecl *MD) { in GetFormalType() 103 .getAs<FunctionProtoType>(); in GetFormalType() 126 llvm::SmallVectorImpl<FunctionProtoType::ExtParameterInfo> ¶mInfos, in addExtParameterInfosForCall() 127 const FunctionProtoType *proto, in addExtParameterInfosForCall() 157 SmallVectorImpl<FunctionProtoType::ExtParameterInfo> ¶mInfos, in appendParameterTypes() 158 CanQual<FunctionProtoType> FPT) { in appendParameterTypes() 190 CanQual<FunctionProtoType> FTP) { in arrangeLLVMFunctionInfo() 191 SmallVector<FunctionProtoType::ExtParameterInfo, 16> paramInfos; in arrangeLLVMFunctionInfo() 206 CodeGenTypes::arrangeFreeFunctionType(CanQual<FunctionProtoType> FTP) { in arrangeFreeFunctionType() 280 const FunctionProtoType *FTP, in arrangeCXXMethodType() [all …]
|
H A D | CGExprCXX.cpp | 57 const FunctionProtoType *FPT = MD->getType()->castAs<FunctionProtoType>(); in commonEmitCXXMemberOrOperatorCall() 90 const FunctionProtoType *FPT = MD->getType()->castAs<FunctionProtoType>(); in EmitCXXMemberOrOperatorCall() 271 EmitCallArgs(*RtlArgs, MD->getType()->castAs<FunctionProtoType>(), in EmitCXXMemberOrOperatorMemberCallExpr() 450 const auto *FPT = MPT->getPointeeType()->castAs<FunctionProtoType>(); in EmitCXXMemberPointerCallExpr() 1333 const FunctionProtoType *CalleeType, in EmitNewDeleteCall() 1357 RValue CodeGenFunction::EmitBuiltinNewDeleteCall(const FunctionProtoType *Type, in EmitBuiltinNewDeleteCall() 1386 const FunctionProtoType *FPT = FD->getType()->castAs<FunctionProtoType>(); in getUsualDeleteParams() 1461 const auto *FPT = OperatorDelete->getType()->castAs<FunctionProtoType>(); in Emit() 1632 const FunctionProtoType *allocatorType = in EmitCXXNewExpr() 1633 allocator->getType()->castAs<FunctionProtoType>(); in EmitCXXNewExpr() [all …]
|
H A D | CGGPUBuiltin.cpp | 147 E->getDirectCallee()->getType()->getAs<FunctionProtoType>(), in EmitDevicePrintfCallExpr() 191 E->getDirectCallee()->getType()->getAs<FunctionProtoType>(), in EmitAMDGPUDevicePrintfCallExpr()
|
H A D | CGCXXABI.cpp | 57 const FunctionProtoType *FPT = in EmitLoadOfMemberFunctionPointer() 58 MPT->getPointeeType()->getAs<FunctionProtoType>(); in EmitLoadOfMemberFunctionPointer()
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | AbstractBasicReader.h | 222 FunctionProtoType::ExceptionSpecInfo 224 FunctionProtoType::ExceptionSpecInfo esi; in readExceptionSpecInfo() 239 FunctionProtoType::ExtParameterInfo readExtParameterInfo() { in readExtParameterInfo() 240 static_assert(sizeof(FunctionProtoType::ExtParameterInfo().getOpaqueValue()) in readExtParameterInfo() 244 return FunctionProtoType::ExtParameterInfo::getFromOpaqueValue(value); in readExtParameterInfo()
|
H A D | CanonicalType.h | 499 struct CanProxyAdaptor<FunctionProtoType> 500 : public CanProxyBase<FunctionProtoType> { 506 ArrayRef<FunctionProtoType::ExtParameterInfo>, getExtParameterInfos) 516 CanTypeIterator<FunctionProtoType::param_type_iterator>;
|
H A D | AbstractBasicWriter.h | 205 const FunctionProtoType::ExceptionSpecInfo &esi) { in writeExceptionSpecInfo() 219 void writeExtParameterInfo(FunctionProtoType::ExtParameterInfo epi) { in writeExtParameterInfo()
|
H A D | ASTContext.h | 215 mutable llvm::ContextualFoldingSet<FunctionProtoType, ASTContext&> 1359 QualType Orig, const FunctionProtoType::ExceptionSpecInfo &ESI) const; 1368 const FunctionProtoType::ExceptionSpecInfo &ESI, 1613 const FunctionProtoType::ExtProtoInfo &EPI) const { in getFunctionType() 1622 const FunctionProtoType::ExtProtoInfo &EPI, 2919 FunctionProtoType::ExceptionSpecInfo 2920 mergeExceptionSpecs(FunctionProtoType::ExceptionSpecInfo ESI1, 2921 FunctionProtoType::ExceptionSpecInfo ESI2, 3024 const FunctionProtoType *FirstFnType, 3025 const FunctionProtoType *SecondFnType, [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | Attr.h | 57 return isa<FunctionProtoType>(FnTy); in hasFunctionProto() 66 return cast<FunctionProtoType>(FnTy)->getNumParams(); in getFunctionOrMethodNumParams() 85 return cast<FunctionProtoType>(FnTy)->getParamType(Idx); in getFunctionOrMethodParamType() 114 return cast<FunctionProtoType>(FnTy)->isVariadic(); in isFunctionOrMethodVariadic()
|
H A D | Sema.h | 139 class FunctionProtoType; variable 2348 const FunctionProtoType *Proto); 2356 void checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto, 2443 const FunctionProtoType *Proto); 2447 bool CheckOtherCall(CallExpr *TheCall, const FunctionProtoType *Proto); 2453 const FunctionProtoType *Proto, SourceLocation Loc); 5039 FunctionProtoType::ExceptionSpecInfo getExceptionSpec() const { in getExceptionSpec() 5040 FunctionProtoType::ExceptionSpecInfo ESI; in getExceptionSpec() 5068 FunctionProtoType::ExceptionSpecInfo &ESI); 6146 const FunctionProtoType *ResolveExceptionSpec(SourceLocation Loc, [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
H A D | NameSearchContext.cpp | 86 // this, we raid the function's FunctionProtoType for types. in AddFunDecl() 88 const FunctionProtoType *func_proto_type = in AddFunDecl() 89 qual_type.getTypePtr()->getAs<FunctionProtoType>(); in AddFunDecl() 110 LLDB_LOG(log, "Function type wasn't a FunctionProtoType"); in AddFunDecl() 131 FunctionProtoType::ExtProtoInfo proto_info; in AddGenericFunDecl()
|
/freebsd/contrib/llvm-project/clang/include/clang/CodeGen/ |
H A D | CGFunctionInfo.h | 497 static RequiredArgs forPrototypePlus(const FunctionProtoType *prototype, in forPrototypePlus() 504 [](const FunctionProtoType::ExtParameterInfo &ExtInfo) { in forPrototypePlus() 511 static RequiredArgs forPrototypePlus(CanQual<FunctionProtoType> prototype, in forPrototypePlus() 516 static RequiredArgs forPrototype(const FunctionProtoType *prototype) { in forPrototype() 520 static RequiredArgs forPrototype(CanQual<FunctionProtoType> prototype) { in forPrototype() 554 FunctionProtoType::ExtParameterInfo> { 556 typedef FunctionProtoType::ExtParameterInfo ExtParameterInfo;
|
H A D | CodeGenABITypes.h | 68 CanQual<FunctionProtoType> Ty); 75 const FunctionProtoType *FTP,
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | Mangle.cpp | 217 const FunctionProtoType *Proto = dyn_cast<FunctionProtoType>(FT); in mangleName() 492 auto CC = MD->getType()->castAs<FunctionProtoType>()->getCallConv(); in getAllManglings()
|
H A D | Type.cpp | 1119 QualType VisitFunctionProtoType(const FunctionProtoType *T) { in VisitFunctionProtoType() 1139 FunctionProtoType::ExtProtoInfo info = T->getExtProtoInfo(); in VisitFunctionProtoType() 1425 const auto *funcProtoType = cast<FunctionProtoType>(funcType); in VisitFunctionType() 1443 FunctionProtoType::ExtProtoInfo info = funcProtoType->getExtProtoInfo(); in VisitFunctionType() 1978 Type *VisitFunctionProtoType(const FunctionProtoType *T) { in VisitFunctionProtoType() 1980 return const_cast<FunctionProtoType*>(T); in VisitFunctionProtoType() 3518 void FunctionProtoType::ExceptionSpecInfo::instantiate() { in instantiate() 3521 cast<FunctionProtoType>(SourceTemplate->getType())->getNoexceptExpr(); in instantiate() 3525 FunctionProtoType::FunctionProtoType(QualType result, ArrayRef<QualType> params, in FunctionProtoType() function in FunctionProtoType 3685 bool FunctionProtoType::hasDependentExceptionSpec() const { in hasDependentExceptionSpec() [all …]
|
H A D | ASTContext.cpp | 3254 if (const auto *FPT = dyn_cast<FunctionProtoType>(FuncType)) { in encodeTypeForFunctionPointerAuth() 3504 const auto *FPT = cast<FunctionProtoType>(T); in adjustFunctionType() 3505 FunctionProtoType::ExtProtoInfo EPI = FPT->getExtProtoInfo(); in adjustFunctionType() 3517 const auto *FPT = FD->getType()->castAs<FunctionProtoType>(); in adjustDeducedFunctionResultType() 3518 FunctionProtoType::ExtProtoInfo EPI = FPT->getExtProtoInfo(); in adjustDeducedFunctionResultType() 3534 QualType Orig, const FunctionProtoType::ExceptionSpecInfo &ESI) const { in getFunctionTypeWithExceptionSpec() 3555 const auto *Proto = Orig->castAs<FunctionProtoType>(); in getFunctionTypeWithExceptionSpec() 3570 if (const auto *Proto = T->getAs<FunctionProtoType>()) { in getFunctionTypeWithoutPtrSizes() 3593 FunctionDecl *FD, const FunctionProtoType::ExceptionSpecInfo &ESI, in adjustExceptionSpec() 4746 const FunctionProtoType::ExceptionSpecInfo &ESI, bool NoexceptInType) { in isCanonicalExceptionSpecification() [all …]
|