| /netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | GenericTaintChecker.cpp | 106 FunctionData(const FunctionDecl *FDecl, StringRef Name, in FunctionData() 108 : FDecl(FDecl), Name(Name), FullName(std::move(FullName)) {} in FunctionData() 119 const FunctionDecl *FDecl = Call.getDecl()->getAsFunction(); in create() local 120 if (!FDecl || (FDecl->getKind() != Decl::Function && in create() 121 FDecl->getKind() != Decl::CXXMethod)) in create() 124 StringRef Name = C.getCalleeName(FDecl); in create() 125 std::string FullName = FDecl->getQualifiedNameAsString(); in create() 129 return FunctionData{FDecl, Name, std::move(FullName)}; in create() 136 const FunctionDecl *const FDecl; member 471 assert(FData.FDecl); in getTaintPropagationRule() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/ |
| H A D | TargetLibraryInfo.h | 117 bool getLibFunc(const Function &FDecl, LibFunc &F) const; 282 bool getLibFunc(const Function &FDecl, LibFunc &F) const { in getLibFunc() argument 283 return Impl->getLibFunc(FDecl, F); in getLibFunc()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/ |
| H A D | SemaExpr.cpp | 962 FunctionDecl *FDecl) { in DefaultVariadicArgumentPromotion() argument 967 (FDecl && FDecl->hasAttr<CFAuditedTransferAttr>()))) { in DefaultVariadicArgumentPromotion() 3104 FunctionDecl *FDecl = cast<FunctionDecl>(D); in UseArgumentDependentLookup() local 3107 if (FDecl->getBuiltinID() && FDecl->isImplicit()) in UseArgumentDependentLookup() 5690 Sema::getVariadicCallType(FunctionDecl *FDecl, const FunctionProtoType *Proto, in getVariadicCallType() argument 5693 if (dyn_cast_or_null<CXXConstructorDecl>(FDecl)) in getVariadicCallType() 5697 else if (FDecl) { in getVariadicCallType() 5698 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl)) in getVariadicCallType() 5735 FunctionDecl *FDecl, in TryTypoCorrectionForCall() argument 5738 DeclarationName FuncName = FDecl->getDeclName(); in TryTypoCorrectionForCall() [all …]
|
| H A D | SemaChecking.cpp | 1440 Sema::CheckBuiltinFunctionCall(FunctionDecl *FDecl, unsigned BuiltinID, in CheckBuiltinFunctionCall() argument 1869 Context.getExceptionObjectType(FDecl->getParamDecl(0)->getType()), in CheckBuiltinFunctionCall() 4408 const NamedDecl *FDecl, in DiagnoseCStringFormatDirectiveInCFAPI() argument 4413 ObjCStringFormatFamily SFFamily = FDecl->getObjCFStringFormattingFamily(); in DiagnoseCStringFormatDirectiveInCFAPI() 4419 for (const auto *I : FDecl->specific_attrs<FormatAttr>()) { in DiagnoseCStringFormatDirectiveInCFAPI() 4441 S.Diag(FDecl->getLocation(), diag::note_entity_declared_at) in DiagnoseCStringFormatDirectiveInCFAPI() 4442 << FDecl->getDeclName(); in DiagnoseCStringFormatDirectiveInCFAPI() 4455 const NamedDecl *FDecl, in CheckNonNullArguments() argument 4459 assert((FDecl || Proto) && "Need a function declaration or prototype"); in CheckNonNullArguments() 4466 if (FDecl) { in CheckNonNullArguments() [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 | 13059 FunctionDecl *FDecl = (*Best)->Function; in FinishOverloadedCallExpr() local 13061 if (SemaRef.DiagnoseUseOfDecl(FDecl, ULE->getNameLoc())) in FinishOverloadedCallExpr() 13063 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr() 13064 return SemaRef.BuildResolvedCallExpr(Fn, FDecl, LParenLoc, Args, RParenLoc, in FinishOverloadedCallExpr() 13120 FunctionDecl *FDecl = (*Best)->Function; in FinishOverloadedCallExpr() local 13121 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr() 13122 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()
|
| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/ |
| H A D | TargetLibraryInfo.cpp | 1583 bool TargetLibraryInfoImpl::getLibFunc(const Function &FDecl, in getLibFunc() argument 1588 if (FDecl.isIntrinsic()) return false; in getLibFunc() 1591 FDecl.getParent() ? &FDecl.getParent()->getDataLayout() : nullptr; in getLibFunc() 1592 return getLibFunc(FDecl.getName(), F) && in getLibFunc() 1593 isValidProtoForLibFunc(*FDecl.getFunctionType(), F, DL); in getLibFunc()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/ |
| H A D | LowerTypeTests.cpp | 1079 Function *FDecl; in importFunction() local 1083 FDecl = Function::Create(F->getFunctionType(), GlobalValue::ExternalLinkage, in importFunction() 1085 FDecl->setVisibility(GlobalValue::HiddenVisibility); in importFunction() 1089 FDecl = Function::Create(F->getFunctionType(), GlobalValue::ExternalLinkage, in importFunction() 1091 FDecl->setVisibility(Visibility); in importFunction() 1110 replaceWeakDeclarationWithJumpTablePtr(F, FDecl, isJumpTableCanonical); in importFunction() 1112 replaceCfiUses(F, FDecl, isJumpTableCanonical); in importFunction()
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/Sema/ |
| H A D | Sema.h | 5366 FunctionDecl *FDecl, 11307 VariadicCallType getVariadicCallType(FunctionDecl *FDecl, 11345 bool GatherArgumentsForCall(SourceLocation CallLoc, FunctionDecl *FDecl, 11356 FunctionDecl *FDecl); 12411 bool CheckFunctionCall(FunctionDecl *FDecl, CallExpr *TheCall, 12418 void CheckConstructorCall(FunctionDecl *FDecl, QualType ThisType, 12422 void CheckArgAlignment(SourceLocation Loc, NamedDecl *FDecl, 12425 void checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto, 12433 ExprResult CheckBuiltinFunctionCall(FunctionDecl *FDecl, 12571 const FunctionDecl *FDecl); [all …]
|
| /netbsd-src/external/apache2/llvm/dist/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() 5845 FunctionDecl *FDecl = FunctionDefinitionsSeen[i]; in HandleTranslationUnit() local 5846 HandleTopLevelSingleDecl(FDecl); in HandleTranslationUnit()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/AST/ |
| H A D | Expr.cpp | 1445 auto *FDecl = in getBuiltinCallee() local 1447 return FDecl ? FDecl->getBuiltinID() : 0; in getBuiltinCallee()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
| H A D | CGCall.cpp | 2229 if (const FunctionDecl *FDecl = dyn_cast<FunctionDecl>(TargetDecl)) in ConstructAttributeList() local 2230 HasStrictReturn &= !FDecl->isExternC(); in ConstructAttributeList()
|