/external/clang/lib/AST/ |
D | Decl.cpp | 330 static bool shouldConsiderTemplateVisibility(const FunctionDecl *fn, in shouldConsiderTemplateVisibility() 350 mergeTemplateLV(LinkageInfo &LV, const FunctionDecl *fn, in mergeTemplateLV() 452 const FunctionDecl *FD = dyn_cast<FunctionDecl>(D); in useInlineVisibilityHidden() 465 const FunctionDecl *Def = 0; in useInlineVisibilityHidden() 522 } else if (isa<FunctionDecl>(D) || isa<FunctionTemplateDecl>(D)) { in getLVForNamespaceScopeDecl() 526 const FunctionDecl *Function = 0; in getLVForNamespaceScopeDecl() 531 Function = cast<FunctionDecl>(D); in getLVForNamespaceScopeDecl() 544 const FunctionDecl *Func = dyn_cast<FunctionDecl>(D); in getLVForNamespaceScopeDecl() 639 } else if (const FunctionDecl *Function = dyn_cast<FunctionDecl>(D)) { in getLVForNamespaceScopeDecl() 966 if (const FunctionDecl *fn = dyn_cast<FunctionDecl>(this)) { in getExplicitVisibility() [all …]
|
D | MicrosoftMangle.cpp | 31 static const FunctionDecl *getStructor(const FunctionDecl *fn) { in getStructor() 77 void mangleFunctionEncoding(const FunctionDecl *FD); 100 void mangleLocalName(const FunctionDecl *FD); 115 void mangleType(const FunctionType *T, const FunctionDecl *D, 119 void mangleFunctionClass(const FunctionDecl *FD); 187 const FunctionDecl *FD = dyn_cast<FunctionDecl>(D); in shouldMangleDeclName() 229 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) in mangle() 244 void MicrosoftCXXNameMangler::mangleFunctionEncoding(const FunctionDecl *FD) { in mangleFunctionEncoding() 321 if (isa<FunctionDecl>(DC) && ND->hasLinkage()) in mangleName() 373 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)){ in isTemplate() [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 | c-index-getCursor-test.m | 109 // CHECK: [44:1 - 44:11] FunctionDecl=main:44:5 (Definition) 111 // CHECK: [44:19 - 44:21] FunctionDecl=main:44:5 (Definition) 113 // CHECK: [44:40 - 44:42] FunctionDecl=main:44:5 (Definition) 166 // CHECK: [57:1 - 57:10] FunctionDecl=f:57:6 (Definition)
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | CheckSecuritySyntaxOnly.cpp | 76 bool checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD); 79 const FunctionDecl *); 83 void checkCall_gets(const CallExpr *CE, const FunctionDecl *FD); 84 void checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD); 85 void checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD); 86 void checkCall_mkstemp(const CallExpr *CE, const FunctionDecl *FD); 87 void checkCall_strcpy(const CallExpr *CE, const FunctionDecl *FD); 88 void checkCall_strcat(const CallExpr *CE, const FunctionDecl *FD); 89 void checkCall_rand(const CallExpr *CE, const FunctionDecl *FD); 90 void checkCall_random(const CallExpr *CE, const FunctionDecl *FD); [all …]
|
D | VirtualCallChecker.cpp | 53 llvm::DenseMap<const FunctionDecl *, Kind> VisitedFunctions; 71 const FunctionDecl *FD = WLUnit->getDirectCallee(); in Enqueue() 90 const FunctionDecl *FD = WLUnit->getDirectCallee(); in Execute() 177 const FunctionDecl *FD = (*(I-1))->getDirectCallee(); in ReportVirtualCall()
|
D | NSErrorChecker.cpp | 89 : public Checker< check::ASTDecl<FunctionDecl> > { 95 void checkASTDecl(const FunctionDecl *D, 100 void CFErrorFunctionChecker::checkASTDecl(const FunctionDecl *D, in checkASTDecl() 112 for (FunctionDecl::param_const_iterator in checkASTDecl()
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | CheckerContext.h | 240 const FunctionDecl *getCalleeDecl(const CallExpr *CE) const; 243 StringRef getCalleeName(const FunctionDecl *FunDecl) const; 247 const FunctionDecl *FunDecl = getCalleeDecl(CE); in getCalleeIdentifier() 256 const FunctionDecl *FunDecl = getCalleeDecl(CE); in getCalleeName() 270 static bool isCLibraryFunction(const FunctionDecl *FD,
|
/external/clang/lib/Sema/ |
D | Sema.cpp | 207 FunctionDecl *fn = dyn_cast<FunctionDecl>(CurContext); in makeUnavailableInSystemHeader() 338 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { in ShouldRemoveFromUnused() 341 const FunctionDecl *DeclToCheck; in ShouldRemoveFromUnused() 402 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) { in getUndefinedButUsed() 442 assert(cast<FunctionDecl>(ND)->getMostRecentDecl()->isInlined() && in checkUndefinedButUsed() 530 if (const FunctionDecl *FD = in IsRecordFullyDefined() 531 dyn_cast<FunctionDecl>((*I)->getFriendDecl())) in IsRecordFullyDefined() 568 const FunctionDecl *Definition = 0; in ActOnEndOfTranslationUnit() 719 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(*I)) { in ActOnEndOfTranslationUnit() 720 const FunctionDecl *DiagD; in ActOnEndOfTranslationUnit() [all …]
|
D | TargetAttributesSema.cpp | 144 if (!isa<FunctionDecl>(D)) { in HandleX86ForceAlignArgPointerAttr() 176 FunctionDecl *FD = dyn_cast<FunctionDecl>(D); in HandleDLLImportAttr() 222 FunctionDecl *FD = dyn_cast<FunctionDecl>(D); in HandleDLLExportAttr() 278 if (!isa<FunctionDecl>(D)) { in HandleMips16Attr() 294 if (!isa<FunctionDecl>(D)) { in HandleNoMips16Attr()
|
/external/clang/include/clang/AST/ |
D | ASTMutationListener.h | 24 class FunctionDecl; variable 57 const FunctionDecl *D) {} in AddedCXXTemplateSpecialization() 60 virtual void CompletedImplicitDefinition(const FunctionDecl *D) {} in CompletedImplicitDefinition()
|
D | Decl.h | 1356 class FunctionDecl : public DeclaratorDecl, public DeclContext, 1357 public Redeclarable<FunctionDecl> { 1467 void setInstantiationOfMemberFunction(ASTContext &C, FunctionDecl *FD, 1473 FunctionDecl(Kind DK, DeclContext *DC, SourceLocation StartLoc, in FunctionDecl() function 1493 typedef Redeclarable<FunctionDecl> redeclarable_base; 1494 virtual FunctionDecl *getNextRedeclaration() { return RedeclLink.getNext(); } in getNextRedeclaration() 1495 virtual FunctionDecl *getPreviousDeclImpl() { in getPreviousDeclImpl() 1498 virtual FunctionDecl *getMostRecentDeclImpl() { in getMostRecentDeclImpl() 1509 static FunctionDecl *Create(ASTContext &C, DeclContext *DC, 1519 return FunctionDecl::Create(C, DC, StartLoc, NameInfo, T, TInfo, [all …]
|
D | ASTConsumer.h | 29 class FunctionDecl; variable 78 virtual void HandleCXXImplicitFunctionInstantiation(FunctionDecl *D) {} in HandleCXXImplicitFunctionInstantiation()
|
/external/clang/test/Misc/ |
D | ast-dump-stmt.m | 6 // CHECK: FunctionDecl{{.*}}TestBlockExpr 13 // CHECK: FunctionDecl{{.*}}TestExprWithCleanup 28 // CHECK: FunctionDecl{{.*}}TestObjCAtCatchStmt
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | CallEvent.cpp | 105 const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(getDecl()); in isGlobalCFunction() 276 if (const FunctionDecl* FD = dyn_cast<FunctionDecl>(D)) in getDeclaredResultType() 308 const FunctionDecl *D = getDecl(); in param_begin() 316 const FunctionDecl *D = getDecl(); in param_end() 326 const FunctionDecl *D = cast<FunctionDecl>(CalleeCtx->getDecl()); in getInitialStackFrameContents() 336 const FunctionDecl *D = getDecl(); in argumentsMayEscape() 389 const FunctionDecl *SimpleCall::getDecl() const { in getDecl() 390 const FunctionDecl *D = getOriginExpr()->getDirectCallee(); in getDecl() 398 const FunctionDecl *CXXInstanceCall::getDecl() const { in getDecl() 403 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() 39 bool CheckerContext::isCLibraryFunction(const FunctionDecl *FD, in isCLibraryFunction()
|
/external/clang/include/clang/Analysis/DomainSpecific/ |
D | CocoaConventions.h | 21 class FunctionDecl; variable 37 bool followsCreateRule(const FunctionDecl *FD);
|
/external/clang/lib/Analysis/ |
D | BodyFarm.h | 26 class FunctionDecl; variable 34 Stmt *getBody(const FunctionDecl *D);
|
D | BodyFarm.cpp | 158 typedef Stmt *(*FunctionFarmer)(ASTContext &C, const FunctionDecl *D); 161 static Stmt *create_dispatch_once(ASTContext &C, const FunctionDecl *D) { in create_dispatch_once() 239 static Stmt *create_dispatch_sync(ASTContext &C, const FunctionDecl *D) { in create_dispatch_sync() 265 static Stmt *create_OSAtomicCompareAndSwap(ASTContext &C, const FunctionDecl *D) in create_OSAtomicCompareAndSwap() 344 Stmt *BodyFarm::getBody(const FunctionDecl *D) { in getBody()
|
/external/clang/include/clang/Sema/ |
D | AnalysisBasedWarnings.h | 23 class FunctionDecl; variable 51 llvm::DenseMap<const FunctionDecl*, VisitFlag> VisitedFD;
|
/external/clang/lib/Frontend/ |
D | ASTConsumers.cpp | 152 if (isa<FunctionDecl>(D) || isa<ObjCMethodDecl>(D)) { in HandleTopLevelSingleDecl() 249 const FunctionDecl* FD = cast<FunctionDecl>(DC); in PrintDeclContext() 258 for (FunctionDecl::param_const_iterator I = FD->param_begin(), in PrintDeclContext() 281 for (FunctionDecl::param_const_iterator I = D->param_begin(), in PrintDeclContext() 311 for (FunctionDecl::param_const_iterator I = D->param_begin(), in PrintDeclContext()
|
/external/clang/tools/libclang/ |
D | IndexDecl.cpp | 34 } else if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { in handleDeclarator() 35 for (FunctionDecl::param_const_iterator PI = FD->param_begin(), in handleDeclarator() 63 bool VisitFunctionDecl(const FunctionDecl *D) { in VisitFunctionDecl() 293 FunctionDecl *FD = D->getTemplatedDecl(); in VisitFunctionTemplateDecl()
|
/external/clang/lib/ARCMigrate/ |
D | TransGCCalls.cpp | 54 if (FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(DRE->getDecl())) { in VisitCallExpr()
|