| /openbsd-src/gnu/llvm/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 | 99 SwitchStmt, enumerator 289 return PGOHash::SwitchStmt; in DEFINE_NESTABLE_TRAVERSAL() 620 void VisitSwitchStmt(const SwitchStmt *S) { in VisitSwitchStmt()
|
| H A D | CGStmt.cpp | 156 case Stmt::SwitchStmtClass: EmitSwitchStmt(cast<SwitchStmt>(*S)); break; in EmitStmt() 1819 static bool FindCaseStatementsForValue(const SwitchStmt &S, in FindCaseStatementsForValue() 1928 void CodeGenFunction::EmitSwitchStmt(const SwitchStmt &S) { in EmitSwitchStmt()
|
| H A D | CodeGenFunction.cpp | 1517 if (isa<SwitchStmt>(S)) in ContainsLabel() 1537 if (isa<SwitchStmt>(S) || isa<WhileStmt>(S) || isa<DoStmt>(S) || in containsBreak() 1559 if (isa<IfStmt>(S) || isa<SwitchStmt>(S) || isa<WhileStmt>(S) || in mightAddDeclToScope()
|
| /openbsd-src/gnu/llvm/clang/lib/AST/ |
| H A D | Stmt.cpp | 1051 SwitchStmt::SwitchStmt(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, in SwitchStmt() function in SwitchStmt 1072 SwitchStmt::SwitchStmt(EmptyShell Empty, bool HasInit, bool HasVar) in SwitchStmt() function in SwitchStmt 1079 SwitchStmt *SwitchStmt::Create(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, in Create() 1086 alignof(SwitchStmt)); in Create() 1087 return new (Mem) SwitchStmt(Ctx, Init, Var, Cond, LParenLoc, RParenLoc); in Create() 1090 SwitchStmt *SwitchStmt::CreateEmpty(const ASTContext &Ctx, bool HasInit, in CreateEmpty() 1094 alignof(SwitchStmt)); in CreateEmpty() 1095 return new (Mem) SwitchStmt(EmptyShell(), HasInit, HasVar); in CreateEmpty() 1098 VarDecl *SwitchStmt::getConditionVariable() { in getConditionVariable() 1105 void SwitchStmt::setConditionVariable(const ASTContext &Ctx, VarDecl *V) { in setConditionVariable()
|
| H A D | ParentMap.cpp | 208 return DirectChild == cast<SwitchStmt>(P)->getCond(); in isConsumedExpr()
|
| /openbsd-src/gnu/llvm/clang/lib/Tooling/Refactoring/Extract/ |
| H A D | SourceExtraction.cpp | 44 if(const auto *Switch = dyn_cast<SwitchStmt>(S)) in isSemicolonRequiredAfter()
|
| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | JumpDiagnostics.cpp | 349 if (Stmt *Init = cast<SwitchStmt>(S)->getInit()) { in BuildScopeInformation() 353 if (VarDecl *Var = cast<SwitchStmt>(S)->getConditionVariable()) { in BuildScopeInformation() 679 SwitchStmt *SS = cast<SwitchStmt>(Jump); in VerifyJumps()
|
| H A D | SemaStmt.cpp | 1115 auto *SS = SwitchStmt::Create(Context, InitStmt, Cond.get().first, CondExpr, in ActOnStartOfSwitchStmt() 1216 SwitchStmt *SS = cast<SwitchStmt>(Switch); in ActOnFinishSwitchStmt() 2011 void VisitSwitchStmt(const SwitchStmt* S) { in VisitSwitchStmt()
|
| H A D | AnalysisBasedWarnings.cpp | 1107 if (Term && isa<SwitchStmt>(Term)) in checkFallThroughIntoBlock() 1174 bool VisitSwitchStmt(SwitchStmt *S) { in VisitSwitchStmt()
|
| /openbsd-src/gnu/llvm/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | CoreEngine.h | 573 const SwitchStmt *getSwitch() const { in getSwitch() 574 return cast<SwitchStmt>(Src->getTerminator()); in getSwitch()
|
| /openbsd-src/gnu/llvm/clang/lib/Analysis/ |
| H A D | ProgramPoint.cpp | 151 if (isa<SwitchStmt>(T)) { in printJson()
|
| H A D | CFG.cpp | 612 CFGBlock *VisitSwitchStmt(SwitchStmt *S); 2395 return VisitSwitchStmt(cast<SwitchStmt>(S)); in Visit() 4323 CFGBlock *CFGBuilder::VisitSwitchStmt(SwitchStmt *Terminator) { in VisitSwitchStmt() 5388 if (const SwitchStmt *S = in FilterEdge() 5389 dyn_cast_or_null<SwitchStmt>(From->getTerminatorStmt())) { in FilterEdge() 5456 cast<SwitchStmt>(stmt)->getConditionVariable(); in StmtPrinterHelper() 5567 void VisitSwitchStmt(SwitchStmt *Terminator) { in VisitSwitchStmt() 6291 E = cast<SwitchStmt>(Terminator)->getCond(); in getTerminatorCondition()
|
| H A D | ReachableCode.cpp | 297 if (isa<SwitchStmt>(Term)) in shouldTreatSuccessorsAsReachable()
|
| H A D | UninitializedValues.cpp | 648 if (isa<SwitchStmt>(Term)) { in getUninitUse()
|
| H A D | CalledOnceCheck.cpp | 528 std::optional<Clarification> VisitSwitchStmt(const SwitchStmt *Switch) { in VisitSwitchStmt()
|
| /openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | ErrnoChecker.cpp | 95 CondFound = (S == cast<SwitchStmt>(ParentS)->getCond()); in isInCondition()
|
| /openbsd-src/gnu/llvm/clang/lib/ARCMigrate/ |
| H A D | TransProtectedScope.cpp | 63 bool VisitSwitchStmt(SwitchStmt *S) { in VisitSwitchStmt()
|
| /openbsd-src/gnu/llvm/clang/include/clang/Sema/ |
| H A D | ScopeInfo.h | 59 class SwitchStmt; variable 196 using SwitchInfo = llvm::PointerIntPair<SwitchStmt*, 1, bool>;
|
| /openbsd-src/gnu/llvm/clang/include/clang/AST/ |
| H A D | Stmt.h | 185 friend class SwitchStmt; variable 2194 class SwitchStmt final : public Stmt, 2195 private llvm::TrailingObjects<SwitchStmt, Stmt *> { 2235 SwitchStmt(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, Expr *Cond, 2239 explicit SwitchStmt(EmptyShell Empty, bool HasInit, bool HasVar); 2243 static SwitchStmt *Create(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, 2249 static SwitchStmt *CreateEmpty(const ASTContext &Ctx, bool HasInit, 2306 return const_cast<SwitchStmt *>(this)->getConditionVariable(); in getConditionVariable()
|
| H A D | TextNodeDumper.h | 244 void VisitSwitchStmt(const SwitchStmt *Node);
|
| H A D | JSONNodeDumper.h | 320 void VisitSwitchStmt(const SwitchStmt *SS);
|
| /openbsd-src/gnu/llvm/clang/include/clang/Basic/ |
| H A D | StmtNodes.td | 13 def SwitchStmt : StmtNode<Stmt>;
|
| /openbsd-src/gnu/llvm/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchers.h | 2265 extern const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchStmt> switchStmt; 5329 AST_POLYMORPHIC_SUPPORTED_TYPES(IfStmt, SwitchStmt, in AST_POLYMORPHIC_MATCHER_P() argument 5346 SwitchStmt, AbstractConditionalOperator), in AST_POLYMORPHIC_MATCHER_P() argument 7578 AST_MATCHER_P(SwitchStmt, forEachSwitchCase, internal::Matcher<SwitchCase>, in AST_MATCHER_P() argument
|
| /openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/ |
| H A D | CoreEngine.cpp | 418 SwitchNodeBuilder builder(Pred, B, cast<SwitchStmt>(Term)->getCond(), in HandleBlockExit()
|