Home
last modified time | relevance | path

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

12345678910>>...22

/llvm-project-15.0.7/polly/lib/External/isl/interface/
H A Dgenerator.h38 bool operator()(FunctionDecl *x, FunctionDecl *y) const { in operator()
86 set<FunctionDecl *> persistent_callbacks;
90 FunctionDecl *fn_type;
91 FunctionDecl *fn_to_str;
92 FunctionDecl *fn_copy;
93 FunctionDecl *fn_free;
102 bool is_static(FunctionDecl *method) const;
123 string method_name(FunctionDecl *fd) const;
152 set<FunctionDecl *> exported_functions,
153 set<FunctionDecl *> functions);
[all …]
H A Dpython.h14 set<FunctionDecl *> exported_functions, in python_generator()
15 set<FunctionDecl *> functions) : in python_generator()
29 void print_type_checks(const string &cname, FunctionDecl *method,
35 void print_argtypes(FunctionDecl *fd);
37 FunctionDecl *method, const char *fmt);
38 void print_restype(FunctionDecl *fd);
47 void print_method_type(FunctionDecl *fd);
53 FunctionDecl *method, const char *fmt,
58 FunctionDecl *method);
61 void print_set_enum(const isl_class &clazz, FunctionDecl *fd,
[all …]
H A Dgenerator.cc119 map<string, FunctionDecl *>::iterator i; in find_by_name()
171 FunctionDecl *fd = *fi; in extract_class_automatic_conversions()
254 FunctionDecl *fd) in add_set_enum()
346 static bool takes_enums(FunctionDecl *fd) in takes_enums()
362 static bool less_name(const FunctionDecl *a, const FunctionDecl *b) in less_name()
386 set<FunctionDecl *> exported_functions, set<FunctionDecl *> functions) : in generator()
389 set<FunctionDecl *>::iterator in; in generator()
391 vector<FunctionDecl *> type_subclasses; in generator()
392 vector<FunctionDecl *>::iterator iv; in generator()
395 FunctionDecl *decl = *in; in generator()
[all …]
H A Dcpp.h26 Method(const isl_class &clazz, FunctionDecl *fd,
28 Method(const isl_class &clazz, FunctionDecl *fd);
42 FunctionDecl *const fd;
88 EnumMethod(const isl_class &clazz, FunctionDecl *fd,
127 set<FunctionDecl *> exported_functions,
128 set<FunctionDecl *> functions);
165 bool next_variant(FunctionDecl *fd, std::vector<bool> &convert);
168 void print_descendent_overloads(FunctionDecl *fd,
174 virtual void print_get_method(FunctionDecl *fd) = 0;
175 void print_set_enums(FunctionDecl *fd);
[all …]
H A Dplain_cpp.h38 set<FunctionDecl *> exported_functions,
39 set<FunctionDecl *> functions,
51 const isl_class &clazz, FunctionDecl *fd);
78 void print_persistent_callback_prototype(FunctionDecl *method);
79 void print_persistent_callback_setter_prototype(FunctionDecl *method);
105 void print_persistent_callback_data(FunctionDecl *method);
109 virtual void print_get_method(FunctionDecl *fd) override;
124 virtual void print_get_method(FunctionDecl *fd) override;
H A Dpython.cc168 FunctionDecl *method, bool first_is_ctx, int n, in print_type_checks()
342 set<FunctionDecl *>::const_iterator in; in print_persistent_callback_failure_check()
389 FunctionDecl *method, const char *fmt) in print_method_return()
444 FunctionDecl *fd) in print_get_method()
522 FunctionDecl *method, vector<string> super) in print_method()
586 FunctionDecl *fd, int drop_ctx) in print_argument_checks()
637 FunctionDecl *method) in print_method_overload()
660 FunctionDecl *any_method; in print_method()
721 FunctionDecl *fd, const vector<string> &super) in print_set_enum()
737 FunctionDecl *cons) in print_constructor()
[all …]
H A Dcpp.cc88 set<FunctionDecl *> exported_functions, set<FunctionDecl *> functions) : in cpp_generator()
102 const std::string &name, FunctionDecl *fd, int depth) in copy_method()
113 static bool same_signature(FunctionDecl *fd1, FunctionDecl *fd2) in same_signature()
159 static bool is_overridden(FunctionDecl *fd, isl_class &clazz, in is_overridden()
403 static bool has_single_isl_argument(FunctionDecl *fd) in has_single_isl_argument()
418 static FunctionDecl *single_local(const isl_class &clazz, in single_local()
422 FunctionDecl *local; in single_local()
442 FunctionDecl *fd, const std::string &name) in print_descendent_overloads()
469 FunctionDecl *local; in print_method_group()
948 static ParmVarDecl *find_callback_arg(FunctionDecl *fd) in find_callback_arg()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DInconsistentDeclarationParameterNameCheck.cpp24 AST_MATCHER(FunctionDecl, hasOtherDeclarations) { in AST_MATCHER() argument
63 const FunctionDecl *ParameterSourceDeclaration, in checkIfFixItHintIsApplicable()
84 FunctionDecl::TK_FunctionTemplateSpecialization) in checkIfFixItHintIsApplicable()
170 const FunctionDecl *
240 const FunctionDecl *ParameterSourceDeclaration, in formatDiagnosticsForDeclarations()
241 const FunctionDecl *OriginalDeclaration, in formatDiagnosticsForDeclarations()
266 const FunctionDecl *ParameterSourceDeclaration, in formatDiagnostics()
267 const FunctionDecl *OriginalDeclaration, in formatDiagnostics()
309 const FunctionDecl *ParameterSourceDeclaration = in check()
329 FunctionDecl::TK_FunctionTemplateSpecialization) { in check()
[all …]
/llvm-project-15.0.7/clang/test/Index/
H A Dcomplete-type-factors.m38 // CHECK-CC1: FunctionDecl:{ResultType int}{TypedText func1}{LeftParen (}{Placeholder enum Color}{R…
39 // CHECK-CC1: FunctionDecl:{ResultType enum Priority}{TypedText func2}{LeftParen (}{Placeholder int…
51 // CHECK-CC2: FunctionDecl:{ResultType int}{TypedText func1}{LeftParen (}{Placeholder enum Color}{R…
52 // CHECK-CC2: FunctionDecl:{ResultType enum Priority}{TypedText func2}{LeftParen (}{Placeholder int…
66 // CHECK-CC3: FunctionDecl:{ResultType int}{TypedText func1}{LeftParen (}{Placeholder enum Color}{R…
68 // CHECK-CC3: FunctionDecl:{ResultType void}{TypedText func3}{LeftParen (}{Placeholder float}{Right…
82 // CHECK-CC4: FunctionDecl:{ResultType int}{TypedText func1}{LeftParen (}{Placeholder enum Color}{R…
84 // CHECK-CC4: FunctionDecl:{ResultType void}{TypedText func3}{LeftParen (}{Placeholder float}{Right…
102 // CHECK-CC6: FunctionDecl:{ResultType void}{TypedText func3}{LeftParen (}{Placeholder float}{Right…
118 // CHECK-CC7: FunctionDecl:{ResultType void}{TypedText func3}{LeftParen (}{Placeholder float}{Right…
[all …]
/llvm-project-15.0.7/clang/include/clang/AST/
H A DGlobalDecl.h71 GlobalDecl(const FunctionDecl *D, unsigned MVIndex = 0)
79 GlobalDecl(const FunctionDecl *D, KernelReferenceKind Kind) in GlobalDecl()
123 assert(isa<FunctionDecl>( in getMultiVersionIndex()
125 !cast<FunctionDecl>(getDecl())->hasAttr<CUDAGlobalAttr>() && in getMultiVersionIndex()
133 assert(((isa<FunctionDecl>(getDecl()) && in getKernelReferenceKind()
134 cast<FunctionDecl>(getDecl())->hasAttr<CUDAGlobalAttr>()) || in getKernelReferenceKind()
158 static KernelReferenceKind getDefaultKernelReference(const FunctionDecl *D) { in getDefaultKernelReference()
184 assert(isa<FunctionDecl>(getDecl()) && in getWithMultiVersionIndex()
185 !cast<FunctionDecl>(getDecl())->hasAttr<CUDAGlobalAttr>() && in getWithMultiVersionIndex()
195 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()
/llvm-project-15.0.7/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 …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DUnusedParametersCheck.cpp26 bool isOverrideMethod(const FunctionDecl *Function) { in isOverrideMethod()
60 const FunctionDecl *Function, unsigned Index) { in removeParameter()
82 getFnCalls(const FunctionDecl *Fn) { in getFnCalls()
87 getOtherRefs(const FunctionDecl *Fn) { in getOtherRefs()
94 if (const auto *Fn = dyn_cast<FunctionDecl>(DeclRef->getDecl())) { in WalkUpFromDeclRefExpr()
103 dyn_cast_or_null<FunctionDecl>(Call->getCalleeDecl())) { in WalkUpFromCallExpr()
120 std::unordered_map<const FunctionDecl *, IndexEntry> Index;
135 const MatchFinder::MatchResult &Result, const FunctionDecl *Function, in warnOnUnusedParameter()
167 for (const FunctionDecl *FD : Function->redecls()) in warnOnUnusedParameter()
178 const auto *Function = Result.Nodes.getNodeAs<FunctionDecl>("function"); in check()
H A DNewDeleteOverloadsCheck.cpp21 AST_MATCHER(FunctionDecl, isPlacementOverload) { in AST_MATCHER() argument
64 OverloadedOperatorKind getCorrespondingOverload(const FunctionDecl *FD) { in getCorrespondingOverload()
96 bool areCorrespondingOverloads(const FunctionDecl *LHS, in areCorrespondingOverloads()
97 const FunctionDecl *RHS) { in areCorrespondingOverloads()
154 const auto *FD = Result.Nodes.getNodeAs<FunctionDecl>("func"); in check()
166 SmallVector<const FunctionDecl *, 4> Diagnose; in onEndOfTranslationUnit()
174 [&Overload](const FunctionDecl *FD) { in onEndOfTranslationUnit()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DSignalHandlerCheck.cpp249 bool isStandardFunction(const FunctionDecl *FD) { in isStandardFunction()
296 AST_MATCHER(FunctionDecl, isStandardFunction) { in AST_MATCHER() argument
339 Result.Nodes.getNodeAs<FunctionDecl>("handler_decl"); in check()
368 if (const auto *CallF = dyn_cast<FunctionDecl>((*Itr)->getDecl())) { in check()
379 bool SignalHandlerCheck::checkFunction(const FunctionDecl *FD, in checkFunction()
408 const FunctionDecl *FD) const { in isStandardFunctionAsyncSafe()
436 << cast<FunctionDecl>(Callee->getDecl()) in reportHandlerChain()
437 << cast<FunctionDecl>(Caller->getDecl()); in reportHandlerChain()
443 << cast<FunctionDecl>(Caller->getDecl()) << HandlerRef->getSourceRange(); in reportHandlerChain()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaCUDA.cpp207 Sema::IdentifyCUDAPreference(const FunctionDecl *Caller, in IdentifyCUDAPreference()
208 const FunctionDecl *Callee) { in IdentifyCUDAPreference()
273 const FunctionDecl *Caller, in EraseUnwantedCUDAMatches()
278 using Pair = std::pair<DeclAccessPair, FunctionDecl*>; in EraseUnwantedCUDAMatches()
631 const FunctionDecl *InitFn = nullptr; in checkAllowedCUDAInitializer()
661 void Sema::maybeAddCUDAHostDeviceAttrs(FunctionDecl *NewD, in maybeAddCUDAHostDeviceAttrs()
683 FunctionDecl *OldD = D->getAsFunction(); in maybeAddCUDAHostDeviceAttrs()
905 void Sema::checkCUDATargetOverload(FunctionDecl *NewFD, in checkCUDATargetOverload()
910 FunctionDecl *OldFD = OldND->getAsFunction(); in checkCUDATargetOverload()
935 static void copyAttrIfPresent(Sema &S, FunctionDecl *FD, in copyAttrIfPresent()
[all …]
/llvm-project-15.0.7/clang/lib/AST/
H A DDecl.cpp2936 FunctionDecl::FunctionDecl(Kind DK, ASTContext &C, DeclContext *DC, in FunctionDecl() function in FunctionDecl
3017 bool FunctionDecl::hasBody(const FunctionDecl *&Definition) const { in hasBody()
3064 bool FunctionDecl::isDefined(const FunctionDecl *&Definition, in isDefined()
3097 Stmt *FunctionDecl::getBody(const FunctionDecl *&Definition) const { in getBody()
3358 FunctionDecl::setPreviousDeclaration(FunctionDecl *PrevDecl) { in setPreviousDeclaration()
3734 FunctionDecl::TemplatedKind FunctionDecl::getTemplatedKind() const { in getTemplatedKind()
3795 void FunctionDecl::setInstantiatedFromDecl(FunctionDecl *FD) { in setInstantiatedFromDecl()
3801 FunctionDecl *FunctionDecl::getInstantiatedFromDecl() const { in getInstantiatedFromDecl()
3847 FunctionDecl *
4990 FunctionDecl *
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DDefineInline.cpp56 llvm::Optional<SourceLocation> getSemicolonForDecl(const FunctionDecl *FD) { in getSemicolonForDecl()
72 if (const FunctionDecl *FD = AstNode.get<FunctionDecl>()) in getSelectedFunction()
77 return P->ASTNode.get<FunctionDecl>(); in getSelectedFunction()
125 llvm::Expected<std::string> qualifyAllDecls(const FunctionDecl *FD, in qualifyAllDecls()
126 const FunctionDecl *Target, in qualifyAllDecls()
224 renameParameters(const FunctionDecl *Dest, const FunctionDecl *Source, in renameParameters()
328 const FunctionDecl *findTarget(const FunctionDecl *FD) { in findTarget()
345 const SourceLocation getBeginLoc(const FunctionDecl *FD) { in getBeginLoc()
353 addInlineIfInHeader(const FunctionDecl *FD) { in addInlineIfInHeader()
508 const FunctionDecl *Source = nullptr;
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DExceptionAnalyzer.h131 ExceptionInfo analyze(const FunctionDecl *Func);
136 throwsException(const FunctionDecl *Func,
137 llvm::SmallSet<const FunctionDecl *, 32> &CallStack);
140 llvm::SmallSet<const FunctionDecl *, 32> &CallStack);
142 ExceptionInfo analyzeImpl(const FunctionDecl *Func);
149 std::map<const FunctionDecl *, ExceptionInfo> FunctionCache;
/llvm-project-15.0.7/clang/unittests/AST/
H A DASTImporterTest.cpp1665 FunctionDecl *FromD = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
4490 FunctionDecl *FromD = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
5978 FunctionDecl *FromF = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
6333 FunctionDecl *From = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
6351 FunctionDecl *From = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
6369 FunctionDecl *From = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
6388 FunctionDecl *From = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
6513 FunctionDecl *From = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
6532 FunctionDecl *From = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
6549 FunctionDecl *From = FirstDeclMatcher<FunctionDecl>().match( in TEST_P()
[all …]
H A DDeclTest.cpp171 selectFirst<FunctionDecl>("f", match(functionDecl().bind("f"), Ctx)); in TEST()
199 const FunctionDecl *TemplateF = Funcs[0].getNodeAs<FunctionDecl>("f"); in TEST()
200 const FunctionDecl *SpecializedF = Funcs[1].getNodeAs<FunctionDecl>("f"); in TEST()
232 const auto *f = selectFirst<FunctionDecl>( in TEST()
240 const auto *g = selectFirst<FunctionDecl>( in TEST()
250 f = selectFirst<FunctionDecl>( in TEST()
257 g = selectFirst<FunctionDecl>( in TEST()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DUnnecessaryValueParamCheck.cpp34 bool isReferencedOutsideOfCallExpr(const FunctionDecl &Function, in isReferencedOutsideOfCallExpr()
85 const auto *Function = Result.Nodes.getNodeAs<FunctionDecl>("functionDecl"); in check()
143 (Function->getTemplatedKind() != FunctionDecl::TK_NonTemplate)) in check()
145 for (const auto *FunctionDecl = Function; FunctionDecl != nullptr; in check() local
146 FunctionDecl = FunctionDecl->getPreviousDecl()) { in check()
147 const auto &CurrentParam = *FunctionDecl->getParamDecl(Index); in check()
/llvm-project-15.0.7/clang/lib/Frontend/
H A DMultiplexConsumer.cpp96 const FunctionDecl *D) override;
97 void ResolvedExceptionSpec(const FunctionDecl *FD) override;
100 const FunctionDecl *Delete,
102 void CompletedImplicitDefinition(const FunctionDecl *D) override;
105 void FunctionDefinitionInstantiated(const FunctionDecl *D) override;
155 const FunctionTemplateDecl *TD, const FunctionDecl *D) { in AddedCXXTemplateSpecialization()
160 const FunctionDecl *FD) { in ResolvedExceptionSpec()
164 void MultiplexASTMutationListener::DeducedReturnType(const FunctionDecl *FD, in DeducedReturnType()
170 const CXXDestructorDecl *DD, const FunctionDecl *Delete, Expr *ThisArg) { in ResolvedOperatorDelete()
189 const FunctionDecl *D) { in FunctionDefinitionInstantiated()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseTrailingReturnTypeCheck.h45 const FunctionDecl &F, const FunctionTypeLoc &FTL, const ASTContext &Ctx,
48 classifyTokensBeforeFunctionName(const FunctionDecl &F, const ASTContext &Ctx,
51 SourceRange findReturnTypeAndCVSourceRange(const FunctionDecl &F,
57 SourceRange ReturnTypeCVRange, const FunctionDecl &F,
/llvm-project-15.0.7/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 …]

12345678910>>...22