Home
last modified time | relevance | path

Searched refs:DeclStmt (Results 1 – 25 of 71) sorted by relevance

123

/external/clang/include/clang/AST/
DStmtCXX.h140 CXXForRangeStmt(DeclStmt *Range, DeclStmt *BeginEnd,
141 Expr *Cond, Expr *Inc, DeclStmt *LoopVar, Stmt *Body,
154 DeclStmt *getRangeStmt() { return cast<DeclStmt>(SubExprs[RANGE]); } in getRangeStmt()
155 DeclStmt *getBeginEndStmt() { in getBeginEndStmt()
156 return cast_or_null<DeclStmt>(SubExprs[BEGINEND]); in getBeginEndStmt()
160 DeclStmt *getLoopVarStmt() { return cast<DeclStmt>(SubExprs[LOOPVAR]); } in getLoopVarStmt()
163 const DeclStmt *getRangeStmt() const { in getRangeStmt()
164 return cast<DeclStmt>(SubExprs[RANGE]); in getRangeStmt()
166 const DeclStmt *getBeginEndStmt() const { in getBeginEndStmt()
167 return cast_or_null<DeclStmt>(SubExprs[BEGINEND]); in getBeginEndStmt()
[all …]
DStmt.h431 class DeclStmt : public Stmt {
436 DeclStmt(DeclGroupRef dg, SourceLocation startLoc, in DeclStmt() function
441 explicit DeclStmt(EmptyShell Empty) : Stmt(DeclStmtClass, Empty) { } in DeclStmt() function
897 const DeclStmt *getConditionVariableDeclStmt() const { in getConditionVariableDeclStmt()
898 return reinterpret_cast<DeclStmt*>(SubExprs[VAR]); in getConditionVariableDeclStmt()
968 const DeclStmt *getConditionVariableDeclStmt() const { in getConditionVariableDeclStmt()
969 return reinterpret_cast<DeclStmt*>(SubExprs[VAR]); in getConditionVariableDeclStmt()
1049 const DeclStmt *getConditionVariableDeclStmt() const { in getConditionVariableDeclStmt()
1050 return reinterpret_cast<DeclStmt*>(SubExprs[VAR]); in getConditionVariableDeclStmt()
1160 const DeclStmt *getConditionVariableDeclStmt() const { in getConditionVariableDeclStmt()
[all …]
/external/clang/lib/AST/
DStmtCXX.cpp52 CXXForRangeStmt::CXXForRangeStmt(DeclStmt *Range, DeclStmt *BeginEndStmt, in CXXForRangeStmt()
53 Expr *Cond, Expr *Inc, DeclStmt *LoopVar, in CXXForRangeStmt()
68 DeclStmt *RangeStmt = getRangeStmt(); in getRangeInit()
79 Decl *LV = cast<DeclStmt>(getLoopVarStmt())->getSingleDecl(); in getLoopVariable()
DStmt.cpp773 DeclStmt *DS = cast<DeclStmt>(SubExprs[VAR]); in getConditionVariable()
784 SubExprs[VAR] = new (C) DeclStmt(DeclGroupRef(V), VarRange.getBegin(), in setConditionVariable()
804 DeclStmt *DS = cast<DeclStmt>(SubExprs[CONDVAR]); in getConditionVariable()
815 SubExprs[CONDVAR] = new (C) DeclStmt(DeclGroupRef(V), VarRange.getBegin(), in setConditionVariable()
830 DeclStmt *DS = cast<DeclStmt>(SubExprs[VAR]); in getConditionVariable()
841 SubExprs[VAR] = new (C) DeclStmt(DeclGroupRef(V), VarRange.getBegin(), in setConditionVariable()
864 DeclStmt *DS = cast<DeclStmt>(SubExprs[VAR]); in getConditionVariable()
875 SubExprs[VAR] = new (C) DeclStmt(DeclGroupRef(V), VarRange.getBegin(), in setConditionVariable()
DStmtPrinter.cpp68 void PrintRawDeclStmt(const DeclStmt *S);
128 void StmtPrinter::PrintRawDeclStmt(const DeclStmt *S) { in PrintRawDeclStmt()
137 void StmtPrinter::VisitDeclStmt(DeclStmt *Node) { in VisitDeclStmt()
181 if (const DeclStmt *DS = If->getConditionVariableDeclStmt()) in PrintRawIfStmt()
221 if (const DeclStmt *DS = Node->getConditionVariableDeclStmt()) in VisitSwitchStmt()
240 if (const DeclStmt *DS = Node->getConditionVariableDeclStmt()) in VisitWhileStmt()
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/
DCheckerDocumentation.cpp38 check::PostStmt<DeclStmt>,
82 void checkPostStmt(const DeclStmt *DS, CheckerContext &C) const;
316 void CheckerDocumentation::checkPostStmt(const DeclStmt *DS, in checkPostStmt()
DVLASizeChecker.cpp31 class VLASizeChecker : public Checker< check::PreStmt<DeclStmt> > {
40 void checkPreStmt(const DeclStmt *DS, CheckerContext &C) const;
82 void VLASizeChecker::checkPreStmt(const DeclStmt *DS, CheckerContext &C) const { in checkPreStmt()
DUndefinedAssignmentChecker.cpp78 if (const DeclStmt *DS = dyn_cast<DeclStmt>(StoreE)) { in checkBind()
DLLVMConventionsChecker.cpp132 void VisitDeclStmt(DeclStmt *DS);
144 void StringRefCheckerVisitor::VisitDeclStmt(DeclStmt *S) { in VisitDeclStmt()
/external/clang/test/Index/
Dc-index-getCursor-test.m117 // 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=
Dannotate-literals.m60 // CHECK-LITERALS: Punctuation: ";" [41:27 - 41:28] DeclStmt=
79 // CHECK-LITERALS: Punctuation: ";" [44:26 - 44:27] DeclStmt=
87 // CHECK-LITERALS: Punctuation: ";" [45:16 - 45:17] DeclStmt=
Dannotate-subscripting.m56 // CHECK: Punctuation: ";" [25:27 - 25:28] DeclStmt=
92 // CHECK: Punctuation: ";" [35:59 - 35:60] DeclStmt=
Dc-index-api-loadTU-test.m113 // CHECK: c-index-api-loadTU-test.m:47:2: DeclStmt= Extent=[47:2 - 47:12]
116 // CHECK: c-index-api-loadTU-test.m:48:2: DeclStmt= Extent=[48:2 - 48:19]
122 // CHECK: c-index-api-loadTU-test.m:49:2: DeclStmt= Extent=[49:2 - 49:27]
129 // CHECK: c-index-api-loadTU-test.m:50:2: DeclStmt= Extent=[50:2 - 50:15]
/external/clang/lib/Analysis/
DPseudoConstantAnalysis.cpp172 const DeclStmt *DS = cast<DeclStmt>(Head); in RunAnalysis()
DLiveVariables.cpp209 void VisitDeclStmt(DeclStmt *DS);
290 const DeclStmt *DS = cast<DeclStmt>(S); in Visit()
372 void TransferFunctions::VisitDeclStmt(DeclStmt *DS) { in VisitDeclStmt()
386 if (DeclStmt *DS = dyn_cast<DeclStmt>(element)) { in VisitObjCForCollectionStmt()
DUninitializedValues.cpp327 void VisitDeclStmt(DeclStmt *DS);
408 void ClassifyRefs::VisitDeclStmt(DeclStmt *DS) { in VisitDeclStmt()
514 void VisitDeclStmt(DeclStmt *ds);
685 if (DeclStmt *DS = dyn_cast<DeclStmt>(FS->getElement())) { in VisitObjCForCollectionStmt()
753 void TransferFunctions::VisitDeclStmt(DeclStmt *DS) { in VisitDeclStmt()
DCFG.cpp452 CFGBlock *VisitDeclStmt(DeclStmt *DS);
453 CFGBlock *VisitDeclSubExpr(DeclStmt *DS);
588 LocalScope* addLocalScopeForDeclStmt(DeclStmt *DS,
1318 if (DeclStmt *DS = dyn_cast<DeclStmt>(SI)) in addLocalScopeForStmt()
1326 if (DeclStmt *DS = dyn_cast<DeclStmt>(S->stripLabelLikeStatements())) in addLocalScopeForStmt()
1332 LocalScope* CFGBuilder::addLocalScopeForDeclStmt(DeclStmt *DS, in addLocalScopeForDeclStmt()
1527 return VisitDeclStmt(cast<DeclStmt>(S)); in Visit()
2035 CFGBlock *CFGBuilder::VisitDeclStmt(DeclStmt *DS) { in VisitDeclStmt()
2048 for (DeclStmt::reverse_decl_iterator I = DS->decl_rbegin(), in VisitDeclStmt()
2052 unsigned A = llvm::AlignOf<DeclStmt>::Alignment < 8 in VisitDeclStmt()
[all …]
/external/clang/lib/ARCMigrate/
DTransRetainReleaseDealloc.cpp225 if (DeclStmt *DS = dyn_cast<DeclStmt>(S)) { in isPlusOneAssignToVar()
361 auto *DeclS = dyn_cast_or_null<DeclStmt>(*CompStmtChild.begin()); in checkForGCDOrXPC()
DTransAutoreleasePool.cpp170 if (DeclStmt *DclS = dyn_cast<DeclStmt>(child)) { in VisitCompoundStmt()
420 DeclStmt *Dcl;
/external/clang/lib/StaticAnalyzer/Core/
DExprEngineObjC.cpp78 if (const DeclStmt *DS = dyn_cast<DeclStmt>(elem)) { in VisitObjCForCollectionStmt()
DCheckerHelpers.cpp88 } else if (auto PD = dyn_cast_or_null<DeclStmt>(S)) { in parseAssignment()
/external/clang/include/clang/Analysis/
DCFG.h886 void addSyntheticDeclStmt(const DeclStmt *Synthetic, in addSyntheticDeclStmt()
887 const DeclStmt *Source) { in addSyntheticDeclStmt()
894 typedef llvm::DenseMap<const DeclStmt *, const DeclStmt *>::const_iterator
979 llvm::DenseMap<const DeclStmt *, const DeclStmt *> SyntheticDeclStmts;
/external/clang/docs/
DClangCheck.rst28 (DeclStmt 0x7ff3a302a9f8 <line:2:3, line:3:1>
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h888 DeclStmt> declStmt;
2494 AST_MATCHER_P(DeclStmt, hasSingleDecl, internal::Matcher<Decl>, InnerMatcher) { in AST_MATCHER_P() argument
2655 AST_MATCHER_P(DeclStmt, declCountIs, unsigned, N) { in AST_MATCHER_P() argument
2678 AST_MATCHER_P2(DeclStmt, containsDeclaration, unsigned, N, in AST_MATCHER_P2() argument
2683 DeclStmt::const_decl_iterator Iterator = Node.decl_begin(); in AST_MATCHER_P2()
3077 internal::Matcher<DeclStmt>, InnerMatcher) { in AST_MATCHER_P() argument
3078 const DeclStmt* const DeclarationStatement = in AST_MATCHER_P()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DSubEngine.h87 virtual void processStaticInitializer(const DeclStmt *DS,

123