| /freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | GenericTaintChecker.cpp | 108 : FDecl(FDecl), Name(Name), FullName(std::move(FullName)) {} in FunctionData() 120 if (!FDecl || (FDecl->getKind() != Decl::Function && in create() 124 StringRef Name = C.getCalleeName(FDecl); in create() 136 const FunctionDecl *const FDecl; member 471 assert(FData.FDecl); in getTaintPropagationRule() 475 const FunctionDecl *FDecl = FData.FDecl; in getTaintPropagationRule() local 477 if ((BId = FDecl->getMemoryFunctionKind())) { in getTaintPropagationRule() 800 if (!FDecl) in getPrintfFormatArgumentNum() 891 if ((BId = FDecl->getMemoryFunctionKind())) { in checkTaintedBufferSize() 908 if (CCtx::isCLibraryFunction(FDecl, "malloc") || in checkTaintedBufferSize() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | TargetLibraryInfo.h | 118 bool getLibFunc(const Function &FDecl, LibFunc &F) const; 293 bool getLibFunc(const Function &FDecl, LibFunc &F) const { in getLibFunc() argument 294 return Impl->getLibFunc(FDecl, F); in getLibFunc()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaChecking.cpp | 4711 if (FDecl) { in CheckNonNullArguments() 4733 if (FDecl && (isa<FunctionDecl>(FDecl) || isa<ObjCMethodDecl>(FDecl))) { in CheckNonNullArguments() 4848 if (FDecl) { in checkCall() 4864 : FDecl && isa<FunctionDecl>(FDecl) in checkCall() 4866 : FDecl && isa<ObjCMethodDecl>(FDecl) in checkCall() 4879 if (FDecl || Proto) { in checkCall() 4883 if (FDecl) { in checkCall() 4914 if (FDecl && FDecl->hasAttr<AllocAlignAttr>()) { in checkCall() 9846 if (!FDecl) in emitReplacement() 9903 if (!FDecl) in IsStdFunction() [all …]
|
| H A D | SemaExpr.cpp | 982 (FDecl && FDecl->hasAttr<CFAuditedTransferAttr>()))) { in DefaultVariadicArgumentPromotion() 3117 if (FDecl->getBuiltinID() && FDecl->isImplicit()) in UseArgumentDependentLookup() 5824 if (FDecl) in ConvertArgumentsForCall() 5959 FDecl && FDecl->hasAttr<CFAuditedTransferAttr>() && in GatherArgumentsForCall() 6524 if (FDecl && FDecl->getBuiltinID()) { in BuildCallExpr() 6641 unsigned BuiltinID = (FDecl ? FDecl->getBuiltinID() : 0); in BuildResolvedCallExpr() 6644 if (FDecl && FDecl->hasAttr<AnyX86InterruptAttr>()) { in BuildResolvedCallExpr() 6668 if (FDecl) in BuildResolvedCallExpr() 6786 if (FDecl && !FDecl->hasAttr<CUDAGlobalAttr>()) in BuildResolvedCallExpr() 6798 if (FDecl && FDecl->hasAttr<CUDAGlobalAttr>()) in BuildResolvedCallExpr() [all …]
|
| H A D | SemaCodeComplete.cpp | 3684 auto FDecl = Result.getFunction(); in getParameterComment() local 3685 if (!FDecl) in getParameterComment() 3687 if (ArgIndex < FDecl->getNumParams()) in getParameterComment() 3688 return Ctx.getRawCommentForAnyRedecl(FDecl->getParamDecl(ArgIndex)); in getParameterComment() 3774 FunctionDecl *FDecl = getFunction(); in CreateSignatureString() local 3777 if (!FDecl && !Proto) { in CreateSignatureString() 3789 if (FDecl) { in CreateSignatureString() 3794 AddResultTypeChunk(S.Context, Policy, FDecl, QualType(), Result); in CreateSignatureString() 3798 FDecl->getDeclName().print(OS, Policy); in CreateSignatureString() 3806 AddOverloadParameterChunks(S.getASTContext(), Policy, FDecl, Proto, Result, in CreateSignatureString()
|
| H A D | SemaOverload.cpp | 13077 FunctionDecl *FDecl = (*Best)->Function; in FinishOverloadedCallExpr() local 13079 if (SemaRef.DiagnoseUseOfDecl(FDecl, ULE->getNameLoc())) in FinishOverloadedCallExpr() 13081 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr() 13082 return SemaRef.BuildResolvedCallExpr(Fn, FDecl, LParenLoc, Args, RParenLoc, in FinishOverloadedCallExpr() 13138 FunctionDecl *FDecl = (*Best)->Function; in FinishOverloadedCallExpr() local 13139 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr() 13140 return SemaRef.BuildResolvedCallExpr(Fn, FDecl, LParenLoc, Args, RParenLoc, in FinishOverloadedCallExpr()
|
| H A D | SemaLookup.cpp | 3013 const FunctionDecl *FDecl = D->getUnderlyingDecl()->getAsFunction(); in FindAssociatedClassesAndNamespaces() local 3017 addAssociatedClassesAndNamespaces(Result, FDecl->getType()); in FindAssociatedClassesAndNamespaces()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | ReachableCode.cpp | 63 if (const auto *FDecl = dyn_cast<FunctionDecl>(DRE->getDecl())) in isBuiltinUnreachable() local 64 return FDecl->getIdentifier() && in isBuiltinUnreachable() 65 FDecl->getBuiltinID() == Builtin::BI__builtin_unreachable; in isBuiltinUnreachable()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | TargetLibraryInfo.cpp | 1602 bool TargetLibraryInfoImpl::getLibFunc(const Function &FDecl, in getLibFunc() argument 1607 if (FDecl.isIntrinsic()) return false; in getLibFunc() 1610 FDecl.getParent() ? &FDecl.getParent()->getDataLayout() : nullptr; in getLibFunc() 1611 return getLibFunc(FDecl.getName(), F) && in getLibFunc() 1612 isValidProtoForLibFunc(*FDecl.getFunctionType(), F, DL); in getLibFunc()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | LowerTypeTests.cpp | 1085 Function *FDecl; in importFunction() local 1089 FDecl = Function::Create(F->getFunctionType(), GlobalValue::ExternalLinkage, in importFunction() 1091 FDecl->setVisibility(GlobalValue::HiddenVisibility); in importFunction() 1095 FDecl = Function::Create(F->getFunctionType(), GlobalValue::ExternalLinkage, in importFunction() 1097 FDecl->setVisibility(Visibility); in importFunction() 1116 replaceWeakDeclarationWithJumpTablePtr(F, FDecl, isJumpTableCanonical); in importFunction() 1118 replaceCfiUses(F, FDecl, isJumpTableCanonical); in importFunction()
|
| /freebsd-13.1/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | Sema.h | 5415 FunctionDecl *FDecl, 11408 VariadicCallType getVariadicCallType(FunctionDecl *FDecl, 11446 bool GatherArgumentsForCall(SourceLocation CallLoc, FunctionDecl *FDecl, 11457 FunctionDecl *FDecl); 12512 bool CheckFunctionCall(FunctionDecl *FDecl, CallExpr *TheCall, 12519 void CheckConstructorCall(FunctionDecl *FDecl, QualType ThisType, 12523 void CheckArgAlignment(SourceLocation Loc, NamedDecl *FDecl, 12526 void checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto, 12534 ExprResult CheckBuiltinFunctionCall(FunctionDecl *FDecl, 12674 const FunctionDecl *FDecl); [all …]
|
| /freebsd-13.1/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() 5834 FunctionDecl *FDecl = FunctionDefinitionsSeen[i]; in HandleTranslationUnit() local 5835 HandleTopLevelSingleDecl(FDecl); in HandleTranslationUnit()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/AST/ |
| H A D | Expr.cpp | 1511 auto *FDecl = in getBuiltinCallee() local 1513 return FDecl ? FDecl->getBuiltinID() : 0; in getBuiltinCallee()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGCall.cpp | 2231 if (const FunctionDecl *FDecl = dyn_cast<FunctionDecl>(TargetDecl)) in ConstructAttributeList() local 2232 HasStrictReturn &= !FDecl->isExternC(); in ConstructAttributeList()
|