Home
last modified time | relevance | path

Searched refs:FunctionDecl (Results 1 – 25 of 300) sorted by relevance

12345678910>>...12

/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaCUDA.cpp205 Sema::IdentifyCUDAPreference(const FunctionDecl *Caller, in IdentifyCUDAPreference()
271 const FunctionDecl *Caller, in EraseUnwantedCUDAMatches()
276 using Pair = std::pair<DeclAccessPair, FunctionDecl*>; in EraseUnwantedCUDAMatches()
630 const FunctionDecl *InitFn = nullptr; in checkAllowedCUDAInitializer()
682 FunctionDecl *OldD = D->getAsFunction(); in maybeAddCUDAHostDeviceAttrs()
730 if (!isa<FunctionDecl>(CurContext)) in CUDADiagIfDeviceCode()
760 if (!isa<FunctionDecl>(CurContext)) in CUDADiagIfHostCode()
795 FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext); in CheckCUDACall()
861 FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext); in CUDACheckLambdaCapture()
900 FunctionDecl *OldFD = OldND->getAsFunction(); in checkCUDATargetOverload()
[all …]
H A DSemaSYCL.cpp25 FunctionDecl *FD = dyn_cast<FunctionDecl>(getCurLexicalContext()); in SYCLDiagIfDeviceCode()
36 bool Sema::checkSYCLDeviceFunction(SourceLocation Loc, FunctionDecl *Callee) { in checkSYCLDeviceFunction()
55 static QualType GetSYCLKernelObjectType(const FunctionDecl *KernelCaller) { in GetSYCLKernelObjectType()
67 void Sema::AddSYCLKernelLambda(const FunctionDecl *FD) { in AddSYCLKernelLambda()
H A DSema.cpp496 FunctionDecl *fn = dyn_cast<FunctionDecl>(CurContext); in makeUnavailableInSystemHeader()
703 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { in ShouldRemoveFromUnused()
713 const FunctionDecl *DeclToCheck; in ShouldRemoveFromUnused()
797 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) { in getUndefinedButUsed()
971 if (const FunctionDecl *FD = in IsRecordFullyDefined()
1290 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(*I)) { in ActOnEndOfTranslationUnit()
1291 const FunctionDecl *DiagD; in ActOnEndOfTranslationUnit()
1875 FunctionDecl *FD = in checkDeviceDecl()
1876 isa<FunctionDecl>(C) ? cast<FunctionDecl>(C) : dyn_cast<FunctionDecl>(D); in checkDeviceDecl()
2353 if (const FunctionDecl *Fun = dyn_cast<FunctionDecl>(DeclRef->getDecl())) { in tryExprAsCall()
[all …]
H A DCoroutineStmtBuilder.h26 FunctionDecl &FD;
37 CoroutineStmtBuilder(Sema &S, FunctionDecl &FD, sema::FunctionScopeInfo &Fn,
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DGlobalDecl.h70 GlobalDecl(const FunctionDecl *D, unsigned MVIndex = 0)
78 GlobalDecl(const FunctionDecl *D, KernelReferenceKind Kind) in GlobalDecl()
122 assert(isa<FunctionDecl>( in getMultiVersionIndex()
124 !cast<FunctionDecl>(getDecl())->hasAttr<CUDAGlobalAttr>() && in getMultiVersionIndex()
132 assert(isa<FunctionDecl>(getDecl()) && in getKernelReferenceKind()
133 cast<FunctionDecl>(getDecl())->hasAttr<CUDAGlobalAttr>() && in getKernelReferenceKind()
153 static KernelReferenceKind getDefaultKernelReference(const FunctionDecl *D) { in getDefaultKernelReference()
179 assert(isa<FunctionDecl>(getDecl()) && in getWithMultiVersionIndex()
180 !cast<FunctionDecl>(getDecl())->hasAttr<CUDAGlobalAttr>() && in getWithMultiVersionIndex()
190 assert(isa<FunctionDecl>(getDecl()) && in getWithKernelReferenceKind()
[all …]
H A DASTMutationListener.h26 class FunctionDecl; variable
73 const FunctionDecl *D) {} in AddedCXXTemplateSpecialization()
77 virtual void ResolvedExceptionSpec(const FunctionDecl *FD) {} in ResolvedExceptionSpec()
80 virtual void DeducedReturnType(const FunctionDecl *FD, QualType ReturnType);
84 const FunctionDecl *Delete, in ResolvedOperatorDelete()
88 virtual void CompletedImplicitDefinition(const FunctionDecl *D) {} in CompletedImplicitDefinition()
99 virtual void FunctionDefinitionInstantiated(const FunctionDecl *D) {} in FunctionDefinitionInstantiated()
H A DASTConsumer.h27 class FunctionDecl; variable
57 virtual void HandleInlineFunctionDefinition(FunctionDecl *D) {} in HandleInlineFunctionDefinition()
82 virtual void HandleCXXImplicitFunctionInstantiation(FunctionDecl *D) {} in HandleCXXImplicitFunctionInstantiation()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCheckSecuritySyntaxOnly.cpp103 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);
110 void checkCall_strcpy(const CallExpr *CE, const FunctionDecl *FD);
114 void checkCall_rand(const CallExpr *CE, const FunctionDecl *FD);
116 void checkCall_vfork(const CallExpr *CE, const FunctionDecl *FD);
134 const FunctionDecl *FD = CE->getDirectCallee(); in VisitCallExpr()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DDecl.cpp2836 FunctionDecl::FunctionDecl(Kind DK, ASTContext &C, DeclContext *DC, in FunctionDecl() function in FunctionDecl
2916 bool FunctionDecl::hasBody(const FunctionDecl *&Definition) const { in hasBody()
2963 bool FunctionDecl::isDefined(const FunctionDecl *&Definition, in isDefined()
2996 Stmt *FunctionDecl::getBody(const FunctionDecl *&Definition) const { in getBody()
3250 FunctionDecl::setPreviousDeclaration(FunctionDecl *PrevDecl) { in setPreviousDeclaration()
3264 FunctionDecl *FunctionDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl()
3626 FunctionDecl::TemplatedKind FunctionDecl::getTemplatedKind() const { in getTemplatedKind()
3642 FunctionDecl *FunctionDecl::getInstantiatedFromMemberFunction() const { in getInstantiatedFromMemberFunction()
3721 FunctionDecl *
4845 FunctionDecl *FunctionDecl::Create(ASTContext &C, DeclContext *DC, in Create()
[all …]
H A DMangle.cpp59 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) in isExternC()
76 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) in getCallingConvMangling()
87 const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND); in getCallingConvMangling()
213 const FunctionDecl *FD = cast<FunctionDecl>(D); in mangleName()
401 if (auto *FD = dyn_cast<FunctionDecl>(D)) { in writeName()
527 GD = GlobalDecl(cast<FunctionDecl>(D)); in writeFuncOrVarName()
/freebsd-13.1/contrib/llvm-project/clang/lib/Frontend/
H A DMultiplexConsumer.cpp90 const FunctionDecl *D) override;
91 void ResolvedExceptionSpec(const FunctionDecl *FD) 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) { in AddedCXXTemplateSpecialization()
154 const FunctionDecl *FD) { in ResolvedExceptionSpec()
158 void MultiplexASTMutationListener::DeducedReturnType(const FunctionDecl *FD, in DeducedReturnType()
164 const CXXDestructorDecl *DD, const FunctionDecl *Delete, Expr *ThisArg) { in ResolvedOperatorDelete()
183 const FunctionDecl *D) { in FunctionDefinitionInstantiated()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Analysis/
H A DRetainSummaryManager.h450 typedef llvm::DenseMap<const FunctionDecl*, const RetainSummary *>
499 const RetainSummary *getOSSummaryCreateRule(const FunctionDecl *FD);
502 const RetainSummary *getOSSummaryGetRule(const FunctionDecl *FD);
505 const RetainSummary *getOSSummaryRetainRule(const FunctionDecl *FD);
511 const RetainSummary *getOSSummaryFreeRule(const FunctionDecl *FD);
517 const RetainSummary *getCFSummaryGetRule(const FunctionDecl *FD);
601 const RetainSummary * generateSummary(const FunctionDecl *FD,
605 const RetainSummary *getSummaryForOSObject(const FunctionDecl *FD,
610 const FunctionDecl *FD,
673 const RetainSummary *getFunctionSummary(const FunctionDecl *FD);
[all …]
H A DAnyCall.h73 if (D && ((K == Function && !isa<FunctionDecl>(D)) || in AnyCall()
99 AnyCall(const FunctionDecl *D) : E(nullptr), D(D) { in AnyCall()
134 if (const auto *FD = dyn_cast<FunctionDecl>(D)) { in forDecl()
147 if (const auto *FD = dyn_cast<FunctionDecl>(D)) { in parameters()
169 return cast<FunctionDecl>(D)->getReturnType(); in getReturnType()
183 return cast<FunctionDecl>(D)->getReturnType(); in getReturnType()
H A DCodeInjector.h22 class FunctionDecl; variable
40 virtual Stmt *getBody(const FunctionDecl *D) = 0;
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/Interp/
H A DProgram.h31 class FunctionDecl; variable
76 Function *createFunction(const FunctionDecl *Def, Ts &&... Args) { in createFunction()
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 DFrame.h20 class FunctionDecl; variable
39 virtual const FunctionDecl *getCallee() const = 0;
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DPtrTypesSemantics.h19 class FunctionDecl; variable
51 bool isCtorOfRefCounted(const clang::FunctionDecl *F);
58 bool isPtrConversion(const FunctionDecl *F);
/freebsd-13.1/contrib/llvm-project/clang/lib/Analysis/
H A DCallGraph.cpp56 if (FunctionDecl *CalleeDecl = CE->getDirectCallee()) in getDeclFromCall()
84 for (FunctionDecl *FD : FTD->specializations()) in VisitLambdaExpr()
91 if (FunctionDecl *FD = E->getOperatorNew()) in VisitCXXNewExpr()
98 if (FunctionDecl *Def = Ctor->getDefinition()) in VisitCXXConstructExpr()
164 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { in includeCalleeInGraph()
H A DRetainSummaryManager.cpp191 static bool isRetain(const FunctionDecl *FD, StringRef FName) { in isRetain()
196 static bool isRelease(const FunctionDecl *FD, StringRef FName) { in isRelease()
201 static bool isAutorelease(const FunctionDecl *FD, StringRef FName) { in isAutorelease()
242 RetainSummaryManager::getSummaryForOSObject(const FunctionDecl *FD, in getSummaryForOSObject()
293 const FunctionDecl *FD, in getSummaryForObjCOrCFObject()
501 RetainSummaryManager::generateSummary(const FunctionDecl *FD, in generateSummary()
540 RetainSummaryManager::getFunctionSummary(const FunctionDecl *FD) { in getFunctionSummary()
771 const FunctionDecl* FDD = FD->getDefinition(); in canEval()
843 RetainSummaryManager::getOSSummaryGetRule(const FunctionDecl *FD) { in getOSSummaryGetRule()
855 RetainSummaryManager::getCFSummaryGetRule(const FunctionDecl *FD) { in getCFSummaryGetRule()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCheckerContext.cpp21 const FunctionDecl *CheckerContext::getCalleeDecl(const CallExpr *CE) const { in getCalleeDecl()
22 const FunctionDecl *D = CE->getDirectCallee(); in getCalleeDecl()
31 StringRef CheckerContext::getCalleeName(const FunctionDecl *FunDecl) const { in getCalleeName()
48 bool CheckerContext::isCLibraryFunction(const FunctionDecl *FD, in isCLibraryFunction()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Sema/
H A DTemplate.h37 class FunctionDecl; variable
524 void adjustForRewrite(RewriteKind RK, FunctionDecl *Orig, QualType &T,
534 Decl *VisitFunctionDecl(FunctionDecl *D,
589 TypeSourceInfo *SubstFunctionType(FunctionDecl *D,
591 bool InitFunctionInstantiation(FunctionDecl *New, FunctionDecl *Tmpl);
594 bool SubstDefaultedFunction(FunctionDecl *New, FunctionDecl *Tmpl);
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Analysis/DomainSpecific/
H A DCocoaConventions.h20 class FunctionDecl; variable
36 bool followsCreateRule(const FunctionDecl *FD);
/freebsd-13.1/contrib/llvm-project/clang/include/clang/CrossTU/
H A DCrossTranslationUnit.h33 class FunctionDecl; variable
146 llvm::Expected<const FunctionDecl *>
147 getCrossTUDefinition(const FunctionDecl *FD, StringRef CrossTUDir,
176 llvm::Expected<const FunctionDecl *> importDefinition(const FunctionDecl *FD,
/freebsd-13.1/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCheckerContext.h329 const FunctionDecl *getCalleeDecl(const CallExpr *CE) const;
332 StringRef getCalleeName(const FunctionDecl *FunDecl) const;
336 const FunctionDecl *FunDecl = getCalleeDecl(CE); in getCalleeIdentifier()
345 const FunctionDecl *FunDecl = getCalleeDecl(CE); in getCalleeName()
359 static bool isCLibraryFunction(const FunctionDecl *FD,
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Frontend/
H A DModelConsumer.cpp35 const FunctionDecl *func = llvm::dyn_cast<FunctionDecl>(*I); in HandleTopLevelDecl()

12345678910>>...12