/external/clang/include/clang/AST/ |
D | StmtCXX.h | 138 CXXForRangeStmt(DeclStmt *Range, DeclStmt *BeginEnd, 139 Expr *Cond, Expr *Inc, DeclStmt *LoopVar, Stmt *Body, 151 DeclStmt *getRangeStmt() { return cast<DeclStmt>(SubExprs[RANGE]); } in getRangeStmt() 152 DeclStmt *getBeginEndStmt() { in getBeginEndStmt() 153 return cast_or_null<DeclStmt>(SubExprs[BEGINEND]); in getBeginEndStmt() 157 DeclStmt *getLoopVarStmt() { return cast<DeclStmt>(SubExprs[LOOPVAR]); } in getLoopVarStmt() 160 const DeclStmt *getRangeStmt() const { in getRangeStmt() 161 return cast<DeclStmt>(SubExprs[RANGE]); in getRangeStmt() 163 const DeclStmt *getBeginEndStmt() const { in getBeginEndStmt() 164 return cast_or_null<DeclStmt>(SubExprs[BEGINEND]); in getBeginEndStmt() [all …]
|
D | Stmt.h | 446 class DeclStmt : public Stmt { 451 DeclStmt(DeclGroupRef dg, SourceLocation startLoc, in DeclStmt() function 456 explicit DeclStmt(EmptyShell Empty) : Stmt(DeclStmtClass, Empty) { } in DeclStmt() function 483 static bool classof(const DeclStmt *) { return true; } in classof() argument 873 const DeclStmt *getConditionVariableDeclStmt() const { in getConditionVariableDeclStmt() 874 return reinterpret_cast<DeclStmt*>(SubExprs[VAR]); in getConditionVariableDeclStmt() 946 const DeclStmt *getConditionVariableDeclStmt() const { in getConditionVariableDeclStmt() 947 return reinterpret_cast<DeclStmt*>(SubExprs[VAR]); in getConditionVariableDeclStmt() 1033 const DeclStmt *getConditionVariableDeclStmt() const { in getConditionVariableDeclStmt() 1034 return reinterpret_cast<DeclStmt*>(SubExprs[VAR]); in getConditionVariableDeclStmt() [all …]
|
/external/clang/lib/AST/ |
D | Stmt.cpp | 810 CXXForRangeStmt::CXXForRangeStmt(DeclStmt *Range, DeclStmt *BeginEndStmt, in CXXForRangeStmt() 811 Expr *Cond, Expr *Inc, DeclStmt *LoopVar, in CXXForRangeStmt() 824 DeclStmt *RangeStmt = getRangeStmt(); in getRangeInit() 835 Decl *LV = cast<DeclStmt>(getLoopVarStmt())->getSingleDecl(); in getLoopVariable() 858 DeclStmt *DS = cast<DeclStmt>(SubExprs[VAR]); in getConditionVariable() 869 SubExprs[VAR] = new (C) DeclStmt(DeclGroupRef(V), VarRange.getBegin(), in setConditionVariable() 889 DeclStmt *DS = cast<DeclStmt>(SubExprs[CONDVAR]); in getConditionVariable() 900 SubExprs[CONDVAR] = new (C) DeclStmt(DeclGroupRef(V), VarRange.getBegin(), in setConditionVariable() 916 DeclStmt *DS = cast<DeclStmt>(SubExprs[VAR]); in getConditionVariable() 927 SubExprs[VAR] = new (C) DeclStmt(DeclGroupRef(V), VarRange.getBegin(), in setConditionVariable() [all …]
|
D | StmtDumper.cpp | 57 if (DeclStmt* DS = dyn_cast<DeclStmt>(S)) in DumpSubTree() 132 void VisitDeclStmt(DeclStmt *Node); 307 void StmtDumper::VisitDeclStmt(DeclStmt *Node) { in VisitDeclStmt() 310 for (DeclStmt::decl_iterator DI = Node->decl_begin(), DE = Node->decl_end(); in VisitDeclStmt()
|
D | StmtPrinter.cpp | 64 void PrintRawDeclStmt(DeclStmt *S); 124 void StmtPrinter::PrintRawDeclStmt(DeclStmt *S) { in PrintRawDeclStmt() 125 DeclStmt::decl_iterator Begin = S->decl_begin(), End = S->decl_end(); in PrintRawDeclStmt() 137 void StmtPrinter::VisitDeclStmt(DeclStmt *Node) { in VisitDeclStmt() 267 if (DeclStmt *DS = dyn_cast<DeclStmt>(Node->getInit())) in VisitForStmt() 295 if (DeclStmt *DS = dyn_cast<DeclStmt>(Node->getElement())) in VisitObjCForCollectionStmt()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | VLASizeChecker.cpp | 30 class VLASizeChecker : public Checker< check::PreStmt<DeclStmt> > { 39 void checkPreStmt(const DeclStmt *DS, CheckerContext &C) const; 77 void VLASizeChecker::checkPreStmt(const DeclStmt *DS, CheckerContext &C) const { in checkPreStmt()
|
D | UndefinedAssignmentChecker.cpp | 70 if (const DeclStmt *DS = dyn_cast<DeclStmt>(StoreE)) { in checkBind()
|
D | CheckerDocumentation.cpp | 36 class CheckerDocumentation : public Checker< check::PreStmt<DeclStmt>, 68 void checkPreStmt(const DeclStmt *DS, CheckerContext &C) const {} in checkPreStmt()
|
D | LLVMConventionsChecker.cpp | 129 void VisitDeclStmt(DeclStmt *DS); 140 void StringRefCheckerVisitor::VisitDeclStmt(DeclStmt *S) { in VisitDeclStmt() 143 for (DeclStmt::decl_iterator I = S->decl_begin(), E = S->decl_end();I!=E; ++I) in VisitDeclStmt()
|
D | DeadStoresChecker.cpp | 306 else if (const DeclStmt *DS = dyn_cast<DeclStmt>(S)) in observeStmt() 309 for (DeclStmt::const_decl_iterator DI=DS->decl_begin(), DE=DS->decl_end(); in observeStmt()
|
D | MallocSizeofChecker.cpp | 102 TypeCallPair VisitDeclStmt(const DeclStmt *S) { in VisitDeclStmt() 103 for (DeclStmt::const_decl_iterator I = S->decl_begin(), E = S->decl_end(); in VisitDeclStmt()
|
D | DereferenceChecker.cpp | 105 } else if (const DeclStmt *DS = dyn_cast<DeclStmt>(S)) { in reportBug()
|
/external/clang/lib/Analysis/ |
D | PseudoConstantAnalysis.cpp | 172 const DeclStmt *DS = cast<DeclStmt>(Head); in RunAnalysis() 174 for (DeclStmt::const_decl_iterator I = DS->decl_begin(), in RunAnalysis()
|
D | UninitializedValues.cpp | 313 void VisitDeclStmt(DeclStmt *DS); 352 void ClassifyRefs::VisitDeclStmt(DeclStmt *DS) { in VisitDeclStmt() 353 for (DeclStmt::decl_iterator DI = DS->decl_begin(), DE = DS->decl_end(); in VisitDeclStmt() 430 void VisitDeclStmt(DeclStmt *ds); 585 if (DeclStmt *DS = dyn_cast<DeclStmt>(FS->getElement())) { in VisitObjCForCollectionStmt() 643 void TransferFunctions::VisitDeclStmt(DeclStmt *DS) { in VisitDeclStmt() 644 for (DeclStmt::decl_iterator DI = DS->decl_begin(), DE = DS->decl_end(); in VisitDeclStmt()
|
D | LiveVariables.cpp | 215 void VisitDeclStmt(DeclStmt *DS); 296 const DeclStmt *DS = cast<DeclStmt>(S); in Visit() 382 void TransferFunctions::VisitDeclStmt(DeclStmt *DS) { in VisitDeclStmt() 383 for (DeclStmt::decl_iterator DI=DS->decl_begin(), DE = DS->decl_end(); in VisitDeclStmt() 397 if (DeclStmt *DS = dyn_cast<DeclStmt>(element)) { in VisitObjCForCollectionStmt()
|
D | CFG.cpp | 334 CFGBlock *VisitDeclStmt(DeclStmt *DS); 335 CFGBlock *VisitDeclSubExpr(DeclStmt *DS); 405 LocalScope* addLocalScopeForDeclStmt(DeclStmt *DS, LocalScope* Scope = NULL); 892 if (DeclStmt *DS = dyn_cast<DeclStmt>(SI)) in addLocalScopeForStmt() 900 if (DeclStmt *DS = dyn_cast<DeclStmt>(S->stripLabelLikeStatements())) in addLocalScopeForStmt() 906 LocalScope* CFGBuilder::addLocalScopeForDeclStmt(DeclStmt *DS, in addLocalScopeForDeclStmt() 911 for (DeclStmt::decl_iterator DI = DS->decl_begin(), DE = DS->decl_end() in addLocalScopeForDeclStmt() 1079 return VisitDeclStmt(cast<DeclStmt>(S)); in Visit() 1556 CFGBlock *CFGBuilder::VisitDeclStmt(DeclStmt *DS) { in VisitDeclStmt() 1569 for (DeclStmt::reverse_decl_iterator I = DS->decl_rbegin(), in VisitDeclStmt() [all …]
|
/external/clang/test/Index/ |
D | c-index-getCursor-test.m | 117 // CHECK: [45:11 - 45:12] DeclStmt= 124 // CHECK: [46:18 - 46:19] DeclStmt= 133 // CHECK: [47:26 - 47:27] DeclStmt= 139 // CHECK: [48:14 - 48:15] DeclStmt=
|
D | annotate-literals.m | 51 // CHECK-LITERALS: Punctuation: ";" [33:27 - 33:28] DeclStmt= 70 // CHECK-LITERALS: Punctuation: ";" [36:26 - 36:27] DeclStmt=
|
D | annotate-subscripting.m | 56 // CHECK: Punctuation: ";" [25:27 - 25:28] DeclStmt= 92 // CHECK: Punctuation: ";" [35:59 - 35:60] DeclStmt=
|
/external/clang/include/clang/Analysis/Visitors/ |
D | CFGRecStmtDeclVisitor.h | 45 void VisitDeclStmt(DeclStmt *DS) { in VisitDeclStmt() 46 for (DeclStmt::decl_iterator DI = DS->decl_begin(), DE = DS->decl_end(); in VisitDeclStmt()
|
/external/clang/include/clang/ASTMatchers/ |
D | ASTMatchers.h | 465 DeclStmt> declStmt; 1528 AST_MATCHER_P(DeclStmt, hasSingleDecl, internal::Matcher<Decl>, InnerMatcher) { in AST_MATCHER_P() argument 1598 AST_MATCHER_P(DeclStmt, declCountIs, unsigned, N) { in AST_MATCHER_P() argument 1621 AST_MATCHER_P2(DeclStmt, containsDeclaration, unsigned, N, in AST_MATCHER_P2() argument 1626 DeclStmt::const_decl_iterator Iterator = Node.decl_begin(); in AST_MATCHER_P2() 1839 internal::Matcher<DeclStmt>, InnerMatcher) { in AST_MATCHER_P() argument 1840 const DeclStmt* const DeclarationStatement = in AST_MATCHER_P()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | ExprEngineObjC.cpp | 78 if (const DeclStmt *DS = dyn_cast<DeclStmt>(elem)) { in VisitObjCForCollectionStmt()
|
/external/clang/lib/Sema/ |
D | SemaStmt.cpp | 64 return Owned(new (Context) DeclStmt(DG, StartLoc, EndLoc)); in ActOnDeclStmt() 271 for (; i != NumElts && isa<DeclStmt>(Elts[i]); ++i) in ActOnCompoundStmt() 275 for (; i != NumElts && !isa<DeclStmt>(Elts[i]); ++i) in ActOnCompoundStmt() 279 Decl *D = *cast<DeclStmt>(Elts[i])->decl_begin(); in ActOnCompoundStmt() 1380 if (DeclStmt *DS = dyn_cast_or_null<DeclStmt>(First)) { in ActOnForStmt() 1384 for (DeclStmt::decl_iterator DI=DS->decl_begin(), DE=DS->decl_end(); in ActOnForStmt() 1522 if (DeclStmt *DS = dyn_cast<DeclStmt>(First)) { in ActOnObjCForCollectionStmt() 1666 DeclStmt *DS = dyn_cast<DeclStmt>(First); in ActOnCXXForRangeStmt() 1812 DeclStmt *RangeDS = cast<DeclStmt>(RangeDecl); in BuildCXXForRangeStmt() 1816 DeclStmt *LoopVarDS = cast<DeclStmt>(LoopVarDecl); in BuildCXXForRangeStmt() [all …]
|
/external/clang/lib/ARCMigrate/ |
D | TransAutoreleasePool.cpp | 170 if (DeclStmt *DclS = dyn_cast<DeclStmt>(child)) { in VisitCompoundStmt() 420 DeclStmt *Dcl;
|
D | TransRetainReleaseDealloc.cpp | 286 DeclStmt *DeclS = dyn_cast_or_null<DeclStmt>(*CompStmtChild); in checkForGCDOrXPC()
|