| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaChecking.cpp | 2361 Sema::CheckBuiltinFunctionCall(FunctionDecl *FDecl, unsigned BuiltinID, in CheckBuiltinFunctionCall() argument 2819 Context.getExceptionObjectType(FDecl->getParamDecl(0)->getType()), in CheckBuiltinFunctionCall() 2837 QualType Param = FDecl->getParamDecl(0)->getType(); in CheckBuiltinFunctionCall() 2838 QualType Result = FDecl->getReturnType(); in CheckBuiltinFunctionCall() 2847 << FDecl; in CheckBuiltinFunctionCall() 3348 const NamedDecl *FDecl, in CheckNonNullArguments() argument 3352 assert((FDecl || Proto) && "Need a function declaration or prototype"); in CheckNonNullArguments() 3359 if (FDecl) { in CheckNonNullArguments() 3361 for (const auto *NonNull : FDecl->specific_attrs<NonNullAttr>()) { in CheckNonNullArguments() 3381 if (FDecl && (isa<FunctionDecl>(FDecl) || isa<ObjCMethodDecl>(FDecl))) { in CheckNonNullArguments() [all …]
|
| H A D | SemaExpr.cpp | 1052 FunctionDecl *FDecl) { in DefaultVariadicArgumentPromotion() argument 1057 (FDecl && FDecl->hasAttr<CFAuditedTransferAttr>()))) { in DefaultVariadicArgumentPromotion() 3169 if (const auto *FDecl = dyn_cast<FunctionDecl>(D)) { in UseArgumentDependentLookup() local 3171 if (FDecl->getBuiltinID() && FDecl->isImplicit()) in UseArgumentDependentLookup() 5777 VariadicCallType Sema::getVariadicCallType(FunctionDecl *FDecl, in getVariadicCallType() argument 5781 if (isa_and_nonnull<CXXConstructorDecl>(FDecl)) in getVariadicCallType() 5785 else if (FDecl) { in getVariadicCallType() 5786 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl)) in getVariadicCallType() 5823 FunctionDecl *FDecl, in TryTypoCorrectionForCall() argument 5826 DeclarationName FuncName = FDecl->getDeclName(); in TryTypoCorrectionForCall() [all …]
|
| H A D | SemaObjC.cpp | 2269 void SemaObjC::DiagnoseCStringFormatDirectiveInCFAPI(const NamedDecl *FDecl, in DiagnoseCStringFormatDirectiveInCFAPI() argument 2274 ObjCStringFormatFamily SFFamily = FDecl->getObjCFStringFormattingFamily(); in DiagnoseCStringFormatDirectiveInCFAPI() 2279 for (const auto *I : FDecl->specific_attrs<FormatAttr>()) { in DiagnoseCStringFormatDirectiveInCFAPI() 2301 Diag(FDecl->getLocation(), diag::note_entity_declared_at) in DiagnoseCStringFormatDirectiveInCFAPI() 2302 << FDecl->getDeclName(); in DiagnoseCStringFormatDirectiveInCFAPI()
|
| H A D | SemaCodeComplete.cpp | 3972 auto FDecl = Result.getFunction(); in getParameterComment() local 3973 if (!FDecl) in getParameterComment() 3975 if (ArgIndex < FDecl->getNumParams()) in getParameterComment() 3976 return Ctx.getRawCommentForAnyRedecl(FDecl->getParamDecl(ArgIndex)); in getParameterComment() 4171 FunctionDecl *FDecl = getFunction(); in CreateSignatureString() local 4179 } else if (FDecl) { in CreateSignatureString() 4184 AddResultTypeChunk(S.Context, Policy, FDecl, QualType(), Result); in CreateSignatureString() 4188 FDecl->getDeclName().print(OS, Policy); in CreateSignatureString() 4202 AddOverloadParameterChunks(S.getASTContext(), Policy, FDecl, Proto, in CreateSignatureString()
|
| H A D | SemaOverload.cpp | 14692 FunctionDecl *FDecl = (*Best)->Function; in FinishOverloadedCallExpr() local 14694 if (SemaRef.DiagnoseUseOfDecl(FDecl, ULE->getNameLoc())) in FinishOverloadedCallExpr() 14697 SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr() 14701 Res.get(), FDecl, LParenLoc, Args, RParenLoc, ExecConfig, in FinishOverloadedCallExpr() 14764 FunctionDecl *FDecl = (*Best)->Function; in FinishOverloadedCallExpr() local 14767 *CandidateSet, FDecl, Args); in FinishOverloadedCallExpr() 14772 SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr() 14776 Res.get(), FDecl, LParenLoc, Args, RParenLoc, ExecConfig, in FinishOverloadedCallExpr() 14844 const FunctionDecl *FDecl = Best->Function; in BuildOverloadedCallExpr() local 14847 if (FDecl && FDecl->isTemplateInstantiation() && in BuildOverloadedCallExpr() [all …]
|
| H A D | SemaLookup.cpp | 3350 const FunctionDecl *FDecl = D->getUnderlyingDecl()->getAsFunction(); in FindAssociatedClassesAndNamespaces() local 3354 addAssociatedClassesAndNamespaces(Result, FDecl->getType()); in FindAssociatedClassesAndNamespaces()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | TargetLibraryInfo.cpp | 1224 bool TargetLibraryInfoImpl::getLibFunc(const Function &FDecl, in getLibFunc() argument 1229 if (FDecl.isIntrinsic()) return false; in getLibFunc() 1231 const Module *M = FDecl.getParent(); in getLibFunc() 1234 if (FDecl.LibFuncCache == Function::UnknownLibFunc) in getLibFunc() 1235 if (!getLibFunc(FDecl.getName(), FDecl.LibFuncCache)) in getLibFunc() 1236 FDecl.LibFuncCache = NotLibFunc; in getLibFunc() 1238 if (FDecl.LibFuncCache == NotLibFunc) in getLibFunc() 1241 F = FDecl.LibFuncCache; in getLibFunc() 1242 return isValidProtoForLibFunc(*FDecl.getFunctionType(), F, *M); in getLibFunc()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | TargetLibraryInfo.h | 161 LLVM_ABI bool getLibFunc(const Function &FDecl, LibFunc &F) const; 356 bool getLibFunc(const Function &FDecl, LibFunc &F) const { in getLibFunc() argument 357 return Impl->getLibFunc(FDecl, F); in getLibFunc()
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | ReachableCode.cpp | 65 if (const auto *FDecl = dyn_cast<FunctionDecl>(DRE->getDecl())) in isBuiltinUnreachable() local 66 return FDecl->getIdentifier() && in isBuiltinUnreachable() 67 FDecl->getBuiltinID() == Builtin::BI__builtin_unreachable; in isBuiltinUnreachable()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | LowerTypeTests.cpp | 1128 Function *FDecl; in importFunction() local 1132 FDecl = Function::Create(F->getFunctionType(), GlobalValue::ExternalLinkage, in importFunction() 1134 FDecl->setVisibility(GlobalValue::HiddenVisibility); in importFunction() 1139 FDecl = Function::Create(F->getFunctionType(), GlobalValue::ExternalLinkage, in importFunction() 1141 FDecl->setVisibility(Visibility); in importFunction() 1160 replaceWeakDeclarationWithJumpTablePtr(F, FDecl, isJumpTableCanonical); in importFunction() 1162 replaceCfiUses(F, FDecl, isJumpTableCanonical); in importFunction()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | GenericTaintChecker.cpp | 1073 const FunctionDecl *FDecl = CallDecl->getAsFunction(); in getPrintfFormatArgumentNum() local 1074 if (!FDecl) in getPrintfFormatArgumentNum() 1079 for (const auto *Format : FDecl->specific_attrs<FormatAttr>()) { in getPrintfFormatArgumentNum() 1093 const CXXMethodDecl *MDecl = dyn_cast<CXXMethodDecl>(FDecl); in getPrintfFormatArgumentNum()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | Sema.h | 2748 bool CheckFunctionCall(FunctionDecl *FDecl, CallExpr *TheCall, 2765 void checkLifetimeCaptureBy(FunctionDecl *FDecl, bool IsMemberFunction, 2771 void checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto, 2889 void CheckConstructorCall(FunctionDecl *FDecl, QualType ThisType, 2897 void CheckArgAlignment(SourceLocation Loc, NamedDecl *FDecl, 2902 ExprResult CheckBuiltinFunctionCall(FunctionDecl *FDecl, unsigned BuiltinID, 3020 void CheckInfNaNFunction(const CallExpr *Call, const FunctionDecl *FDecl); 3024 const FunctionDecl *FDecl); 3026 void CheckMaxUnsignedZero(const CallExpr *Call, const FunctionDecl *FDecl); 7374 bool ConvertArgumentsForCall(CallExpr *Call, Expr *Fn, FunctionDecl *FDecl, [all …]
|
| H A D | SemaObjC.h | 167 void DiagnoseCStringFormatDirectiveInCFAPI(const NamedDecl *FDecl,
|
| /freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
| H A D | RewriteModernObjC.cpp | 210 if (FunctionDecl *FDecl = dyn_cast<FunctionDecl>(*I)) { in HandleTopLevelDecl() local 215 if (FDecl->isThisDeclarationADefinition() && in HandleTopLevelDecl() 217 !FDecl->isTopLevelDeclInObjCContainer()) { in HandleTopLevelDecl() 218 FunctionDefinitionsSeen.push_back(FDecl); in HandleTopLevelDecl() 5797 FunctionDecl *FDecl = FunctionDefinitionsSeen[i]; in HandleTranslationUnit() local 5798 HandleTopLevelSingleDecl(FDecl); in HandleTranslationUnit()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | Expr.cpp | 1592 const auto *FDecl = getDirectCallee(); in getBuiltinCallee() local 1593 return FDecl ? FDecl->getBuiltinID() : 0; in getBuiltinCallee()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGCall.cpp | 1918 if (const FunctionDecl *FDecl = dyn_cast<FunctionDecl>(TargetDecl)) { in HasStrictReturn() local 1919 if (FDecl->isExternC()) in HasStrictReturn()
|