/external/clang/lib/Sema/ |
D | SemaCUDA.cpp | 29 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 …]
|
D | Sema.cpp | 299 FunctionDecl *fn = dyn_cast<FunctionDecl>(CurContext); in makeUnavailableInSystemHeader() 432 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { in ShouldRemoveFromUnused() 435 const FunctionDecl *DeclToCheck; in ShouldRemoveFromUnused() 485 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) { in getUndefinedButUsed() 527 } else if (auto *FD = dyn_cast<FunctionDecl>(ND)) { in checkUndefinedButUsed() 623 if (const FunctionDecl *FD = in IsRecordFullyDefined() 624 dyn_cast<FunctionDecl>((*I)->getFriendDecl())) in IsRecordFullyDefined() 726 !(isa<FunctionDecl>(PrevDecl) || isa<VarDecl>(PrevDecl))) in ActOnEndOfTranslationUnit() 832 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(*I)) { in ActOnEndOfTranslationUnit() 833 const FunctionDecl *DiagD; in ActOnEndOfTranslationUnit() [all …]
|
/external/clang/test/Index/ |
D | complete-type-factors.m | 38 // 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 …]
|
D | TestClassForwardDecl.m | 19 // 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)
|
D | TestClassDecl.m | 24 // 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]
|
D | annotate-comments-objc.m | 107 // 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/include/clang/AST/ |
D | ASTMutationListener.h | 25 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()
|
D | ASTConsumer.h | 30 class FunctionDecl; variable 60 virtual void HandleInlineFunctionDefinition(FunctionDecl *D) {} in HandleInlineFunctionDefinition() 85 virtual void HandleCXXImplicitFunctionInstantiation(FunctionDecl *D) {} in HandleCXXImplicitFunctionInstantiation()
|
D | Decl.h | 1561 class FunctionDecl : public DeclaratorDecl, public DeclContext, 1562 public Redeclarable<FunctionDecl> { 1672 void setInstantiationOfMemberFunction(ASTContext &C, FunctionDecl *FD, 1678 FunctionDecl(Kind DK, ASTContext &C, DeclContext *DC, SourceLocation StartLoc, in FunctionDecl() function 1699 typedef Redeclarable<FunctionDecl> redeclarable_base; 1700 FunctionDecl *getNextRedeclarationImpl() override { in getNextRedeclarationImpl() 1703 FunctionDecl *getPreviousDeclImpl() override { in getPreviousDeclImpl() 1706 FunctionDecl *getMostRecentDeclImpl() override { in getMostRecentDeclImpl() 1720 static FunctionDecl *Create(ASTContext &C, DeclContext *DC, 1729 return FunctionDecl::Create(C, DC, StartLoc, NameInfo, T, TInfo, [all …]
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | CheckSecuritySyntaxOnly.cpp | 87 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 …]
|
D | VirtualCallChecker.cpp | 54 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/ |
D | Decl.cpp | 304 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 …]
|
D | Mangle.cpp | 60 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/ |
D | MultiplexConsumer.cpp | 115 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 …]
|
/external/clang/lib/Index/ |
D | IndexingContext.cpp | 134 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { in isTemplateImplicitInstantiation() 168 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { in adjustTemplateImplicitInstantiation() 178 if (auto FD = dyn_cast<FunctionDecl>(D)) in isDeclADefinition() 294 !(isa<FunctionDecl>(D) && cast<FunctionDecl>(D)->getBuiltinID())) { in handleDeclOccurrence() 302 (isa<FunctionDecl>(Parent) && in handleDeclOccurrence() 303 cast<FunctionDecl>(Parent)->getBuiltinID()) || in handleDeclOccurrence()
|
/external/clang/test/Misc/ |
D | ast-dump-stmt.m | 6 // CHECK: FunctionDecl{{.*}}TestBlockExpr 13 // CHECK: FunctionDecl{{.*}}TestExprWithCleanup 28 // CHECK: FunctionDecl{{.*}}TestObjCAtCatchStmt
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | CheckerContext.h | 271 const FunctionDecl *getCalleeDecl(const CallExpr *CE) const; 274 StringRef getCalleeName(const FunctionDecl *FunDecl) const; 278 const FunctionDecl *FunDecl = getCalleeDecl(CE); in getCalleeIdentifier() 287 const FunctionDecl *FunDecl = getCalleeDecl(CE); in getCalleeName() 301 static bool isCLibraryFunction(const FunctionDecl *FD,
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | CallEvent.cpp | 122 const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(getDecl()); in isGlobalCFunction() 273 if (const FunctionDecl* FD = dyn_cast<FunctionDecl>(D)) in getDeclaredResultType() 303 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) in isVariadic() 340 const FunctionDecl *D = getDecl(); in parameters() 349 const FunctionDecl *D = cast<FunctionDecl>(CalleeCtx->getDecl()); in getInitialStackFrameContents() 359 const FunctionDecl *D = getDecl(); in argumentsMayEscape() 412 const FunctionDecl *SimpleFunctionCall::getDecl() const { in getDecl() 413 const FunctionDecl *D = getOriginExpr()->getDirectCallee(); in getDecl() 421 const FunctionDecl *CXXInstanceCall::getDecl() const { in getDecl() 426 const FunctionDecl *D = CE->getDirectCallee(); in getDecl() [all …]
|
D | CheckerContext.cpp | 22 const FunctionDecl *CheckerContext::getCalleeDecl(const CallExpr *CE) const { in getCalleeDecl() 29 StringRef CheckerContext::getCalleeName(const FunctionDecl *FunDecl) const { in getCalleeName() 46 bool CheckerContext::isCLibraryFunction(const FunctionDecl *FD, in isCLibraryFunction()
|
/external/clang/include/clang/Analysis/ |
D | CodeInjector.h | 23 class FunctionDecl; variable 41 virtual Stmt *getBody(const FunctionDecl *D) = 0;
|
/external/clang/include/clang/Analysis/DomainSpecific/ |
D | CocoaConventions.h | 21 class FunctionDecl; variable 37 bool followsCreateRule(const FunctionDecl *FD);
|
/external/clang/lib/StaticAnalyzer/Frontend/ |
D | ModelConsumer.cpp | 36 const FunctionDecl *func = llvm::dyn_cast<FunctionDecl>(*I); in HandleTopLevelDecl()
|
/external/bcc/src/cc/frontends/clang/ |
D | b_frontend_action.h | 64 bool VisitFunctionDecl(clang::FunctionDecl *D); 73 void genParamDirectAssign(clang::FunctionDecl *D, std::string& preamble, 75 void genParamIndirectAssign(clang::FunctionDecl *D, std::string& preamble, 77 void rewriteFuncParam(clang::FunctionDecl *D); 174 bool is_rewritable_ext_func(clang::FunctionDecl *D);
|
/external/clang/examples/PrintFunctionNames/ |
D | PrintFunctionNames.cpp | 60 bool VisitFunctionDecl(FunctionDecl *FD) { in HandleTranslationUnit() 67 std::set<FunctionDecl*> LateParsedDecls; in HandleTranslationUnit() 71 for (const FunctionDecl *FD : v.LateParsedDecls) { in HandleTranslationUnit()
|
/external/clang/lib/Analysis/ |
D | BodyFarm.h | 26 class FunctionDecl; variable 37 Stmt *getBody(const FunctionDecl *D);
|