Home
last modified time | relevance | path

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

1234

/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DStmtCXX.h139 CXXForRangeStmt(Stmt *InitStmt, DeclStmt *Range, DeclStmt *Begin,
140 DeclStmt *End, Expr *Cond, Expr *Inc, DeclStmt *LoopVar,
154 DeclStmt *getRangeStmt() { return cast<DeclStmt>(SubExprs[RANGE]); } in getRangeStmt()
155 DeclStmt *getBeginStmt() { in getBeginStmt()
158 DeclStmt *getEndStmt() { return cast_or_null<DeclStmt>(SubExprs[ENDSTMT]); } in getEndStmt()
161 DeclStmt *getLoopVarStmt() { return cast<DeclStmt>(SubExprs[LOOPVAR]); } in getLoopVarStmt()
164 const DeclStmt *getRangeStmt() const { in getRangeStmt()
165 return cast<DeclStmt>(SubExprs[RANGE]); in getRangeStmt()
167 const DeclStmt *getBeginStmt() const { in getBeginStmt()
170 const DeclStmt *getEndStmt() const { in getEndStmt()
[all …]
H A DStmt.h1143 class DeclStmt : public Stmt {
1818 DeclStmt *getConditionVariableDeclStmt() { in getConditionVariableDeclStmt()
1819 return hasVarStorage() ? static_cast<DeclStmt *>( in getConditionVariableDeclStmt()
1824 const DeclStmt *getConditionVariableDeclStmt() const { in getConditionVariableDeclStmt()
1825 return hasVarStorage() ? static_cast<DeclStmt *>( in getConditionVariableDeclStmt()
2003 DeclStmt *getConditionVariableDeclStmt() { in getConditionVariableDeclStmt()
2004 return hasVarStorage() ? static_cast<DeclStmt *>( in getConditionVariableDeclStmt()
2010 return hasVarStorage() ? static_cast<DeclStmt *>( in getConditionVariableDeclStmt()
2152 DeclStmt *getConditionVariableDeclStmt() { in getConditionVariableDeclStmt()
2153 return hasVarStorage() ? static_cast<DeclStmt *>( in getConditionVariableDeclStmt()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DStmtCXX.cpp48 CXXForRangeStmt::CXXForRangeStmt(Stmt *Init, DeclStmt *Range, in CXXForRangeStmt()
49 DeclStmt *BeginStmt, DeclStmt *EndStmt, in CXXForRangeStmt()
50 Expr *Cond, Expr *Inc, DeclStmt *LoopVar, in CXXForRangeStmt()
67 DeclStmt *RangeStmt = getRangeStmt(); in getRangeInit()
78 Decl *LV = cast<DeclStmt>(getLoopVarStmt())->getSingleDecl(); in getLoopVariable()
H A DStmtPrinter.cpp105 if (auto *DS = dyn_cast<DeclStmt>(S)) in PrintInitStmt()
126 void PrintRawDeclStmt(const DeclStmt *S);
190 void StmtPrinter::PrintRawDeclStmt(const DeclStmt *S) { in PrintRawDeclStmt()
199 void StmtPrinter::VisitDeclStmt(DeclStmt *Node) { in VisitDeclStmt()
245 if (const DeclStmt *DS = If->getConditionVariableDeclStmt()) in PrintRawIfStmt()
287 if (const DeclStmt *DS = Node->getConditionVariableDeclStmt()) in VisitSwitchStmt()
297 if (const DeclStmt *DS = Node->getConditionVariableDeclStmt()) in VisitWhileStmt()
340 if (auto *DS = dyn_cast<DeclStmt>(Node->getElement())) in VisitObjCForCollectionStmt()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DCheckerDocumentation.cpp38 check::PostStmt<DeclStmt>,
83 void checkPostStmt(const DeclStmt *DS, CheckerContext &C) const;
330 void CheckerDocumentation::checkPostStmt(const DeclStmt *DS, in checkPostStmt()
H A DVLASizeChecker.cpp31 class VLASizeChecker : public Checker< check::PreStmt<DeclStmt> > {
40 void checkPreStmt(const DeclStmt *DS, CheckerContext &C) const;
81 void VLASizeChecker::checkPreStmt(const DeclStmt *DS, CheckerContext &C) const { in checkPreStmt()
H A DUndefinedAssignmentChecker.cpp88 if (const DeclStmt *DS = dyn_cast<DeclStmt>(StoreE)) { in checkBind()
H A DLLVMConventionsChecker.cpp131 void VisitDeclStmt(DeclStmt *DS);
143 void StringRefCheckerVisitor::VisitDeclStmt(DeclStmt *S) { in VisitDeclStmt()
H A DDeadStoresChecker.cpp316 else if (const DeclStmt *DS = dyn_cast<DeclStmt>(S)) in observeStmt()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Analysis/
H A DConstructionContext.h88 ConstructionContextItem(const DeclStmt *DS) in ConstructionContextItem()
302 const DeclStmt *DS;
305 VariableConstructionContext(ConstructionContext::Kind K, const DeclStmt *DS) in VariableConstructionContext()
312 const DeclStmt *getDeclStmt() const { return DS; } in getDeclStmt()
327 explicit SimpleVariableConstructionContext(const DeclStmt *DS) in SimpleVariableConstructionContext()
353 const DeclStmt *DS, const CXXBindTemporaryExpr *BTE) in CXX17ElidedCopyVariableConstructionContext()
H A DCFG.h1119 void addSyntheticDeclStmt(const DeclStmt *Synthetic, in addSyntheticDeclStmt()
1120 const DeclStmt *Source) { in addSyntheticDeclStmt()
1128 llvm::DenseMap<const DeclStmt *, const DeclStmt *>::const_iterator;
1217 llvm::DenseMap<const DeclStmt *, const DeclStmt *> SyntheticDeclStmts;
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DVarBypassDetector.cpp88 const DeclStmt *DS = cast<DeclStmt>(S); in BuildScopeInformation()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/ExpressionParser/Clang/
H A DASTStructExtractor.cpp69 DeclStmt *curr_decl_stmt = dyn_cast<DeclStmt>(curr_stmt); in ExtractFromFunctionDecl()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Analysis/
H A DLiveVariables.cpp216 void VisitDeclStmt(DeclStmt *DS);
297 const DeclStmt *DS = cast<DeclStmt>(S); in Visit()
423 void TransferFunctions::VisitDeclStmt(DeclStmt *DS) { in VisitDeclStmt()
441 if (DeclStmt *DS = dyn_cast<DeclStmt>(element)) { in VisitObjCForCollectionStmt()
H A DConstructionContext.cpp111 const auto *DS = cast<DeclStmt>(ParentItem.getStmt()); in createBoundTemporaryFromLayers()
174 const auto *DS = cast<DeclStmt>(TopItem.getStmt()); in createFromLayers()
H A DUninitializedValues.cpp349 void VisitDeclStmt(DeclStmt *DS);
431 void ClassifyRefs::VisitDeclStmt(DeclStmt *DS) { in VisitDeclStmt()
533 void VisitDeclStmt(DeclStmt *ds);
704 if (const auto *DS = dyn_cast<DeclStmt>(FS->getElement())) { in VisitObjCForCollectionStmt()
772 void TransferFunctions::VisitDeclStmt(DeclStmt *DS) { in VisitDeclStmt()
H A DCFG.cpp545 CFGBlock *VisitDeclStmt(DeclStmt *DS);
546 CFGBlock *VisitDeclSubExpr(DeclStmt *DS);
739 LocalScope* addLocalScopeForDeclStmt(DeclStmt *DS,
1823 if (DeclStmt *DS = dyn_cast<DeclStmt>(SI)) in addLocalScopeForStmt()
1831 if (DeclStmt *DS = dyn_cast<DeclStmt>(S->stripLabelLikeStatements())) in addLocalScopeForStmt()
2089 return VisitDeclStmt(cast<DeclStmt>(S)); in Visit()
2630 CFGBlock *CFGBuilder::VisitDeclStmt(DeclStmt *DS) { in VisitDeclStmt()
2651 DeclStmt *DSNew = new (Context) DeclStmt(DG, D->getLocation(), GetEndLoc(D)); in VisitDeclStmt()
2663 CFGBlock *CFGBuilder::VisitDeclSubExpr(DeclStmt *DS) { in VisitDeclSubExpr()
2877 LastBlock = addStmt(const_cast<DeclStmt *>(DS)); in VisitIfStmt()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/ARCMigrate/
H A DTransRetainReleaseDealloc.cpp230 if (DeclStmt *DS = dyn_cast<DeclStmt>(S)) { in isPlusOneAssignToVar()
366 auto *DeclS = dyn_cast_or_null<DeclStmt>(*CompStmtChild.begin()); in checkForGCDOrXPC()
H A DTransAutoreleasePool.cpp170 if (DeclStmt *DclS = dyn_cast<DeclStmt>(child)) { in VisitCompoundStmt()
420 DeclStmt *Dcl;
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DLoopUnrolling.cpp175 if (const DeclStmt *DS = dyn_cast<DeclStmt>(S)) { in isPossiblyEscaped()
H A DCheckerHelpers.cpp92 } else if (auto PD = dyn_cast_or_null<DeclStmt>(S)) { in parseAssignment()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DExprEngine.h53 class DeclStmt; variable
314 void processStaticInitializer(const DeclStmt *DS,
449 void VisitDeclStmt(const DeclStmt *DS, ExplodedNode *Pred,
H A DSubEngine.h94 virtual void processStaticInitializer(const DeclStmt *DS,
/freebsd-12.1/contrib/llvm/tools/lldb/include/lldb/Core/
H A DClangForward.h48 class DeclStmt; variable
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaStmt.cpp80 return new (Context) DeclStmt(DG, StartLoc, EndLoc); in ActOnDeclStmt()
361 for (; i != NumElts && isa<DeclStmt>(Elts[i]); ++i) in ActOnCompoundStmt()
365 for (; i != NumElts && !isa<DeclStmt>(Elts[i]); ++i) in ActOnCompoundStmt()
369 Decl *D = *cast<DeclStmt>(Elts[i])->decl_begin(); in ActOnCompoundStmt()
1751 if (DeclStmt *DS = dyn_cast_or_null<DeclStmt>(First)) { in ActOnForStmt()
1897 if (DeclStmt *DS = dyn_cast<DeclStmt>(First)) { in ActOnObjCForCollectionStmt()
2093 DeclStmt *DS = dyn_cast<DeclStmt>(First); in ActOnCXXForRangeStmt()
2356 DeclStmt *RangeDS = cast<DeclStmt>(RangeDecl); in BuildCXXForRangeStmt()
2360 DeclStmt *LoopVarDS = cast<DeclStmt>(LoopVarDecl); in BuildCXXForRangeStmt()
2656 InitStmt, RangeDS, cast_or_null<DeclStmt>(BeginDeclStmt.get()), in BuildCXXForRangeStmt()
[all …]

1234