Home
last modified time | relevance | path

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

12345678910>>...31

/external/llvm-project/polly/lib/External/isl/interface/
Dgenerator.h38 bool operator()(FunctionDecl *x, FunctionDecl *y) const { in operator()
45 typedef std::set<FunctionDecl *, function_name_less> function_set;
74 set<FunctionDecl *> persistent_callbacks;
75 map<FunctionDecl *, vector<set_enum> > set_enums;
78 FunctionDecl *fn_type;
79 FunctionDecl *fn_to_str;
80 FunctionDecl *fn_copy;
81 FunctionDecl *fn_free;
84 bool is_static(FunctionDecl *method) const;
88 static string name_without_type_suffixes(FunctionDecl *fd);
[all …]
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,
33 void print_arg_in_call(FunctionDecl *fd, const char *fmt, int arg,
35 void print_argtypes(FunctionDecl *fd);
37 FunctionDecl *method, const char *fmt);
38 void print_restype(FunctionDecl *fd);
40 void print_constructor(const isl_class &clazz, FunctionDecl *method);
47 void print_method_type(FunctionDecl *fd);
49 void print_get_method(const isl_class &clazz, FunctionDecl *fd);
[all …]
Dcpp.h16 set<FunctionDecl *> exported_functions,
17 set<FunctionDecl *> functions,
54 const isl_class &clazz, FunctionDecl *method,
57 const isl_class &clazz, FunctionDecl *method,
60 FunctionDecl *method);
64 bool next_variant(FunctionDecl *fd, std::vector<bool> &convert);
67 FunctionDecl *fd);
71 FunctionDecl *fd, const string &name, function_kind kind,
75 FunctionDecl *method, function_kind kind);
78 FunctionDecl *method, function_kind kind,
[all …]
Dgenerator.cc53 bool isl_class::is_static(FunctionDecl *method) const in is_static()
72 bool generator::is_static(const isl_class &clazz, FunctionDecl *method) in is_static()
81 bool generator::is_mutator(const isl_class &clazz, FunctionDecl *fd) in is_mutator()
105 FunctionDecl *generator::find_by_name(const string &name, bool required) in find_by_name()
107 map<string, FunctionDecl *>::iterator i; in find_by_name()
133 void generator::extract_automatic_conversion(FunctionDecl *fd) in extract_automatic_conversion()
159 FunctionDecl *fd = *fi; in extract_class_automatic_conversions()
213 void generator::add_type_subclasses(FunctionDecl *fn_type) in add_type_subclasses()
242 FunctionDecl *fd) in add_set_enum()
267 static bool handled_sets_enum(isl_class *c, FunctionDecl *fd) in handled_sets_enum()
[all …]
Dpython.cc168 FunctionDecl *method, bool first_is_ctx, int n, in print_type_checks()
298 void python_generator::print_arg_in_call(FunctionDecl *fd, const char *fmt, in print_arg_in_call()
343 const set<FunctionDecl *> &callbacks = clazz.persistent_callbacks; in print_persistent_callback_failure_check()
344 set<FunctionDecl *>::const_iterator in; in print_persistent_callback_failure_check()
391 FunctionDecl *method, const char *fmt) in print_method_return()
446 FunctionDecl *fd) in print_get_method()
471 FunctionDecl *method, const char *fmt, int drop_ctx, int drop_user) in print_method_call()
524 FunctionDecl *method, vector<string> super) in print_method()
588 FunctionDecl *fd, int drop_ctx) in print_argument_checks()
639 FunctionDecl *method) in print_method_overload()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DInconsistentDeclarationParameterNameCheck.cpp25 AST_MATCHER(FunctionDecl, hasOtherDeclarations) { in AST_MATCHER() argument
64 const FunctionDecl *ParameterSourceDeclaration, in checkIfFixItHintIsApplicable()
65 const ParmVarDecl *SourceParam, const FunctionDecl *OriginalDeclaration) { in checkIfFixItHintIsApplicable()
85 FunctionDecl::TK_FunctionTemplateSpecialization) in checkIfFixItHintIsApplicable()
102 findDifferingParamsInDeclaration(const FunctionDecl *ParameterSourceDeclaration, in findDifferingParamsInDeclaration()
103 const FunctionDecl *OtherDeclaration, in findDifferingParamsInDeclaration()
104 const FunctionDecl *OriginalDeclaration, in findDifferingParamsInDeclaration()
139 findInconsistentDeclarations(const FunctionDecl *OriginalDeclaration, in findInconsistentDeclarations()
140 const FunctionDecl *ParameterSourceDeclaration, in findInconsistentDeclarations()
146 for (const FunctionDecl *OtherDeclaration : OriginalDeclaration->redecls()) { in findInconsistentDeclarations()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DSignalHandlerCheck.cpp26 static bool isSystemCall(const FunctionDecl *FD) { in isSystemCall()
57 AST_MATCHER(FunctionDecl, isSystemCall) { return isSystemCall(&Node); } in AST_MATCHER() argument
94 Result.Nodes.getNodeAs<FunctionDecl>("handler_decl"); in check()
98 llvm::DenseSet<const FunctionDecl *> SeenFunctions; in check()
103 auto ProcessFunction = [&](const FunctionDecl *F, const Expr *CallOrRef) { in check()
123 const FunctionDecl *FBody; in check()
134 if (isa<FunctionDecl>(CE->getCalleeDecl())) in check()
150 const auto *F = cast<FunctionDecl>(FunctionCall->getCalleeDecl()); in check()
157 bool SignalHandlerCheck::isSystemCallAllowed(const FunctionDecl *FD) const { in isSystemCallAllowed()
170 void SignalHandlerCheck::reportBug(const FunctionDecl *CalledFunction, in reportBug()
[all …]
/external/llvm-project/clang/lib/Sema/
DSemaCUDA.cpp45 FunctionDecl *ConfigDecl = Context.getcudaConfigureCallDecl(); in ActOnCUDAExecConfigExpr()
100 static bool hasAttr(const FunctionDecl *D, bool IgnoreImplicitAttr) { in hasAttr()
108 Sema::CUDAFunctionTarget Sema::IdentifyCUDATarget(const FunctionDecl *D, in IdentifyCUDATarget()
164 Sema::IdentifyCUDAPreference(const FunctionDecl *Caller, in IdentifyCUDAPreference()
165 const FunctionDecl *Callee) { in IdentifyCUDAPreference()
215 template <typename AttrT> static bool hasImplicitAttr(const FunctionDecl *D) { in hasImplicitAttr()
223 bool Sema::isCUDAImplicitHostDeviceFunction(const FunctionDecl *D) { in isCUDAImplicitHostDeviceFunction()
230 const FunctionDecl *Caller, in EraseUnwantedCUDAMatches()
231 SmallVectorImpl<std::pair<DeclAccessPair, FunctionDecl *>> &Matches) { in EraseUnwantedCUDAMatches()
235 using Pair = std::pair<DeclAccessPair, FunctionDecl*>; in EraseUnwantedCUDAMatches()
[all …]
/external/clang/lib/Sema/
DSemaCUDA.cpp29 FunctionDecl *ConfigDecl = Context.getcudaConfigureCallDecl(); in ActOnCUDAExecConfigExpr()
44 Sema::CUDAFunctionTarget Sema::IdentifyCUDATarget(const FunctionDecl *D) { in IdentifyCUDATarget()
95 Sema::IdentifyCUDAPreference(const FunctionDecl *Caller, in IdentifyCUDAPreference()
96 const FunctionDecl *Callee) { in IdentifyCUDAPreference()
150 Sema &S, const FunctionDecl *Caller, llvm::SmallVectorImpl<T> &Matches, in EraseUnwantedCUDAMatchesImpl()
151 std::function<const FunctionDecl *(const T &)> FetchDecl) { in EraseUnwantedCUDAMatchesImpl()
172 void Sema::EraseUnwantedCUDAMatches(const FunctionDecl *Caller, in EraseUnwantedCUDAMatches()
173 SmallVectorImpl<FunctionDecl *> &Matches){ in EraseUnwantedCUDAMatches()
174 EraseUnwantedCUDAMatchesImpl<FunctionDecl *>( in EraseUnwantedCUDAMatches()
175 *this, Caller, Matches, [](const FunctionDecl *item) { return item; }); in EraseUnwantedCUDAMatches()
[all …]
/external/llvm-project/clang/test/Index/
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…
47 // CHECK-CC1: FunctionDecl:{ResultType enum Priority}{TypedText test1}{LeftParen (}{Placeholder enu…
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…
61 // CHECK-CC2: FunctionDecl:{ResultType enum Priority}{TypedText test1}{LeftParen (}{Placeholder enu…
66 // CHECK-CC3: FunctionDecl:{ResultType int}{TypedText func1}{LeftParen (}{Placeholder enum Color}{R…
67 // CHECK-CC3: FunctionDecl:{ResultType enum Priority}{TypedText func2}{LeftParen (}{Placeholder int…
68 // CHECK-CC3: FunctionDecl:{ResultType void}{TypedText func3}{LeftParen (}{Placeholder float}{Right…
77 // CHECK-CC3: FunctionDecl:{ResultType enum Priority}{TypedText test1}{LeftParen (}{Placeholder enu…
[all …]
/external/clang/test/Index/
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…
48 // CHECK-CC1: FunctionDecl:{ResultType enum Priority}{TypedText test1}{LeftParen (}{Placeholder enu…
53 // CHECK-CC2: FunctionDecl:{ResultType int}{TypedText func1}{LeftParen (}{Placeholder enum Color}{R…
54 // CHECK-CC2: FunctionDecl:{ResultType enum Priority}{TypedText func2}{LeftParen (}{Placeholder int…
63 // CHECK-CC2: FunctionDecl:{ResultType enum Priority}{TypedText test1}{LeftParen (}{Placeholder enu…
68 // CHECK-CC3: FunctionDecl:{ResultType int}{TypedText func1}{LeftParen (}{Placeholder enum Color}{R…
69 // CHECK-CC3: FunctionDecl:{ResultType enum Priority}{TypedText func2}{LeftParen (}{Placeholder int…
70 // CHECK-CC3: FunctionDecl:{ResultType void}{TypedText func3}{LeftParen (}{Placeholder float}{Right…
79 // CHECK-CC3: FunctionDecl:{ResultType enum Priority}{TypedText test1}{LeftParen (}{Placeholder enu…
[all …]
/external/clang/include/clang/AST/
DASTMutationListener.h25 class FunctionDecl; variable
71 const FunctionDecl *D) {} in AddedCXXTemplateSpecialization()
75 virtual void ResolvedExceptionSpec(const FunctionDecl *FD) {} in ResolvedExceptionSpec()
78 virtual void DeducedReturnType(const FunctionDecl *FD, QualType ReturnType);
82 const FunctionDecl *Delete) {} in ResolvedOperatorDelete()
85 virtual void CompletedImplicitDefinition(const FunctionDecl *D) {} in CompletedImplicitDefinition()
91 virtual void FunctionDefinitionInstantiated(const FunctionDecl *D) {} in FunctionDefinitionInstantiated()
/external/llvm-project/clang/include/clang/AST/
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 …]
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()
/external/llvm-project/clang-tools-extra/clang-tidy/misc/
DUnusedParametersCheck.cpp26 bool isOverrideMethod(const FunctionDecl *Function) { in isOverrideMethod()
59 const FunctionDecl *Function, unsigned Index) { in removeParameter()
81 getFnCalls(const FunctionDecl *Fn) { in getFnCalls()
86 getOtherRefs(const FunctionDecl *Fn) { in getOtherRefs()
93 if (const auto *Fn = dyn_cast<FunctionDecl>(DeclRef->getDecl())) { in WalkUpFromDeclRefExpr()
102 dyn_cast_or_null<FunctionDecl>(Call->getCalleeDecl())) { in WalkUpFromCallExpr()
119 std::unordered_map<const FunctionDecl *, IndexEntry> Index;
134 const MatchFinder::MatchResult &Result, const FunctionDecl *Function, in warnOnUnusedParameter()
163 for (const FunctionDecl *FD : Function->redecls()) in warnOnUnusedParameter()
174 const auto *Function = Result.Nodes.getNodeAs<FunctionDecl>("function"); in check()
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()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
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 *FD);
[all …]
/external/llvm-project/clang/unittests/AST/
DASTImporterTest.cpp44 auto *D0 = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
54 auto *D0 = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
55 auto *D2 = LastDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
56 FunctionDecl *D1 = D2->getPreviousDecl(); in TEST_P()
68 auto *D0 = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
69 auto *D2 = LastDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in TEST_P()
70 FunctionDecl *D1 = D2->getPreviousDecl(); in TEST_P()
151 FunctionDecl *D0, *D1, *D2;
155 D0 = FirstDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in ImportPath()
156 D2 = LastDeclMatcher<FunctionDecl>().match(FromTU, Pattern); in ImportPath()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DCheckSecuritySyntaxOnly.cpp87 bool checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD);
89 typedef void (WalkAST::*FnCheck)(const CallExpr *, const FunctionDecl *);
93 void checkCall_gets(const CallExpr *CE, const FunctionDecl *FD);
94 void checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD);
95 void checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD);
96 void checkCall_mkstemp(const CallExpr *CE, const FunctionDecl *FD);
97 void checkCall_strcpy(const CallExpr *CE, const FunctionDecl *FD);
98 void checkCall_strcat(const CallExpr *CE, const FunctionDecl *FD);
99 void checkCall_rand(const CallExpr *CE, const FunctionDecl *FD);
100 void checkCall_random(const CallExpr *CE, const FunctionDecl *FD);
[all …]
/external/llvm-project/clang/lib/AST/
DDecl.cpp306 if (isa<FunctionDecl>(DC) || isa<BlockDecl>(DC)) in getOutermostFuncOrBlockContext()
368 static bool shouldConsiderTemplateVisibility(const FunctionDecl *fn, in shouldConsiderTemplateVisibility()
388 LinkageInfo &LV, const FunctionDecl *fn, in mergeTemplateLV()
537 const auto *FD = dyn_cast<FunctionDecl>(D); in useInlineVisibilityHidden()
550 const FunctionDecl *Def = nullptr; in useInlineVisibilityHidden()
620 if (auto *FD = dyn_cast<FunctionDecl>(D)) in getStorageClass()
690 const auto *Func = dyn_cast<FunctionDecl>(D); in getLVForNamespaceScopeDecl()
807 } else if (const auto *Function = dyn_cast<FunctionDecl>(D)) { in getLVForNamespaceScopeDecl()
1161 if (const auto *fn = dyn_cast<FunctionDecl>(ND)) { in getExplicitVisibilityAux()
1171 FunctionDecl *InstantiatedFrom = fn->getInstantiatedFromMemberFunction(); in getExplicitVisibilityAux()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/utils/
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;
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
DDefineInline.cpp72 llvm::Optional<SourceLocation> getSemicolonForDecl(const FunctionDecl *FD) { in getSemicolonForDecl()
86 const FunctionDecl *getSelectedFunction(const SelectionTree::Node *SelNode) { in getSelectedFunction()
88 if (const FunctionDecl *FD = AstNode.get<FunctionDecl>()) in getSelectedFunction()
93 return P->ASTNode.get<FunctionDecl>(); in getSelectedFunction()
102 const FunctionDecl *Target, const SourceManager &SM) { in checkDeclsAreVisible()
141 llvm::Expected<std::string> qualifyAllDecls(const FunctionDecl *FD, in qualifyAllDecls()
142 const FunctionDecl *Target) { in qualifyAllDecls()
233 renameParameters(const FunctionDecl *Dest, const FunctionDecl *Source) { in renameParameters()
335 const FunctionDecl *findTarget(const FunctionDecl *FD) { in findTarget()
352 const SourceLocation getBeginLoc(const FunctionDecl *FD) { in getBeginLoc()
[all …]
/external/clang/lib/AST/
DDecl.cpp304 if (isa<FunctionDecl>(DC) || isa<BlockDecl>(DC)) in getOutermostFuncOrBlockContext()
365 static bool shouldConsiderTemplateVisibility(const FunctionDecl *fn, in shouldConsiderTemplateVisibility()
385 mergeTemplateLV(LinkageInfo &LV, const FunctionDecl *fn, in mergeTemplateLV()
544 const auto *FD = dyn_cast<FunctionDecl>(D); in useInlineVisibilityHidden()
557 const FunctionDecl *Def = nullptr; in useInlineVisibilityHidden()
622 } else if (const FunctionDecl *Function = D->getAsFunction()) { in getLVForNamespaceScopeDecl()
640 const auto *Func = dyn_cast<FunctionDecl>(D); in getLVForNamespaceScopeDecl()
744 } else if (const auto *Function = dyn_cast<FunctionDecl>(D)) { in getLVForNamespaceScopeDecl()
1088 if (const auto *fn = dyn_cast<FunctionDecl>(ND)) { in getExplicitVisibilityAux()
1098 FunctionDecl *InstantiatedFrom = fn->getInstantiatedFromMemberFunction(); in getExplicitVisibilityAux()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/performance/
DUnnecessaryValueParamCheck.cpp34 bool isReferencedOutsideOfCallExpr(const FunctionDecl &Function, in isReferencedOutsideOfCallExpr()
54 bool isExplicitTemplateSpecialization(const FunctionDecl &Function) { in isExplicitTemplateSpecialization()
60 if (Method->getTemplatedKind() == FunctionDecl::TK_MemberSpecialization && in isExplicitTemplateSpecialization()
96 const auto *Function = Result.Nodes.getNodeAs<FunctionDecl>("functionDecl"); in check()
158 for (const auto *FunctionDecl = Function; FunctionDecl != nullptr; in check() local
159 FunctionDecl = FunctionDecl->getPreviousDecl()) { in check()
160 const auto &CurrentParam = *FunctionDecl->getParamDecl(Index); in check()
/external/clang/lib/Frontend/
DMultiplexConsumer.cpp115 const FunctionDecl *D) override;
116 void ResolvedExceptionSpec(const FunctionDecl *FD) override;
117 void DeducedReturnType(const FunctionDecl *FD, QualType ReturnType) override;
119 const FunctionDecl *Delete) override;
120 void CompletedImplicitDefinition(const FunctionDecl *D) override;
125 void FunctionDefinitionInstantiated(const FunctionDecl *D) override;
170 const FunctionTemplateDecl *TD, const FunctionDecl *D) { in AddedCXXTemplateSpecialization()
175 const FunctionDecl *FD) { in ResolvedExceptionSpec()
179 void MultiplexASTMutationListener::DeducedReturnType(const FunctionDecl *FD, in DeducedReturnType()
185 const CXXDestructorDecl *DD, const FunctionDecl *Delete) { in ResolvedOperatorDelete()
[all …]

12345678910>>...31