Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaChecking.cpp2361 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 DSemaExpr.cpp1052 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 DSemaObjC.cpp2269 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 DSemaCodeComplete.cpp3972 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 DSemaOverload.cpp14692 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 DSemaLookup.cpp3350 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 DTargetLibraryInfo.cpp1224 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 DTargetLibraryInfo.h161 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 DReachableCode.cpp65 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 DLowerTypeTests.cpp1128 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 DGenericTaintChecker.cpp1073 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 DSema.h2748 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 DSemaObjC.h167 void DiagnoseCStringFormatDirectiveInCFAPI(const NamedDecl *FDecl,
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp210 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 DExpr.cpp1592 const auto *FDecl = getDirectCallee(); in getBuiltinCallee() local
1593 return FDecl ? FDecl->getBuiltinID() : 0; in getBuiltinCallee()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCall.cpp1918 if (const FunctionDecl *FDecl = dyn_cast<FunctionDecl>(TargetDecl)) { in HasStrictReturn() local
1919 if (FDecl->isExternC()) in HasStrictReturn()