Home
last modified time | relevance | path

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

12345678910

/external/clang/lib/Sema/
DSemaCUDA.cpp26 FunctionDecl *ConfigDecl = Context.getcudaConfigureCallDecl(); in ActOnCUDAExecConfigExpr()
41 Sema::CUDAFunctionTarget Sema::IdentifyCUDATarget(const FunctionDecl *D) { in IdentifyCUDATarget()
92 Sema::IdentifyCUDAPreference(const FunctionDecl *Caller, in IdentifyCUDAPreference()
93 const FunctionDecl *Callee) { in IdentifyCUDAPreference()
151 bool Sema::CheckCUDATarget(const FunctionDecl *Caller, in CheckCUDATarget()
152 const FunctionDecl *Callee) { in CheckCUDATarget()
214 static void EraseUnwantedCUDAMatchesImpl(Sema &S, const FunctionDecl *Caller, in EraseUnwantedCUDAMatchesImpl()
240 void Sema::EraseUnwantedCUDAMatches(const FunctionDecl *Caller, in EraseUnwantedCUDAMatches()
241 SmallVectorImpl<FunctionDecl *> &Matches){ in EraseUnwantedCUDAMatches()
242 EraseUnwantedCUDAMatchesImpl<FunctionDecl *>( in EraseUnwantedCUDAMatches()
[all …]
DSema.cpp300 FunctionDecl *fn = dyn_cast<FunctionDecl>(CurContext); in makeUnavailableInSystemHeader()
433 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { in ShouldRemoveFromUnused()
436 const FunctionDecl *DeclToCheck; in ShouldRemoveFromUnused()
487 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) { in getUndefinedButUsed()
545 assert(cast<FunctionDecl>(ND)->getMostRecentDecl()->isInlined() && in checkUndefinedButUsed()
632 if (const FunctionDecl *FD = in IsRecordFullyDefined()
633 dyn_cast<FunctionDecl>((*I)->getFriendDecl())) in IsRecordFullyDefined()
735 !(isa<FunctionDecl>(PrevDecl) || isa<VarDecl>(PrevDecl))) in ActOnEndOfTranslationUnit()
835 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(*I)) { in ActOnEndOfTranslationUnit()
836 const FunctionDecl *DiagD; in ActOnEndOfTranslationUnit()
[all …]
/external/clang/include/clang/AST/
DASTMutationListener.h24 class FunctionDecl; variable
69 const FunctionDecl *D) {} in AddedCXXTemplateSpecialization()
73 virtual void ResolvedExceptionSpec(const FunctionDecl *FD) {} in ResolvedExceptionSpec()
76 virtual void DeducedReturnType(const FunctionDecl *FD, QualType ReturnType);
80 const FunctionDecl *Delete) {} in ResolvedOperatorDelete()
83 virtual void CompletedImplicitDefinition(const FunctionDecl *D) {} in CompletedImplicitDefinition()
89 virtual void FunctionDefinitionInstantiated(const FunctionDecl *D) {} in FunctionDefinitionInstantiated()
DDecl.h1536 class FunctionDecl : public DeclaratorDecl, public DeclContext,
1537 public Redeclarable<FunctionDecl> {
1647 void setInstantiationOfMemberFunction(ASTContext &C, FunctionDecl *FD,
1653 FunctionDecl(Kind DK, ASTContext &C, DeclContext *DC, SourceLocation StartLoc, in FunctionDecl() function
1674 typedef Redeclarable<FunctionDecl> redeclarable_base;
1675 FunctionDecl *getNextRedeclarationImpl() override { in getNextRedeclarationImpl()
1678 FunctionDecl *getPreviousDeclImpl() override { in getPreviousDeclImpl()
1681 FunctionDecl *getMostRecentDeclImpl() override { in getMostRecentDeclImpl()
1695 static FunctionDecl *Create(ASTContext &C, DeclContext *DC,
1704 return FunctionDecl::Create(C, DC, StartLoc, NameInfo, T, TInfo,
[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 …]
DTestClassForwardDecl.m19 // CHECK-scan: [10:1 - 10:15] FunctionDecl=function:10:6 (Definition)
22 // CHECK-scan: [10:24 - 11:1] FunctionDecl=function:10:6 (Definition)
39 // CHECK-load: TestClassForwardDecl.m:10:6: FunctionDecl=function:10:6 (Definition)
DTestClassDecl.m24 // CHECK-scan: [13:1 - 13:15] FunctionDecl=function:13:6 (Definition)
27 // CHECK-scan: [13:24 - 14:1] FunctionDecl=function:13:6 (Definition)
31 // CHECK-load: TestClassDecl.m:13:6: FunctionDecl=function:13:6 (Definition) Extent=[13:1 - 16:2]
Dannotate-comments-objc.m107 // CHECK-DAG: annotate-comments-objc.m:7:6: FunctionDecl=functionBeforeImports:{{.*}} BriefComment=…
108 // CHECK-DAG: DocCommentsA.h:2:6: FunctionDecl=functionFromDocCommentsA1:{{.*}} BriefComment=[Comme…
109 // CHECK-DAG: DocCommentsA.h:7:6: FunctionDecl=functionFromDocCommentsA2:{{.*}} BriefComment=[Comme…
110 // CHECK-DAG: DocCommentsB.h:2:6: FunctionDecl=functionFromDocCommentsB1:{{.*}} BriefComment=[Comme…
111 // CHECK-DAG: DocCommentsB.h:7:6: FunctionDecl=functionFromDocCommentsB2:{{.*}} BriefComment=[Comme…
112 // CHECK-DAG: DocCommentsC.h:2:6: FunctionDecl=functionFromDocCommentsC:{{.*}} BriefComment=[Commen…
/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 …]
DVirtualCallChecker.cpp54 llvm::DenseMap<const FunctionDecl *, Kind> VisitedFunctions;
71 const FunctionDecl *FD = WLUnit->getDirectCallee(); in Enqueue()
90 const FunctionDecl *FD = WLUnit->getDirectCallee(); in Execute()
184 const FunctionDecl *FD = (*(I-1))->getDirectCallee(); in ReportVirtualCall()
/external/clang/lib/AST/
DDecl.cpp303 if (isa<FunctionDecl>(DC) || isa<BlockDecl>(DC)) in getOutermostFuncOrBlockContext()
364 static bool shouldConsiderTemplateVisibility(const FunctionDecl *fn, in shouldConsiderTemplateVisibility()
384 mergeTemplateLV(LinkageInfo &LV, const FunctionDecl *fn, in mergeTemplateLV()
543 const auto *FD = dyn_cast<FunctionDecl>(D); in useInlineVisibilityHidden()
556 const FunctionDecl *Def = nullptr; in useInlineVisibilityHidden()
619 } else if (const FunctionDecl *Function = D->getAsFunction()) { in getLVForNamespaceScopeDecl()
637 const auto *Func = dyn_cast<FunctionDecl>(D); in getLVForNamespaceScopeDecl()
741 } else if (const auto *Function = dyn_cast<FunctionDecl>(D)) { in getLVForNamespaceScopeDecl()
1085 if (const auto *fn = dyn_cast<FunctionDecl>(ND)) { in getExplicitVisibilityAux()
1095 FunctionDecl *InstantiatedFrom = fn->getInstantiatedFromMemberFunction(); in getExplicitVisibilityAux()
[all …]
DMangle.cpp60 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) in isExternC()
78 const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND); in getCallingConvMangling()
163 const FunctionDecl *FD = cast<FunctionDecl>(D); in mangleName()
/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;
124 void FunctionDefinitionInstantiated(const FunctionDecl *D) override;
167 const FunctionTemplateDecl *TD, const FunctionDecl *D) { in AddedCXXTemplateSpecialization()
172 const FunctionDecl *FD) { in ResolvedExceptionSpec()
176 void MultiplexASTMutationListener::DeducedReturnType(const FunctionDecl *FD, in DeducedReturnType()
182 const CXXDestructorDecl *DD, const FunctionDecl *Delete) { in ResolvedOperatorDelete()
[all …]
/external/clang/test/Misc/
Dast-dump-stmt.m6 // CHECK: FunctionDecl{{.*}}TestBlockExpr
13 // CHECK: FunctionDecl{{.*}}TestExprWithCleanup
28 // CHECK: FunctionDecl{{.*}}TestObjCAtCatchStmt
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DCheckerContext.h267 const FunctionDecl *getCalleeDecl(const CallExpr *CE) const;
270 StringRef getCalleeName(const FunctionDecl *FunDecl) const;
274 const FunctionDecl *FunDecl = getCalleeDecl(CE); in getCalleeIdentifier()
283 const FunctionDecl *FunDecl = getCalleeDecl(CE); in getCalleeName()
297 static bool isCLibraryFunction(const FunctionDecl *FD,
/external/clang/lib/StaticAnalyzer/Core/
DCallEvent.cpp122 const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(getDecl()); in isGlobalCFunction()
263 if (const FunctionDecl* FD = dyn_cast<FunctionDecl>(D)) in getDeclaredResultType()
293 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) in isVariadic()
330 const FunctionDecl *D = getDecl(); in parameters()
339 const FunctionDecl *D = cast<FunctionDecl>(CalleeCtx->getDecl()); in getInitialStackFrameContents()
349 const FunctionDecl *D = getDecl(); in argumentsMayEscape()
402 const FunctionDecl *SimpleFunctionCall::getDecl() const { in getDecl()
403 const FunctionDecl *D = getOriginExpr()->getDirectCallee(); in getDecl()
411 const FunctionDecl *CXXInstanceCall::getDecl() const { in getDecl()
416 const FunctionDecl *D = CE->getDirectCallee(); in getDecl()
[all …]
DCheckerContext.cpp22 const FunctionDecl *CheckerContext::getCalleeDecl(const CallExpr *CE) const { in getCalleeDecl()
29 StringRef CheckerContext::getCalleeName(const FunctionDecl *FunDecl) const { in getCalleeName()
39 bool CheckerContext::isCLibraryFunction(const FunctionDecl *FD, in isCLibraryFunction()
/external/clang/include/clang/Analysis/
DCodeInjector.h23 class FunctionDecl; variable
41 virtual Stmt *getBody(const FunctionDecl *D) = 0;
/external/clang/include/clang/Analysis/DomainSpecific/
DCocoaConventions.h21 class FunctionDecl; variable
37 bool followsCreateRule(const FunctionDecl *FD);
/external/clang/lib/StaticAnalyzer/Frontend/
DModelConsumer.cpp36 const FunctionDecl *func = llvm::dyn_cast<FunctionDecl>(*I); in HandleTopLevelDecl()
/external/clang/lib/Analysis/
DBodyFarm.h26 class FunctionDecl; variable
37 Stmt *getBody(const FunctionDecl *D);
/external/clang/examples/PrintFunctionNames/
DPrintFunctionNames.cpp60 bool VisitFunctionDecl(FunctionDecl *FD) { in HandleTranslationUnit()
67 std::set<FunctionDecl*> LateParsedDecls; in HandleTranslationUnit()
71 for (const FunctionDecl *FD : v.LateParsedDecls) { in HandleTranslationUnit()
/external/clang/include/clang/Sema/
DAnalysisBasedWarnings.h23 class FunctionDecl; variable
52 llvm::DenseMap<const FunctionDecl*, VisitFlag> VisitedFD;
/external/lldb/source/Expression/
DASTStructExtractor.cpp60 ASTStructExtractor::ExtractFromFunctionDecl(FunctionDecl *F) in ExtractFromFunctionDecl()
138 FunctionDecl *function_decl = dyn_cast<FunctionDecl>(D); in ExtractFromTopLevelDecl()
/external/clang/lib/ARCMigrate/
DTransGCCalls.cpp48 if (FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(DRE->getDecl())) { in VisitCallExpr()

12345678910