Home
last modified time | relevance | path

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

123

/NextBSD/contrib/llvm/tools/clang/include/clang/AST/
HDStmtCXX.h137 CXXForRangeStmt(DeclStmt *Range, DeclStmt *BeginEnd,
138 Expr *Cond, Expr *Inc, DeclStmt *LoopVar, Stmt *Body,
150 DeclStmt *getRangeStmt() { return cast<DeclStmt>(SubExprs[RANGE]); } in getRangeStmt()
151 DeclStmt *getBeginEndStmt() { in getBeginEndStmt()
152 return cast_or_null<DeclStmt>(SubExprs[BEGINEND]); in getBeginEndStmt()
156 DeclStmt *getLoopVarStmt() { return cast<DeclStmt>(SubExprs[LOOPVAR]); } in getLoopVarStmt()
159 const DeclStmt *getRangeStmt() const { in getRangeStmt()
160 return cast<DeclStmt>(SubExprs[RANGE]); in getRangeStmt()
162 const DeclStmt *getBeginEndStmt() const { in getBeginEndStmt()
163 return cast_or_null<DeclStmt>(SubExprs[BEGINEND]); in getBeginEndStmt()
[all …]
HDStmt.h449 class DeclStmt : public Stmt {
454 DeclStmt(DeclGroupRef dg, SourceLocation startLoc, in DeclStmt() function
459 explicit DeclStmt(EmptyShell Empty) : Stmt(DeclStmtClass, Empty) { } in DeclStmt() function
910 const DeclStmt *getConditionVariableDeclStmt() const { in getConditionVariableDeclStmt()
911 return reinterpret_cast<DeclStmt*>(SubExprs[VAR]); in getConditionVariableDeclStmt()
981 const DeclStmt *getConditionVariableDeclStmt() const { in getConditionVariableDeclStmt()
982 return reinterpret_cast<DeclStmt*>(SubExprs[VAR]); in getConditionVariableDeclStmt()
1062 const DeclStmt *getConditionVariableDeclStmt() const { in getConditionVariableDeclStmt()
1063 return reinterpret_cast<DeclStmt*>(SubExprs[VAR]); in getConditionVariableDeclStmt()
1173 const DeclStmt *getConditionVariableDeclStmt() const { in getConditionVariableDeclStmt()
[all …]
/NextBSD/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
HDCheckerDocumentation.cpp38 check::PostStmt<DeclStmt>,
81 void checkPostStmt(const DeclStmt *DS, CheckerContext &C) const;
306 void CheckerDocumentation::checkPostStmt(const DeclStmt *DS, in checkPostStmt()
HDVLASizeChecker.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()
HDUndefinedAssignmentChecker.cpp78 if (const DeclStmt *DS = dyn_cast<DeclStmt>(StoreE)) { in checkBind()
HDDereferenceChecker.cpp116 } else if (const DeclStmt *DS = dyn_cast<DeclStmt>(S)) { in reportBug()
HDLLVMConventionsChecker.cpp132 void VisitDeclStmt(DeclStmt *DS);
144 void StringRefCheckerVisitor::VisitDeclStmt(DeclStmt *S) { in VisitDeclStmt()
HDDeadStoresChecker.cpp313 else if (const DeclStmt *DS = dyn_cast<DeclStmt>(S)) in observeStmt()
/NextBSD/contrib/llvm/tools/clang/lib/Analysis/
HDLiveVariables.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()
HDPseudoConstantAnalysis.cpp172 const DeclStmt *DS = cast<DeclStmt>(Head); in RunAnalysis()
HDUninitializedValues.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()
HDCFG.cpp380 CFGBlock *VisitDeclStmt(DeclStmt *DS);
381 CFGBlock *VisitDeclSubExpr(DeclStmt *DS);
515 LocalScope* addLocalScopeForDeclStmt(DeclStmt *DS,
1272 if (DeclStmt *DS = dyn_cast<DeclStmt>(SI)) in addLocalScopeForStmt()
1280 if (DeclStmt *DS = dyn_cast<DeclStmt>(S->stripLabelLikeStatements())) in addLocalScopeForStmt()
1286 LocalScope* CFGBuilder::addLocalScopeForDeclStmt(DeclStmt *DS, in addLocalScopeForDeclStmt()
1481 return VisitDeclStmt(cast<DeclStmt>(S)); in Visit()
1981 CFGBlock *CFGBuilder::VisitDeclStmt(DeclStmt *DS) { in VisitDeclStmt()
1994 for (DeclStmt::reverse_decl_iterator I = DS->decl_rbegin(), in VisitDeclStmt()
1998 unsigned A = llvm::AlignOf<DeclStmt>::Alignment < 8 in VisitDeclStmt()
[all …]
/NextBSD/contrib/llvm/tools/clang/lib/ARCMigrate/
HDTransRetainReleaseDealloc.cpp235 if (DeclStmt *DS = dyn_cast<DeclStmt>(S)) { in isPlusOneAssignToVar()
371 DeclStmt *DeclS = dyn_cast_or_null<DeclStmt>(*CompStmtChild); in checkForGCDOrXPC()
HDTransAutoreleasePool.cpp170 if (DeclStmt *DclS = dyn_cast<DeclStmt>(child)) { in VisitCompoundStmt()
420 DeclStmt *Dcl;
/NextBSD/contrib/llvm/tools/lldb/source/Expression/
HDASTStructExtractor.cpp80 DeclStmt *curr_decl_stmt = dyn_cast<DeclStmt>(curr_stmt); in ExtractFromFunctionDecl()
/NextBSD/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
HDExprEngineObjC.cpp78 if (const DeclStmt *DS = dyn_cast<DeclStmt>(elem)) { in VisitObjCForCollectionStmt()
HDExprEngineCXX.cpp129 if (const DeclStmt *DS = dyn_cast<DeclStmt>(StmtElem->getStmt())) { in getRegionForConstructedObject()
/NextBSD/contrib/llvm/tools/clang/lib/AST/
HDStmt.cpp850 CXXForRangeStmt::CXXForRangeStmt(DeclStmt *Range, DeclStmt *BeginEndStmt, in CXXForRangeStmt()
851 Expr *Cond, Expr *Inc, DeclStmt *LoopVar, in CXXForRangeStmt()
864 DeclStmt *RangeStmt = getRangeStmt(); in getRangeInit()
875 Decl *LV = cast<DeclStmt>(getLoopVarStmt())->getSingleDecl(); in getLoopVariable()
898 DeclStmt *DS = cast<DeclStmt>(SubExprs[VAR]); in getConditionVariable()
909 SubExprs[VAR] = new (C) DeclStmt(DeclGroupRef(V), VarRange.getBegin(), in setConditionVariable()
929 DeclStmt *DS = cast<DeclStmt>(SubExprs[CONDVAR]); in getConditionVariable()
940 SubExprs[CONDVAR] = new (C) DeclStmt(DeclGroupRef(V), VarRange.getBegin(), in setConditionVariable()
955 DeclStmt *DS = cast<DeclStmt>(SubExprs[VAR]); in getConditionVariable()
966 SubExprs[VAR] = new (C) DeclStmt(DeclGroupRef(V), VarRange.getBegin(), in setConditionVariable()
[all …]
HDStmtPrinter.cpp67 void PrintRawDeclStmt(const DeclStmt *S);
127 void StmtPrinter::PrintRawDeclStmt(const DeclStmt *S) { in PrintRawDeclStmt()
136 void StmtPrinter::VisitDeclStmt(DeclStmt *Node) { in VisitDeclStmt()
180 if (const DeclStmt *DS = If->getConditionVariableDeclStmt()) in PrintRawIfStmt()
220 if (const DeclStmt *DS = Node->getConditionVariableDeclStmt()) in VisitSwitchStmt()
239 if (const DeclStmt *DS = Node->getConditionVariableDeclStmt()) in VisitWhileStmt()
266 if (DeclStmt *DS = dyn_cast<DeclStmt>(Node->getInit())) in VisitForStmt()
294 if (DeclStmt *DS = dyn_cast<DeclStmt>(Node->getElement())) in VisitObjCForCollectionStmt()
/NextBSD/contrib/llvm/tools/clang/include/clang/Analysis/
HDCFG.h887 void addSyntheticDeclStmt(const DeclStmt *Synthetic, in addSyntheticDeclStmt()
888 const DeclStmt *Source) { in addSyntheticDeclStmt()
895 typedef llvm::DenseMap<const DeclStmt *, const DeclStmt *>::const_iterator
980 llvm::DenseMap<const DeclStmt *, const DeclStmt *> SyntheticDeclStmts;
/NextBSD/contrib/llvm/tools/clang/include/clang/ASTMatchers/
HDASTMatchers.h838 DeclStmt> declStmt;
2400 AST_MATCHER_P(DeclStmt, hasSingleDecl, internal::Matcher<Decl>, InnerMatcher) { in AST_MATCHER_P() argument
2498 AST_MATCHER_P(DeclStmt, declCountIs, unsigned, N) { in AST_MATCHER_P() argument
2521 AST_MATCHER_P2(DeclStmt, containsDeclaration, unsigned, N, in AST_MATCHER_P2() argument
2526 DeclStmt::const_decl_iterator Iterator = Node.decl_begin(); in AST_MATCHER_P2()
2850 internal::Matcher<DeclStmt>, InnerMatcher) { in AST_MATCHER_P() argument
2851 const DeclStmt* const DeclarationStatement = in AST_MATCHER_P()
/NextBSD/contrib/llvm/tools/clang/lib/Sema/
HDSemaStmt.cpp78 return new (Context) DeclStmt(DG, StartLoc, EndLoc); in ActOnDeclStmt()
332 for (; i != NumElts && isa<DeclStmt>(Elts[i]); ++i) in ActOnCompoundStmt()
336 for (; i != NumElts && !isa<DeclStmt>(Elts[i]); ++i) in ActOnCompoundStmt()
340 Decl *D = *cast<DeclStmt>(Elts[i])->decl_begin(); in ActOnCompoundStmt()
1611 if (DeclStmt *DS = dyn_cast_or_null<DeclStmt>(First)) { in ActOnForStmt()
1759 if (DeclStmt *DS = dyn_cast<DeclStmt>(First)) { in ActOnObjCForCollectionStmt()
1944 DeclStmt *DS = dyn_cast<DeclStmt>(First); in ActOnCXXForRangeStmt()
2131 DeclStmt *RangeDS = cast<DeclStmt>(RangeDecl); in BuildCXXForRangeStmt()
2135 DeclStmt *LoopVarDS = cast<DeclStmt>(LoopVarDecl); in BuildCXXForRangeStmt()
2363 RangeDS, cast_or_null<DeclStmt>(BeginEndDecl.get()), NotEqExpr.get(), in BuildCXXForRangeStmt()
/NextBSD/contrib/llvm/tools/lldb/include/lldb/Core/
HDClangForward.h54 class DeclStmt; variable
/NextBSD/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
HDSubEngine.h87 virtual void processStaticInitializer(const DeclStmt *DS,
HDExprEngine.h241 void processStaticInitializer(const DeclStmt *DS,
366 void VisitDeclStmt(const DeclStmt *DS, ExplodedNode *Pred,

123