Home
last modified time | relevance | path

Searched refs:FDecl (Results 1 – 14 of 14) sorted by relevance

/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DGenericTaintChecker.cpp236 if ((BId = FDecl->getMemoryFunctionKind())) in REGISTER_SET_WITH_PROGRAMSTATE()
256 C.isCLibraryFunction(FDecl, "sprintf")) in REGISTER_SET_WITH_PROGRAMSTATE()
299 if (!FDecl || FDecl->getKind() != Decl::Function) in addSourcesPre()
302 StringRef Name = C.getCalleeName(FDecl); in addSourcesPre()
376 if (!FDecl || FDecl->getKind() != Decl::Function) in addSourcesPost()
379 StringRef Name = C.getCalleeName(FDecl); in addSourcesPost()
415 if (!FDecl || FDecl->getKind() != Decl::Function) in checkPre()
418 StringRef Name = C.getCalleeName(FDecl); in checkPre()
425 if (checkTaintedBufferSize(CE, FDecl, C)) in checkPre()
625 if (!FDecl) in getPrintfFormatArgumentNum()
[all …]
H A DCStringChecker.cpp2260 if (!FDecl) in identifyCall()
2266 if (isCPPStdLibraryFunction(FDecl, "copy")) { in identifyCall()
2284 if (C.isCLibraryFunction(FDecl, "memcpy")) in identifyCall()
2288 else if (C.isCLibraryFunction(FDecl, "memcmp")) in identifyCall()
2295 else if (C.isCLibraryFunction(FDecl, "strcpy")) in identifyCall()
2299 else if (C.isCLibraryFunction(FDecl, "stpcpy")) in identifyCall()
2303 else if (C.isCLibraryFunction(FDecl, "strcat")) in identifyCall()
2309 else if (C.isCLibraryFunction(FDecl, "strlen")) in identifyCall()
2313 else if (C.isCLibraryFunction(FDecl, "strcmp")) in identifyCall()
2323 else if (C.isCLibraryFunction(FDecl, "bcopy")) in identifyCall()
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/Analysis/
H A DTargetLibraryInfo.h113 bool getLibFunc(const Function &FDecl, LibFunc &F) const;
235 bool getLibFunc(const Function &FDecl, LibFunc &F) const { in getLibFunc() argument
236 return Impl->getLibFunc(FDecl, F); in getLibFunc()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaChecking.cpp4050 if (FDecl) { in CheckNonNullArguments()
4072 if (FDecl && (isa<FunctionDecl>(FDecl) || isa<ObjCMethodDecl>(FDecl))) { in CheckNonNullArguments()
4148 if (FDecl) { in checkCall()
4164 : FDecl && isa<FunctionDecl>(FDecl) in checkCall()
4166 : FDecl && isa<ObjCMethodDecl>(FDecl) in checkCall()
4179 if (FDecl || Proto) { in checkCall()
4183 if (FDecl) { in checkCall()
5115 NewBuiltinDecl = FDecl; in SemaBuiltinAtomicOverloaded()
8558 if (!FDecl) in emitReplacement()
8615 if (!FDecl) in IsStdFunction()
[all …]
H A DSemaExpr.cpp887 (FDecl && FDecl->hasAttr<CFAuditedTransferAttr>()))) { in DefaultVariadicArgumentPromotion()
2739 if (FDecl->getBuiltinID() && FDecl->isImplicit()) in UseArgumentDependentLookup()
4873 if (FDecl) in ConvertArgumentsForCall()
5007 FDecl && FDecl->hasAttr<CFAuditedTransferAttr>() && in GatherArgumentsForCall()
5514 if (FDecl && FDecl->getBuiltinID()) { in ActOnCallExpr()
5589 unsigned BuiltinID = (FDecl ? FDecl->getBuiltinID() : 0); in BuildResolvedCallExpr()
5592 if (FDecl && FDecl->hasAttr<AnyX86InterruptAttr>()) { in BuildResolvedCallExpr()
5718 if (FDecl && !FDecl->hasAttr<CUDAGlobalAttr>()) in BuildResolvedCallExpr()
5728 if (FDecl && FDecl->hasAttr<CUDAGlobalAttr>()) in BuildResolvedCallExpr()
5750 if (FDecl) { in BuildResolvedCallExpr()
[all …]
H A DSemaCodeComplete.cpp3216 auto FDecl = Result.getFunction(); in getParameterComment() local
3217 if (!FDecl) in getParameterComment()
3219 if (ArgIndex < FDecl->getNumParams()) in getParameterComment()
3220 return Ctx.getRawCommentForAnyRedecl(FDecl->getParamDecl(ArgIndex)); in getParameterComment()
3302 FunctionDecl *FDecl = getFunction(); in CreateSignatureString() local
3305 if (!FDecl && !Proto) { in CreateSignatureString()
3317 if (FDecl) { in CreateSignatureString()
3322 AddResultTypeChunk(S.Context, Policy, FDecl, QualType(), Result); in CreateSignatureString()
3324 Result.getAllocator().CopyString(FDecl->getNameAsString())); in CreateSignatureString()
3331 AddOverloadParameterChunks(S.getASTContext(), Policy, FDecl, Proto, Result, in CreateSignatureString()
H A DSemaOverload.cpp12069 FunctionDecl *FDecl = (*Best)->Function; in FinishOverloadedCallExpr() local
12071 if (SemaRef.DiagnoseUseOfDecl(FDecl, ULE->getNameLoc())) in FinishOverloadedCallExpr()
12073 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr()
12074 return SemaRef.BuildResolvedCallExpr(Fn, FDecl, LParenLoc, Args, RParenLoc, in FinishOverloadedCallExpr()
12125 FunctionDecl *FDecl = (*Best)->Function; in FinishOverloadedCallExpr() local
12126 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr()
12127 return SemaRef.BuildResolvedCallExpr(Fn, FDecl, LParenLoc, Args, RParenLoc, in FinishOverloadedCallExpr()
H A DSemaLookup.cpp2806 const FunctionDecl *FDecl = D->getUnderlyingDecl()->getAsFunction(); in FindAssociatedClassesAndNamespaces() local
2810 addAssociatedClassesAndNamespaces(Result, FDecl->getType()); in FindAssociatedClassesAndNamespaces()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Analysis/
H A DReachableCode.cpp63 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-12.1/contrib/llvm/lib/Transforms/IPO/
H A DLowerTypeTests.cpp1000 Function *FDecl; in importFunction() local
1003 FDecl = Function::Create(F->getFunctionType(), GlobalValue::ExternalLinkage, in importFunction()
1005 FDecl->setVisibility(GlobalValue::HiddenVisibility); in importFunction()
1009 FDecl = Function::Create(F->getFunctionType(), GlobalValue::ExternalLinkage, in importFunction()
1011 FDecl->setVisibility(Visibility); in importFunction()
1039 replaceWeakDeclarationWithJumpTablePtr(F, FDecl, isDefinition); in importFunction()
1041 replaceCfiUses(F, FDecl, isDefinition); in importFunction()
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DTargetLibraryInfo.cpp1412 bool TargetLibraryInfoImpl::getLibFunc(const Function &FDecl, in getLibFunc() argument
1415 FDecl.getParent() ? &FDecl.getParent()->getDataLayout() : nullptr; in getLibFunc()
1416 return getLibFunc(FDecl.getName(), F) && in getLibFunc()
1417 isValidProtoForLibFunc(*FDecl.getFunctionType(), F, DL); in getLibFunc()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Sema/
H A DSema.h4381 FunctionDecl *FDecl,
9469 VariadicCallType getVariadicCallType(FunctionDecl *FDecl,
9495 bool GatherArgumentsForCall(SourceLocation CallLoc, FunctionDecl *FDecl,
9506 FunctionDecl *FDecl);
10478 bool CheckFunctionCall(FunctionDecl *FDecl, CallExpr *TheCall,
10485 void CheckConstructorCall(FunctionDecl *FDecl,
10490 void checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto,
10498 ExprResult CheckBuiltinFunctionCall(FunctionDecl *FDecl,
10587 const FunctionDecl *FDecl);
10589 void CheckMaxUnsignedZero(const CallExpr *Call, const FunctionDecl *FDecl);
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DExpr.cpp1380 const FunctionDecl *FDecl = dyn_cast<FunctionDecl>(DRE->getDecl()); in getBuiltinCallee() local
1381 if (!FDecl) in getBuiltinCallee()
1384 if (!FDecl->getIdentifier()) in getBuiltinCallee()
1387 return FDecl->getBuiltinID(); in getBuiltinCallee()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp211 if (FunctionDecl *FDecl = dyn_cast<FunctionDecl>(*I)) { in HandleTopLevelDecl() local
216 if (FDecl->isThisDeclarationADefinition() && in HandleTopLevelDecl()
218 !FDecl->isTopLevelDeclInObjCContainer()) { in HandleTopLevelDecl()
219 FunctionDefinitionsSeen.push_back(FDecl); in HandleTopLevelDecl()
5837 FunctionDecl *FDecl = FunctionDefinitionsSeen[i]; in HandleTranslationUnit() local
5838 HandleTopLevelSingleDecl(FDecl); in HandleTranslationUnit()