| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | VarBypassDetector.cpp | 70 if (const Stmt *Init = cast<SwitchStmt>(S)->getInit()) { in BuildScopeInformation() 75 if (const VarDecl *Var = cast<SwitchStmt>(S)->getConditionVariable()) { in BuildScopeInformation() 143 } else if (const SwitchStmt *SS = dyn_cast<SwitchStmt>(St)) { in Detect()
|
| H A D | CodeGenPGO.cpp | 101 SwitchStmt, enumerator 416 return PGOHash::SwitchStmt; in DEFINE_NESTABLE_TRAVERSAL() 747 void VisitSwitchStmt(const SwitchStmt *S) { in VisitSwitchStmt()
|
| H A D | CodeGenFunction.cpp | 1541 if (isa<SwitchStmt>(S)) in ContainsLabel() 1561 if (isa<SwitchStmt>(S) || isa<WhileStmt>(S) || isa<DoStmt>(S) || in containsBreak() 1583 if (isa<IfStmt>(S) || isa<SwitchStmt>(S) || isa<WhileStmt>(S) || in mightAddDeclToScope()
|
| H A D | CGStmt.cpp | 158 case Stmt::SwitchStmtClass: EmitSwitchStmt(cast<SwitchStmt>(*S)); break; in EmitStmt() 1837 static bool FindCaseStatementsForValue(const SwitchStmt &S, in FindCaseStatementsForValue() 1946 void CodeGenFunction::EmitSwitchStmt(const SwitchStmt &S) { in EmitSwitchStmt()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/ |
| H A D | Stmt.cpp | 1052 SwitchStmt::SwitchStmt(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, in SwitchStmt() function in SwitchStmt 1073 SwitchStmt::SwitchStmt(EmptyShell Empty, bool HasInit, bool HasVar) in SwitchStmt() function in SwitchStmt 1080 SwitchStmt *SwitchStmt::Create(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, in Create() 1087 alignof(SwitchStmt)); in Create() 1088 return new (Mem) SwitchStmt(Ctx, Init, Var, Cond, LParenLoc, RParenLoc); in Create() 1091 SwitchStmt *SwitchStmt::CreateEmpty(const ASTContext &Ctx, bool HasInit, in CreateEmpty() 1095 alignof(SwitchStmt)); in CreateEmpty() 1096 return new (Mem) SwitchStmt(EmptyShell(), HasInit, HasVar); in CreateEmpty() 1099 VarDecl *SwitchStmt::getConditionVariable() { in getConditionVariable() 1106 void SwitchStmt::setConditionVariable(const ASTContext &Ctx, VarDecl *V) { in setConditionVariable()
|
| H A D | ParentMap.cpp | 208 return DirectChild == cast<SwitchStmt>(P)->getCond(); in isConsumedExpr()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/ |
| H A D | SourceExtraction.cpp | 44 if(const auto *Switch = dyn_cast<SwitchStmt>(S)) in isSemicolonRequiredAfter()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/ |
| H A D | ByteCodeStmtGen.h | 63 bool visitSwitchStmt(const SwitchStmt *S);
|
| H A D | ByteCodeStmtGen.cpp | 268 return visitSwitchStmt(cast<SwitchStmt>(S)); in visitStmt() 580 bool ByteCodeStmtGen<Emitter>::visitSwitchStmt(const SwitchStmt *S) { in visitSwitchStmt()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Sema/ |
| H A D | JumpDiagnostics.cpp | 344 if (Stmt *Init = cast<SwitchStmt>(S)->getInit()) { in BuildScopeInformation() 348 if (VarDecl *Var = cast<SwitchStmt>(S)->getConditionVariable()) { in BuildScopeInformation() 699 SwitchStmt *SS = cast<SwitchStmt>(Jump); in VerifyJumps()
|
| H A D | SemaStmt.cpp | 1123 auto *SS = SwitchStmt::Create(Context, InitStmt, Cond.get().first, CondExpr, in ActOnStartOfSwitchStmt() 1224 SwitchStmt *SS = cast<SwitchStmt>(Switch); in ActOnFinishSwitchStmt() 2021 void VisitSwitchStmt(const SwitchStmt* S) { in VisitSwitchStmt()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | CoreEngine.h | 569 const SwitchStmt *getSwitch() const { in getSwitch() 570 return cast<SwitchStmt>(Src->getTerminator()); in getSwitch()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | ProgramPoint.cpp | 151 if (isa<SwitchStmt>(T)) { in printJson()
|
| H A D | CFG.cpp | 625 CFGBlock *VisitSwitchStmt(SwitchStmt *S); 2402 return VisitSwitchStmt(cast<SwitchStmt>(S)); in Visit() 4332 CFGBlock *CFGBuilder::VisitSwitchStmt(SwitchStmt *Terminator) { in VisitSwitchStmt() 5397 if (const SwitchStmt *S = in FilterEdge() 5398 dyn_cast_or_null<SwitchStmt>(From->getTerminatorStmt())) { in FilterEdge() 5465 cast<SwitchStmt>(stmt)->getConditionVariable(); in StmtPrinterHelper() 5576 void VisitSwitchStmt(SwitchStmt *Terminator) { in VisitSwitchStmt() 6306 E = cast<SwitchStmt>(Terminator)->getCond(); in getTerminatorCondition()
|
| H A D | ReachableCode.cpp | 298 if (isa<SwitchStmt>(Term)) in shouldTreatSuccessorsAsReachable()
|
| H A D | UninitializedValues.cpp | 644 if (isa<SwitchStmt>(Term)) { in getUninitUse()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | ErrnoChecker.cpp | 95 CondFound = (S == cast<SwitchStmt>(ParentS)->getCond()); in isInCondition()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/ARCMigrate/ |
| H A D | TransProtectedScope.cpp | 63 bool VisitSwitchStmt(SwitchStmt *S) { in VisitSwitchStmt()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | ScopeInfo.h | 59 class SwitchStmt; variable 202 using SwitchInfo = llvm::PointerIntPair<SwitchStmt*, 1, bool>;
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | Stmt.h | 209 friend class SwitchStmt; in alignas() local 2385 class SwitchStmt final : public Stmt, 2386 private llvm::TrailingObjects<SwitchStmt, Stmt *> { 2426 SwitchStmt(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, Expr *Cond, 2430 explicit SwitchStmt(EmptyShell Empty, bool HasInit, bool HasVar); 2434 static SwitchStmt *Create(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, 2440 static SwitchStmt *CreateEmpty(const ASTContext &Ctx, bool HasInit, 2497 return const_cast<SwitchStmt *>(this)->getConditionVariable(); in getConditionVariable()
|
| H A D | TextNodeDumper.h | 249 void VisitSwitchStmt(const SwitchStmt *Node);
|
| H A D | JSONNodeDumper.h | 329 void VisitSwitchStmt(const SwitchStmt *SS);
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | StmtNodes.td | 13 def SwitchStmt : StmtNode<Stmt>;
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchers.h | 2327 extern const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchStmt> switchStmt; 5567 AST_POLYMORPHIC_SUPPORTED_TYPES(IfStmt, SwitchStmt, in AST_POLYMORPHIC_MATCHER_P() argument 5584 SwitchStmt, AbstractConditionalOperator), in AST_POLYMORPHIC_MATCHER_P() argument 7854 AST_MATCHER_P(SwitchStmt, forEachSwitchCase, internal::Matcher<SwitchCase>, in AST_MATCHER_P() argument
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | CoreEngine.cpp | 418 SwitchNodeBuilder builder(Pred, B, cast<SwitchStmt>(Term)->getCond(), in HandleBlockExit()
|