Searched refs:FunctionDecl (Results 1 - 25 of 291) sorted by relevance

1234567891011>>

/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Analysis/
H A DCodeInjector.h22 class FunctionDecl;
40 virtual Stmt *getBody(const FunctionDecl *D) = 0;
H A DBodyFarm.h25 class FunctionDecl;
36 Stmt *getBody(const FunctionDecl *D);
H A DAnyCall.h73 if (D && ((K == Function && !isa<FunctionDecl>(D)) ||
99 AnyCall(const FunctionDecl *D) : E(nullptr), D(D) {
134 if (const auto *FD = dyn_cast<FunctionDecl>(D)) {
147 if (const auto *FD = dyn_cast<FunctionDecl>(D)) {
169 return cast<FunctionDecl>(D)->getReturnType();
183 return cast<FunctionDecl>(D)->getReturnType();
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Analysis/DomainSpecific/
H A DCocoaConventions.h20 class FunctionDecl;
36 bool followsCreateRule(const FunctionDecl *FD);
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/Interp/
H A DFrame.h20 class FunctionDecl;
39 virtual const FunctionDecl *getCallee() const = 0;
H A DProgram.h31 class FunctionDecl;
76 Function *createFunction(const FunctionDecl *Def, Ts &&... Args) {
90 Function *getFunction(const FunctionDecl *F);
95 llvm::Expected<Function *> getOrCreateFunction(const FunctionDecl *F);
139 llvm::DenseMap<const FunctionDecl *, std::unique_ptr<Function>> Funcs;
144 llvm::DenseMap<const FunctionDecl *, std::vector<unsigned>> Relocs;
H A DContext.h28 class FunctionDecl;
47 bool isPotentialConstantExpr(State &Parent, const FunctionDecl *FnDecl);
H A DFunction.h73 /// Returns the original FunctionDecl.
74 const FunctionDecl *getDecl() const { return F; }
113 Function(Program &P, const FunctionDecl *F, unsigned ArgSize,
136 const FunctionDecl *F;
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DPtrTypesSemantics.h17 class FunctionDecl;
48 bool isCtorOfRefCounted(const clang::FunctionDecl *F);
55 bool isPtrConversion(const FunctionDecl *F);
H A DASTUtils.h22 class FunctionDecl;
/freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/
H A DSemaSYCL.cpp24 FunctionDecl *FD = dyn_cast<FunctionDecl>(getCurLexicalContext());
35 bool Sema::checkSYCLDeviceFunction(SourceLocation Loc, FunctionDecl *Callee) {
H A DCoroutineStmtBuilder.h26 FunctionDecl &FD;
37 CoroutineStmtBuilder(Sema &S, FunctionDecl &FD, sema::FunctionScopeInfo &Fn,
H A DSemaCUDA.cpp45 FunctionDecl *ConfigDecl = Context.getcudaConfigureCallDecl();
100 static bool hasAttr(const FunctionDecl *D, bool IgnoreImplicitAttr) {
108 Sema::CUDAFunctionTarget Sema::IdentifyCUDATarget(const FunctionDecl *D,
164 Sema::IdentifyCUDAPreference(const FunctionDecl *Caller,
165 const FunctionDecl *Callee) {
215 template <typename AttrT> static bool hasImplicitAttr(const FunctionDecl *D) {
223 bool Sema::isCUDAImplicitHostDeviceFunction(const FunctionDecl *D) {
230 const FunctionDecl *Caller,
231 SmallVectorImpl<std::pair<DeclAccessPair, FunctionDecl *>> &Matches) {
235 using Pair = std::pair<DeclAccessPair, FunctionDecl*>;
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Frontend/
H A DModelConsumer.cpp35 const FunctionDecl *func = llvm::dyn_cast<FunctionDecl>(*I);
H A DModelInjector.h41 Stmt *getBody(const FunctionDecl *D) override;
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/AST/
H A DASTMutationListener.h26 class FunctionDecl;
73 const FunctionDecl *D) {}
77 virtual void ResolvedExceptionSpec(const FunctionDecl *FD) {}
80 virtual void DeducedReturnType(const FunctionDecl *FD, QualType ReturnType);
84 const FunctionDecl *Delete,
88 virtual void CompletedImplicitDefinition(const FunctionDecl *D) {}
99 virtual void FunctionDefinitionInstantiated(const FunctionDecl *D) {}
H A DASTConsumer.h27 class FunctionDecl;
57 virtual void HandleInlineFunctionDefinition(FunctionDecl *D) {}
82 virtual void HandleCXXImplicitFunctionInstantiation(FunctionDecl *D) {}
H A DGlobalDecl.h45 /// a FunctionDecl and the kernel reference type (Kernel, Stub), or
46 /// a VarDecl, a FunctionDecl or a BlockDecl.
69 GlobalDecl(const FunctionDecl *D, unsigned MVIndex = 0)
77 GlobalDecl(const FunctionDecl *D, KernelReferenceKind Kind)
121 assert(isa<FunctionDecl>(
123 !cast<FunctionDecl>(getDecl())->hasAttr<CUDAGlobalAttr>() &&
126 "Decl is not a plain FunctionDecl!");
131 assert(isa<FunctionDecl>(getDecl()) &&
132 cast<FunctionDecl>(getDecl())->hasAttr<CUDAGlobalAttr>() &&
152 static KernelReferenceKind getDefaultKernelReference(const FunctionDecl *
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Sema/
H A DAnalysisBasedWarnings.h22 class FunctionDecl;
51 llvm::DenseMap<const FunctionDecl*, VisitFlag> VisitedFD;
/freebsd-13-stable/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransGCCalls.cpp47 if (FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(DRE->getDecl())) {
/freebsd-13-stable/contrib/llvm-project/clang/lib/Frontend/
H A DMultiplexConsumer.cpp90 const FunctionDecl *D) override;
91 void ResolvedExceptionSpec(const FunctionDecl *FD) override;
92 void DeducedReturnType(const FunctionDecl *FD, QualType ReturnType) override;
94 const FunctionDecl *Delete,
96 void CompletedImplicitDefinition(const FunctionDecl *D) override;
99 void FunctionDefinitionInstantiated(const FunctionDecl *D) override;
149 const FunctionTemplateDecl *TD, const FunctionDecl *D) {
154 const FunctionDecl *FD) {
158 void MultiplexASTMutationListener::DeducedReturnType(const FunctionDecl *FD,
164 const CXXDestructorDecl *DD, const FunctionDecl *Delet
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/
H A DDecl.cpp306 if (isa<FunctionDecl>(DC) || isa<BlockDecl>(DC))
368 static bool shouldConsiderTemplateVisibility(const FunctionDecl *fn,
388 LinkageInfo &LV, const FunctionDecl *fn,
537 const auto *FD = dyn_cast<FunctionDecl>(D);
550 const FunctionDecl *Def = nullptr;
620 if (auto *FD = dyn_cast<FunctionDecl>(D))
690 const auto *Func = dyn_cast<FunctionDecl>(D);
807 } else if (const auto *Function = dyn_cast<FunctionDecl>(D)) {
1161 if (const auto *fn = dyn_cast<FunctionDecl>(ND)) {
1171 FunctionDecl *InstantiatedFro
2766 FunctionDecl::FunctionDecl(Kind DK, ASTContext &C, DeclContext *DC, function in class:FunctionDecl
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCheckSecuritySyntaxOnly.cpp96 bool checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD);
98 typedef void (WalkAST::*FnCheck)(const CallExpr *, const FunctionDecl *);
103 void checkCall_bcmp(const CallExpr *CE, const FunctionDecl *FD);
104 void checkCall_bcopy(const CallExpr *CE, const FunctionDecl *FD);
105 void checkCall_bzero(const CallExpr *CE, const FunctionDecl *FD);
106 void checkCall_gets(const CallExpr *CE, const FunctionDecl *FD);
107 void checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD);
108 void checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD);
109 void checkCall_mkstemp(const CallExpr *CE, const FunctionDecl *FD);
110 void checkCall_strcpy(const CallExpr *CE, const FunctionDecl *F
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Analysis/Analyses/
H A DThreadSafety.h27 class FunctionDecl;
224 virtual void enterFunction(const FunctionDecl *FD) {}
227 virtual void leaveFunction(const FunctionDecl *FD) {}
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCheckerContext.cpp21 const FunctionDecl *CheckerContext::getCalleeDecl(const CallExpr *CE) const {
27 StringRef CheckerContext::getCalleeName(const FunctionDecl *FunDecl) const {
44 bool CheckerContext::isCLibraryFunction(const FunctionDecl *FD,

Completed in 121 milliseconds

1234567891011>>