Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaChecking.cpp2059 Sema::CheckBuiltinFunctionCall(FunctionDecl *FDecl, unsigned BuiltinID, in CheckBuiltinFunctionCall() argument
2465 Context.getExceptionObjectType(FDecl->getParamDecl(0)->getType()), in CheckBuiltinFunctionCall()
2482 QualType Param = FDecl->getParamDecl(0)->getType(); in CheckBuiltinFunctionCall()
2483 QualType Result = FDecl->getReturnType(); in CheckBuiltinFunctionCall()
2492 << FDecl; in CheckBuiltinFunctionCall()
5684 const NamedDecl *FDecl, in DiagnoseCStringFormatDirectiveInCFAPI() argument
5689 ObjCStringFormatFamily SFFamily = FDecl->getObjCFStringFormattingFamily(); in DiagnoseCStringFormatDirectiveInCFAPI()
5695 for (const auto *I : FDecl->specific_attrs<FormatAttr>()) { in DiagnoseCStringFormatDirectiveInCFAPI()
5717 S.Diag(FDecl->getLocation(), diag::note_entity_declared_at) in DiagnoseCStringFormatDirectiveInCFAPI()
5718 << FDecl->getDeclName(); in DiagnoseCStringFormatDirectiveInCFAPI()
[all …]
H A DSemaExpr.cpp1020 FunctionDecl *FDecl) { in DefaultVariadicArgumentPromotion() argument
1025 (FDecl && FDecl->hasAttr<CFAuditedTransferAttr>()))) { in DefaultVariadicArgumentPromotion()
3176 FunctionDecl *FDecl = cast<FunctionDecl>(D); in UseArgumentDependentLookup() local
3179 if (FDecl->getBuiltinID() && FDecl->isImplicit()) in UseArgumentDependentLookup()
6160 Sema::getVariadicCallType(FunctionDecl *FDecl, const FunctionProtoType *Proto, in getVariadicCallType() argument
6163 if (isa_and_nonnull<CXXConstructorDecl>(FDecl)) in getVariadicCallType()
6167 else if (FDecl) { in getVariadicCallType()
6168 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl)) in getVariadicCallType()
6205 FunctionDecl *FDecl, in TryTypoCorrectionForCall() argument
6208 DeclarationName FuncName = FDecl->getDeclName(); in TryTypoCorrectionForCall()
[all …]
H A DSemaCodeComplete.cpp3726 auto FDecl = Result.getFunction(); in getParameterComment() local
3727 if (!FDecl) in getParameterComment()
3729 if (ArgIndex < FDecl->getNumParams()) in getParameterComment()
3730 return Ctx.getRawCommentForAnyRedecl(FDecl->getParamDecl(ArgIndex)); in getParameterComment()
3925 FunctionDecl *FDecl = getFunction(); in CreateSignatureString() local
3933 } else if (FDecl) { in CreateSignatureString()
3938 AddResultTypeChunk(S.Context, Policy, FDecl, QualType(), Result); in CreateSignatureString()
3942 FDecl->getDeclName().print(OS, Policy); in CreateSignatureString()
3956 AddOverloadParameterChunks(S.getASTContext(), Policy, FDecl, Proto, in CreateSignatureString()
H A DSemaOverload.cpp13401 FunctionDecl *FDecl = (*Best)->Function; in FinishOverloadedCallExpr() local
13403 if (SemaRef.DiagnoseUseOfDecl(FDecl, ULE->getNameLoc())) in FinishOverloadedCallExpr()
13405 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr()
13406 return SemaRef.BuildResolvedCallExpr(Fn, FDecl, LParenLoc, Args, RParenLoc, in FinishOverloadedCallExpr()
13462 FunctionDecl *FDecl = (*Best)->Function; in FinishOverloadedCallExpr() local
13463 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr()
13464 return SemaRef.BuildResolvedCallExpr(Fn, FDecl, LParenLoc, Args, RParenLoc, in FinishOverloadedCallExpr()
H A DSemaLookup.cpp3280 const FunctionDecl *FDecl = D->getUnderlyingDecl()->getAsFunction(); in FindAssociatedClassesAndNamespaces() local
3284 addAssociatedClassesAndNamespaces(Result, FDecl->getType()); in FindAssociatedClassesAndNamespaces()
/openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/
H A DTargetLibraryInfo.h123 bool getLibFunc(const Function &FDecl, LibFunc &F) const;
310 bool getLibFunc(const Function &FDecl, LibFunc &F) const { in getLibFunc() argument
311 return Impl->getLibFunc(FDecl, F); in getLibFunc()
/openbsd-src/gnu/llvm/clang/lib/Analysis/
H A DReachableCode.cpp64 if (const auto *FDecl = dyn_cast<FunctionDecl>(DRE->getDecl())) in isBuiltinUnreachable() local
65 return FDecl->getIdentifier() && in isBuiltinUnreachable()
66 FDecl->getBuiltinID() == Builtin::BI__builtin_unreachable; in isBuiltinUnreachable()
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DTargetLibraryInfo.cpp1100 bool TargetLibraryInfoImpl::getLibFunc(const Function &FDecl, in getLibFunc() argument
1105 if (FDecl.isIntrinsic()) return false; in getLibFunc()
1107 const Module *M = FDecl.getParent(); in getLibFunc()
1110 return getLibFunc(FDecl.getName(), F) && in getLibFunc()
1111 isValidProtoForLibFunc(*FDecl.getFunctionType(), F, *M); in getLibFunc()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/IPO/
H A DLowerTypeTests.cpp1055 Function *FDecl; in importFunction() local
1059 FDecl = Function::Create(F->getFunctionType(), GlobalValue::ExternalLinkage, in importFunction()
1061 FDecl->setVisibility(GlobalValue::HiddenVisibility); in importFunction()
1065 FDecl = Function::Create(F->getFunctionType(), GlobalValue::ExternalLinkage, in importFunction()
1067 FDecl->setVisibility(Visibility); in importFunction()
1086 replaceWeakDeclarationWithJumpTablePtr(F, FDecl, isJumpTableCanonical); in importFunction()
1088 replaceCfiUses(F, FDecl, isJumpTableCanonical); in importFunction()
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
H A DGenericTaintChecker.cpp936 const FunctionDecl *FDecl = CallDecl->getAsFunction(); in getPrintfFormatArgumentNum() local
937 if (!FDecl) in getPrintfFormatArgumentNum()
942 for (const auto *Format : FDecl->specific_attrs<FormatAttr>()) { in getPrintfFormatArgumentNum()
/openbsd-src/gnu/llvm/clang/include/clang/Sema/
H A DSema.h5839 FunctionDecl *FDecl,
12276 VariadicCallType getVariadicCallType(FunctionDecl *FDecl,
12314 bool GatherArgumentsForCall(SourceLocation CallLoc, FunctionDecl *FDecl,
12325 FunctionDecl *FDecl);
13422 bool CheckFunctionCall(FunctionDecl *FDecl, CallExpr *TheCall,
13429 void CheckConstructorCall(FunctionDecl *FDecl, QualType ThisType,
13435 void CheckArgAlignment(SourceLocation Loc, NamedDecl *FDecl,
13438 void checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto,
13446 ExprResult CheckBuiltinFunctionCall(FunctionDecl *FDecl,
13593 const FunctionDecl *FDecl);
[all …]
/openbsd-src/gnu/llvm/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()
5834 FunctionDecl *FDecl = FunctionDefinitionsSeen[i]; in HandleTranslationUnit() local
5835 HandleTopLevelSingleDecl(FDecl); in HandleTranslationUnit()
/openbsd-src/gnu/llvm/clang/lib/AST/
H A DExpr.cpp1566 auto *FDecl = getDirectCallee(); in getBuiltinCallee() local
1567 return FDecl ? FDecl->getBuiltinID() : 0; in getBuiltinCallee()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCGCall.cpp1815 if (const FunctionDecl *FDecl = dyn_cast<FunctionDecl>(TargetDecl)) { in HasStrictReturn() local
1816 if (FDecl->isExternC()) in HasStrictReturn()