Home
last modified time | relevance | path

Searched refs:WhileStmt (Results 1 – 25 of 45) sorted by relevance

12

/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DLoopWidening.cpp35 return cast<WhileStmt>(LoopStmt)->getCond(); in getLoopCondition()
48 assert(isa<ForStmt>(LoopStmt) || isa<WhileStmt>(LoopStmt) || in getWidenedLoopState()
H A DLoopUnrolling.cpp72 return S && (isa<ForStmt>(S) || isa<WhileStmt>(S) || isa<DoStmt>(S)); in isLoopStmt()
H A DBugReporter.cpp692 if (cast<WhileStmt>(Parent)->getCond() != S) in getEnclosingStmtLocation()
1069 LoopBody = cast<WhileStmt>(Term)->getBody(); in isInLoopBody()
1247 else if (const auto *WS = dyn_cast<WhileStmt>(Loop)) in generatePathDiagnosticsForNode()
1369 return cast<WhileStmt>(S)->getCond() == Cond; in isConditionForTerminator()
1543 if (!(isa<ForStmt>(s1Start) || isa<WhileStmt>(s1Start) || in simplifySimpleBranches()
H A DCoreEngine.cpp398 HandleBranch(cast<WhileStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DStmt.cpp1112 WhileStmt::WhileStmt(const ASTContext &Ctx, VarDecl *Var, Expr *Cond, in WhileStmt() function in WhileStmt
1129 WhileStmt::WhileStmt(EmptyShell Empty, bool HasVar) in WhileStmt() function in WhileStmt
1134 WhileStmt *WhileStmt::Create(const ASTContext &Ctx, VarDecl *Var, Expr *Cond, in Create()
1141 alignof(WhileStmt)); in Create()
1142 return new (Mem) WhileStmt(Ctx, Var, Cond, Body, WL, LParenLoc, RParenLoc); in Create()
1145 WhileStmt *WhileStmt::CreateEmpty(const ASTContext &Ctx, bool HasVar) { in CreateEmpty()
1148 alignof(WhileStmt)); in CreateEmpty()
1149 return new (Mem) WhileStmt(EmptyShell(), HasVar); in CreateEmpty()
1152 VarDecl *WhileStmt::getConditionVariable() { in getConditionVariable()
1159 void WhileStmt::setConditionVariable(const ASTContext &Ctx, VarDecl *V) { in setConditionVariable()
H A DParentMap.cpp199 return DirectChild == cast<WhileStmt>(P)->getCond(); in isConsumedExpr()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DIdenticalExprChecker.cpp406 const WhileStmt *WStmt1 = cast<WhileStmt>(Stmt1); in isIdenticalStmt()
407 const WhileStmt *WStmt2 = cast<WhileStmt>(Stmt2); in isIdenticalStmt()
H A DMallocOverflowSecurityChecker.cpp245 void VisitWhileStmt(WhileStmt *S) { in VisitWhileStmt()
/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp35 if (const auto *While = dyn_cast<WhileStmt>(S)) in isSemicolonRequiredAfter()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenPGO.cpp93 WhileStmt, enumerator
262 DEFINE_NESTABLE_TRAVERSAL(WhileStmt)
278 return PGOHash::WhileStmt; in DEFINE_NESTABLE_TRAVERSAL()
487 void VisitWhileStmt(const WhileStmt *S) { in VisitWhileStmt()
H A DCGStmt.cpp148 case Stmt::WhileStmtClass: EmitWhileStmt(cast<WhileStmt>(*S), Attrs); break; in EmitStmt()
794 void CodeGenFunction::EmitWhileStmt(const WhileStmt &S, in EmitWhileStmt()
H A DCodeGenFunction.cpp1454 if (isa<SwitchStmt>(S) || isa<WhileStmt>(S) || isa<DoStmt>(S) || in containsBreak()
1476 if (isa<IfStmt>(S) || isa<SwitchStmt>(S) || isa<WhileStmt>(S) || in mightAddDeclToScope()
/freebsd-13.1/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransEmptyStatementsAndDealloc.cpp107 bool VisitWhileStmt(WhileStmt *S) { in VisitWhileStmt()
H A DTransforms.cpp269 bool VisitWhileStmt(WhileStmt *S) { in VisitWhileStmt()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DStmt.h201 friend class WhileStmt; in alignas() local
2312 class WhileStmt final : public Stmt,
2313 private llvm::TrailingObjects<WhileStmt, Stmt *> {
2345 WhileStmt(const ASTContext &Ctx, VarDecl *Var, Expr *Cond, Stmt *Body,
2350 explicit WhileStmt(EmptyShell Empty, bool HasVar);
2354 static WhileStmt *Create(const ASTContext &Ctx, VarDecl *Var, Expr *Cond,
2360 static WhileStmt *CreateEmpty(const ASTContext &Ctx, bool HasVar);
2396 return const_cast<WhileStmt *>(this)->getConditionVariable(); in getConditionVariable()
H A DTextNodeDumper.h245 void VisitWhileStmt(const WhileStmt *Node);
H A DJSONNodeDumper.h319 void VisitWhileStmt(const WhileStmt *WS);
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmtAttr.cpp87 if (!isa<DoStmt, ForStmt, CXXForRangeStmt, WhileStmt>(St)) { in handleLoopHintAttr()
H A DSemaAvailability.cpp586 return cast<WhileStmt>(Parent)->getBody() == S; in isBodyLikeChildStmt()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Basic/
H A DStmtNodes.td14 def WhileStmt : StmtNode<Stmt>;
/freebsd-13.1/contrib/llvm-project/clang/lib/Analysis/
H A DLiveVariables.cpp293 AddLiveExpr(val.liveExprs, LV.ESetFact, cast<WhileStmt>(S)->getCond()); in Visit()
H A DCFG.cpp609 CFGBlock *VisitWhileStmt(WhileStmt *W);
2338 return VisitWhileStmt(cast<WhileStmt>(S)); in Visit()
3703 CFGBlock *CFGBuilder::VisitWhileStmt(WhileStmt *W) { in VisitWhileStmt()
5167 cast<WhileStmt>(stmt)->getConditionVariable(); in StmtPrinterHelper()
5273 void VisitWhileStmt(WhileStmt *W) { in VisitWhileStmt()
5982 E = cast<WhileStmt>(Terminator)->getCond(); in getTerminatorCondition()
H A DCalledOnceCheck.cpp550 llvm::Optional<Clarification> VisitWhileStmt(const WhileStmt *While) { in VisitWhileStmt()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h2154 extern const internal::VariadicDynCastAllOfMatcher<Stmt, WhileStmt> whileStmt;
5151 AST_POLYMORPHIC_SUPPORTED_TYPES(IfStmt, ForStmt, WhileStmt, DoStmt, in AST_POLYMORPHIC_MATCHER_P() argument
5296 WhileStmt, in AST_POLYMORPHIC_MATCHER_P() argument
/freebsd-13.1/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp884 const internal::VariadicDynCastAllOfMatcher<Stmt, WhileStmt> whileStmt;

12