Searched refs:FunctionDecl (Results 51 - 75 of 291) sorted by relevance

1234567891011>>

/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCall.h38 class FunctionDecl;
78 const FunctionDecl *Decl;
101 CGCallee(const FunctionDecl *builtinDecl, unsigned builtinID)
121 const FunctionDecl *builtinDecl) {
157 const FunctionDecl *getBuiltinDecl() const {
H A DCodeGenFunction.cpp563 void CodeGenFunction::EmitOpenCLKernelMetadata(const FunctionDecl *FD,
616 if (auto *FD = dyn_cast_or_null<FunctionDecl>(F))
665 const FunctionDecl *FD) {
685 if (const auto *FD = dyn_cast_or_null<FunctionDecl>(D))
769 if (const auto *FD = dyn_cast<FunctionDecl>(D))
844 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D))
851 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D)) {
894 if (const FunctionDecl *F
[all...]
H A DModuleBuilder.cpp66 SmallVector<FunctionDecl *, 8> DeferredInlineMemberFuncDefs;
115 if (auto FD = dyn_cast<FunctionDecl>(D)) {
188 void HandleInlineFunctionDefinition(FunctionDecl *D) override {
/freebsd-13-stable/contrib/llvm-project/clang/lib/Analysis/
H A DRetainSummaryManager.cpp187 static bool isRetain(const FunctionDecl *FD, StringRef FName) {
191 static bool isRelease(const FunctionDecl *FD, StringRef FName) {
195 static bool isAutorelease(const FunctionDecl *FD, StringRef FName) {
236 RetainSummaryManager::getSummaryForOSObject(const FunctionDecl *FD,
287 const FunctionDecl *FD,
495 RetainSummaryManager::generateSummary(const FunctionDecl *FD,
534 RetainSummaryManager::getFunctionSummary(const FunctionDecl *FD) {
671 Summ = getFunctionSummary(cast_or_null<FunctionDecl>(C.getDecl()));
704 RetainSummaryManager::getCFCreateGetRuleSummary(const FunctionDecl *FD) {
717 RetainSummaryManager::canEval(const CallExpr *CE, const FunctionDecl *F
[all...]
H A DCocoaConventions.cpp97 bool coreFoundation::followsCreateRule(const FunctionDecl *fn) {
/freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/
H A DSema.cpp440 FunctionDecl *fn = dyn_cast<FunctionDecl>(CurContext);
615 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
625 const FunctionDecl *DeclToCheck;
670 if (auto *FD = dyn_cast<FunctionDecl>(ND))
709 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) {
773 } else if (auto *FD = dyn_cast<FunctionDecl>(VD)) {
870 if (const FunctionDecl *F
[all...]
H A DSemaCoroutine.cpp52 static QualType lookupPromiseType(Sema &S, const FunctionDecl *FD,
196 auto *FD = dyn_cast<FunctionDecl>(S.CurContext);
300 auto *BuiltInDecl = R.getAsSingle<FunctionDecl>();
489 assert(isa<FunctionDecl>(CurContext) && "not in a function scope");
490 auto *FD = cast<FunctionDecl>(CurContext);
593 assert(isa<FunctionDecl>(S.CurContext) && "not in a function scope");
623 if (const auto *FD = dyn_cast<FunctionDecl>(D)) {
636 S.Diag(cast<FunctionDecl>(S.CurContext)->getLocation(),
702 auto *Fn = cast<FunctionDecl>(CurContext);
1021 static FunctionDecl *findDeleteForPromis
[all...]
H A DAnalysisBasedWarnings.cpp186 static bool hasRecursiveCallInPath(const FunctionDecl *FD, CFGBlock &Block) {
217 static bool checkForRecursiveFunctionCall(const FunctionDecl *FD, CFG *cfg) {
253 static void checkRecursiveFunction(Sema &S, const FunctionDecl *FD,
259 if (FD->getTemplatedKind() != FunctionDecl::TK_NonTemplate &&
260 FD->getTemplatedKind() != FunctionDecl::TK_MemberSpecialization)
337 const FunctionDecl *FD) {
356 static void checkThrowInNonThrowingFunc(Sema &S, const FunctionDecl *FD,
369 static bool isNoexcept(const FunctionDecl *FD) {
550 if (const FunctionDecl *Function = dyn_cast<FunctionDecl>(Fun
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/Frontend/
H A DInterfaceStubFunctionsConsumer.cpp67 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) {
87 dyn_cast_or_null<FunctionDecl>(VD->getParentFunctionOrMethod()))
123 if (const auto *FD = dyn_cast<FunctionDecl>(ND))
232 // catch anything that's not a VarDecl or Template/FunctionDecl.
246 if (const auto *FD = dyn_cast<FunctionDecl>(ND))
277 *S.LateParsedTemplateMap.find(cast<FunctionDecl>(FD))->second;
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h131 class FunctionDecl;
787 SmallVector<std::pair<FunctionDecl*, FunctionDecl*>, 2>
790 typedef llvm::MapVector<const FunctionDecl *,
941 if (auto *FD = dyn_cast<FunctionDecl>(DC))
962 if (auto *FD = dyn_cast<FunctionDecl>(S.CurContext))
1753 void UpdateExceptionSpec(FunctionDecl *FD,
1757 bool CheckEquivalentExceptionSpec(FunctionDecl *Old, FunctionDecl *New);
2388 void MaybeSuggestAddingStaticToDecl(const FunctionDecl *
[all...]
H A DOverload.h404 FunctionDecl* ConversionFunction;
417 SmallVector<std::pair<NamedDecl *, FunctionDecl *>, 4>;
442 void addConversion(NamedDecl *Found, FunctionDecl *D) {
792 FunctionDecl *Function;
955 bool isRewrittenOperator(const FunctionDecl *FD) {
960 bool isAcceptableCandidate(const FunctionDecl *FD) {
977 getRewriteKind(const FunctionDecl *FD, OverloadCandidateParamOrder PO) {
1000 bool shouldAddReversed(ASTContext &Ctx, const FunctionDecl *FD);
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DNameSearchContext.cpp78 clang::FunctionDecl *func_decl = FunctionDecl::Create(
83 // We have to do more than just synthesize the FunctionDecl. We have to
84 // synthesize ParmVarDecls for all of the FunctionDecl's arguments. To do
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DUndefResultChecker.cpp83 if (const FunctionDecl *EnclosingFunctionDecl =
84 dyn_cast<FunctionDecl>(C.getStackFrame()->getDecl()))
H A DIterator.cpp76 bool isInsertCall(const FunctionDecl *Func) {
87 bool isEmplaceCall(const FunctionDecl *Func) {
98 bool isEraseCall(const FunctionDecl *Func) {
112 bool isEraseAfterCall(const FunctionDecl *Func) {
H A DNSErrorChecker.cpp87 : public Checker< check::ASTDecl<FunctionDecl> > {
93 void checkASTDecl(const FunctionDecl *D,
98 static bool hasReservedReturnType(const FunctionDecl *D) {
107 void CFErrorFunctionChecker::checkASTDecl(const FunctionDecl *D,
H A DPointerArithChecker.cpp49 AllocKind getKindOfNewOp(const CXXNewExpr *NE, const FunctionDecl *FD) const;
91 const FunctionDecl *FD) const {
220 const FunctionDecl *FD = C.getCalleeDecl(CE);
242 const FunctionDecl *FD = NE->getOperatorNew();
H A DFuchsiaHandleChecker.cpp260 const FunctionDecl *FuncDecl = dyn_cast_or_null<FunctionDecl>(Call.getDecl());
307 const FunctionDecl *FuncDecl = dyn_cast_or_null<FunctionDecl>(Call.getDecl());
472 const FunctionDecl *FuncDecl =
473 Call ? dyn_cast_or_null<FunctionDecl>(Call->getDecl()) : nullptr;
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Analysis/Analyses/
H A DConsumed.h34 class FunctionDecl;
247 const FunctionDecl *D);
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCallEvent.cpp163 const auto *FD = dyn_cast_or_null<FunctionDecl>(getDecl());
331 const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(getDecl());
429 if (const auto *FD = dyn_cast<FunctionDecl>(D))
459 if (const auto *FD = dyn_cast<FunctionDecl>(D))
535 const FunctionDecl *D = getDecl();
542 const FunctionDecl *FD = getDecl();
546 // Note that the AnalysisDeclContext will have the FunctionDecl with
572 llvm::Expected<const FunctionDecl *> CTUDeclOrError =
590 const auto *D = cast<FunctionDecl>(CalleeCt
[all...]
H A DIssueHash.cpp30 static std::string GetSignature(const FunctionDecl *Target) {
38 if (const FunctionDecl *InstantiatedFrom =
106 DeclName = GetSignature(dyn_cast_or_null<FunctionDecl>(ND));
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h676 AST_MATCHER(FunctionDecl, isMain) {
728 FunctionDecl),
1012 FunctionDecl),
1315 extern const internal::VariadicDynCastAllOfMatcher<Decl, FunctionDecl>
2774 /// Usable as: Matcher<CXXOperatorCallExpr>, Matcher<FunctionDecl>
2777 AST_POLYMORPHIC_SUPPORTED_TYPES(CXXOperatorCallExpr, FunctionDecl)>
2781 AST_POLYMORPHIC_SUPPORTED_TYPES(CXXOperatorCallExpr, FunctionDecl)>(
2796 AST_POLYMORPHIC_SUPPORTED_TYPES(CXXOperatorCallExpr, FunctionDecl)>,
4264 AST_POLYMORPHIC_SUPPORTED_TYPES(FunctionDecl,
4345 if (const auto *Decl = dyn_cast_or_null<FunctionDecl>(Contex
[all...]
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/
H A DPdbAstBuilder.h25 class FunctionDecl;
63 clang::FunctionDecl *GetOrCreateFunctionDecl(PdbCompilandSymId func_id);
108 clang::FunctionDecl &function_decl,
/freebsd-13-stable/contrib/llvm-project/clang/lib/Index/
H A DIndexingContext.cpp155 } else if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
219 } else if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
253 if (auto FD = dyn_cast<FunctionDecl>(D))
/freebsd-13-stable/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransUnbridgedCasts.cpp135 if (FunctionDecl *FD = callE->getDirectCallee()) {
417 if (FunctionDecl *
418 FD = dyn_cast_or_null<FunctionDecl>(callE->getCalleeDecl()))
430 if (FunctionDecl *
431 FD = dyn_cast_or_null<FunctionDecl>(callE->getCalleeDecl())) {
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTWriter.h66 class FunctionDecl;
731 const FunctionDecl *D) override;
732 void ResolvedExceptionSpec(const FunctionDecl *FD) override;
733 void DeducedReturnType(const FunctionDecl *FD, QualType ReturnType) override;
735 const FunctionDecl *Delete,
737 void CompletedImplicitDefinition(const FunctionDecl *D) override;
740 void FunctionDefinitionInstantiated(const FunctionDecl *D) override;

Completed in 251 milliseconds

1234567891011>>