/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaChecking.cpp | 2060 Sema::CheckBuiltinFunctionCall(FunctionDecl *FDecl, unsigned BuiltinID, in CheckBuiltinFunctionCall() argument 2497 Context.getExceptionObjectType(FDecl->getParamDecl(0)->getType()), in CheckBuiltinFunctionCall() 2515 QualType Param = FDecl->getParamDecl(0)->getType(); in CheckBuiltinFunctionCall() 2516 QualType Result = FDecl->getReturnType(); in CheckBuiltinFunctionCall() 2525 << FDecl; in CheckBuiltinFunctionCall() 3021 const NamedDecl *FDecl, in CheckNonNullArguments() argument 3025 assert((FDecl || Proto) && "Need a function declaration or prototype"); in CheckNonNullArguments() 3032 if (FDecl) { in CheckNonNullArguments() 3034 for (const auto *NonNull : FDecl->specific_attrs<NonNullAttr>()) { in CheckNonNullArguments() 3054 if (FDecl && (isa<FunctionDecl>(FDecl) || isa<ObjCMethodDecl>(FDecl))) { in CheckNonNullArguments() [all …]
|
H A D | SemaExpr.cpp | 1025 FunctionDecl *FDecl) { in DefaultVariadicArgumentPromotion() argument 1030 (FDecl && FDecl->hasAttr<CFAuditedTransferAttr>()))) { in DefaultVariadicArgumentPromotion() 3115 if (const auto *FDecl = dyn_cast<FunctionDecl>(D)) { in UseArgumentDependentLookup() local 3117 if (FDecl->getBuiltinID() && FDecl->isImplicit()) in UseArgumentDependentLookup() 5651 Sema::getVariadicCallType(FunctionDecl *FDecl, const FunctionProtoType *Proto, in getVariadicCallType() argument 5654 if (isa_and_nonnull<CXXConstructorDecl>(FDecl)) in getVariadicCallType() 5658 else if (FDecl) { in getVariadicCallType() 5659 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl)) in getVariadicCallType() 5696 FunctionDecl *FDecl, in TryTypoCorrectionForCall() argument 5699 DeclarationName FuncName = FDecl->getDeclName(); in TryTypoCorrectionForCall() [all …]
|
H A D | SemaObjC.cpp | 2270 void SemaObjC::DiagnoseCStringFormatDirectiveInCFAPI(const NamedDecl *FDecl, in DiagnoseCStringFormatDirectiveInCFAPI() argument 2275 ObjCStringFormatFamily SFFamily = FDecl->getObjCFStringFormattingFamily(); in DiagnoseCStringFormatDirectiveInCFAPI() 2280 for (const auto *I : FDecl->specific_attrs<FormatAttr>()) { in DiagnoseCStringFormatDirectiveInCFAPI() 2302 Diag(FDecl->getLocation(), diag::note_entity_declared_at) in DiagnoseCStringFormatDirectiveInCFAPI() 2303 << FDecl->getDeclName(); in DiagnoseCStringFormatDirectiveInCFAPI()
|
H A D | SemaOverload.cpp | 13927 FunctionDecl *FDecl = (*Best)->Function; in FinishOverloadedCallExpr() local 13929 if (SemaRef.DiagnoseUseOfDecl(FDecl, ULE->getNameLoc())) in FinishOverloadedCallExpr() 13932 SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr() 13936 Res.get(), FDecl, LParenLoc, Args, RParenLoc, ExecConfig, in FinishOverloadedCallExpr() 13998 FunctionDecl *FDecl = (*Best)->Function; in FinishOverloadedCallExpr() local 14001 *CandidateSet, FDecl, Args); in FinishOverloadedCallExpr() 14006 SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr() 14010 Res.get(), FDecl, LParenLoc, Args, RParenLoc, ExecConfig, in FinishOverloadedCallExpr() 14064 const FunctionDecl *FDecl = Best->Function; in BuildOverloadedCallExpr() local 14065 if (FDecl && FDecl->isTemplateInstantiation() && in BuildOverloadedCallExpr() [all …]
|
H A D | SemaCodeComplete.cpp | 3809 auto FDecl = Result.getFunction(); in getParameterComment() local 3810 if (!FDecl) in getParameterComment() 3812 if (ArgIndex < FDecl->getNumParams()) in getParameterComment() 3813 return Ctx.getRawCommentForAnyRedecl(FDecl->getParamDecl(ArgIndex)); in getParameterComment() 4008 FunctionDecl *FDecl = getFunction(); in CreateSignatureString() local 4016 } else if (FDecl) { in CreateSignatureString() 4021 AddResultTypeChunk(S.Context, Policy, FDecl, QualType(), Result); in CreateSignatureString() 4025 FDecl->getDeclName().print(OS, Policy); in CreateSignatureString() 4039 AddOverloadParameterChunks(S.getASTContext(), Policy, FDecl, Proto, in CreateSignatureString()
|
H A D | SemaLookup.cpp | 3257 const FunctionDecl *FDecl = D->getUnderlyingDecl()->getAsFunction(); in FindAssociatedClassesAndNamespaces() local 3261 addAssociatedClassesAndNamespaces(Result, FDecl->getType()); in FindAssociatedClassesAndNamespaces()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | TargetLibraryInfo.cpp | 1152 bool TargetLibraryInfoImpl::getLibFunc(const Function &FDecl, in getLibFunc() argument 1157 if (FDecl.isIntrinsic()) return false; in getLibFunc() 1159 const Module *M = FDecl.getParent(); in getLibFunc() 1162 if (FDecl.LibFuncCache == Function::UnknownLibFunc) in getLibFunc() 1163 if (!getLibFunc(FDecl.getName(), FDecl.LibFuncCache)) in getLibFunc() 1164 FDecl.LibFuncCache = NotLibFunc; in getLibFunc() 1166 if (FDecl.LibFuncCache == NotLibFunc) in getLibFunc() 1169 F = FDecl.LibFuncCache; in getLibFunc() 1170 return isValidProtoForLibFunc(*FDecl.getFunctionType(), F, *M); in getLibFunc()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | TargetLibraryInfo.h | 158 bool getLibFunc(const Function &FDecl, LibFunc &F) const; 350 bool getLibFunc(const Function &FDecl, LibFunc &F) const { in getLibFunc() argument 351 return Impl->getLibFunc(FDecl, F); in getLibFunc()
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/ |
H A D | ReachableCode.cpp | 66 if (const auto *FDecl = dyn_cast<FunctionDecl>(DRE->getDecl())) in isBuiltinUnreachable() local 67 return FDecl->getIdentifier() && in isBuiltinUnreachable() 68 FDecl->getBuiltinID() == Builtin::BI__builtin_unreachable; in isBuiltinUnreachable()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | LowerTypeTests.cpp | 1076 Function *FDecl; in importFunction() local 1080 FDecl = Function::Create(F->getFunctionType(), GlobalValue::ExternalLinkage, in importFunction() 1082 FDecl->setVisibility(GlobalValue::HiddenVisibility); in importFunction() 1086 FDecl = Function::Create(F->getFunctionType(), GlobalValue::ExternalLinkage, in importFunction() 1088 FDecl->setVisibility(Visibility); in importFunction() 1107 replaceWeakDeclarationWithJumpTablePtr(F, FDecl, isJumpTableCanonical); in importFunction() 1109 replaceCfiUses(F, FDecl, isJumpTableCanonical); in importFunction()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | GenericTaintChecker.cpp | 1076 const FunctionDecl *FDecl = CallDecl->getAsFunction(); in getPrintfFormatArgumentNum() local 1077 if (!FDecl) in getPrintfFormatArgumentNum() 1082 for (const auto *Format : FDecl->specific_attrs<FormatAttr>()) { in getPrintfFormatArgumentNum()
|
/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | Sema.h | 2347 bool CheckFunctionCall(FunctionDecl *FDecl, CallExpr *TheCall, 2356 void checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto, 2451 void CheckConstructorCall(FunctionDecl *FDecl, QualType ThisType, 2459 void CheckArgAlignment(SourceLocation Loc, NamedDecl *FDecl, 2464 ExprResult CheckBuiltinFunctionCall(FunctionDecl *FDecl, unsigned BuiltinID, 2569 void CheckInfNaNFunction(const CallExpr *Call, const FunctionDecl *FDecl); 2573 const FunctionDecl *FDecl); 2575 void CheckMaxUnsignedZero(const CallExpr *Call, const FunctionDecl *FDecl); 6951 bool ConvertArgumentsForCall(CallExpr *Call, Expr *Fn, FunctionDecl *FDecl, 7532 VariadicCallType getVariadicCallType(FunctionDecl *FDecl, [all …]
|
H A D | SemaObjC.h | 165 void DiagnoseCStringFormatDirectiveInCFAPI(const NamedDecl *FDecl,
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
H A D | RewriteModernObjC.cpp | 211 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() 5831 FunctionDecl *FDecl = FunctionDefinitionsSeen[i]; in HandleTranslationUnit() local 5832 HandleTopLevelSingleDecl(FDecl); in HandleTranslationUnit()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | Expr.cpp | 1580 const auto *FDecl = getDirectCallee(); in getBuiltinCallee() local 1581 return FDecl ? FDecl->getBuiltinID() : 0; in getBuiltinCallee()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGCall.cpp | 1821 if (const FunctionDecl *FDecl = dyn_cast<FunctionDecl>(TargetDecl)) { in HasStrictReturn() local 1822 if (FDecl->isExternC()) in HasStrictReturn()
|