| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | VarBypassDetector.cpp | 71 if (const Stmt *Init = cast<SwitchStmt>(S)->getInit()) { in BuildScopeInformation() 76 if (const VarDecl *Var = cast<SwitchStmt>(S)->getConditionVariable()) { in BuildScopeInformation() 148 } else if (const SwitchStmt *SS = dyn_cast<SwitchStmt>(St)) { in Detect()
|
| H A D | CodeGenPGO.cpp | 103 SwitchStmt, enumerator 505 return PGOHash::SwitchStmt; in DEFINE_NESTABLE_TRAVERSAL() 836 void VisitSwitchStmt(const SwitchStmt *S) { in VisitSwitchStmt()
|
| H A D | CGStmt.cpp | 165 case Stmt::SwitchStmtClass: EmitSwitchStmt(cast<SwitchStmt>(*S)); break; in EmitStmt() 2165 static bool FindCaseStatementsForValue(const SwitchStmt &S, in FindCaseStatementsForValue() 2274 void CodeGenFunction::EmitSwitchStmt(const SwitchStmt &S) { in EmitSwitchStmt()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | Stmt.cpp | 1097 SwitchStmt::SwitchStmt(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, in SwitchStmt() function in SwitchStmt 1118 SwitchStmt::SwitchStmt(EmptyShell Empty, bool HasInit, bool HasVar) in SwitchStmt() function in SwitchStmt 1125 SwitchStmt *SwitchStmt::Create(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, in Create() 1132 alignof(SwitchStmt)); in Create() 1133 return new (Mem) SwitchStmt(Ctx, Init, Var, Cond, LParenLoc, RParenLoc); in Create() 1136 SwitchStmt *SwitchStmt::CreateEmpty(const ASTContext &Ctx, bool HasInit, in CreateEmpty() 1140 alignof(SwitchStmt)); in CreateEmpty() 1141 return new (Mem) SwitchStmt(EmptyShell(), HasInit, HasVar); in CreateEmpty() 1144 VarDecl *SwitchStmt::getConditionVariable() { in getConditionVariable() 1151 void SwitchStmt::setConditionVariable(const ASTContext &Ctx, VarDecl *V) { in setConditionVariable()
|
| H A D | ParentMap.cpp | 217 return DirectChild == cast<SwitchStmt>(P)->getCond(); in isConsumedExpr()
|
| /freebsd/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/contrib/llvm-project/clang/lib/Sema/ |
| H A D | JumpDiagnostics.cpp | 345 if (Stmt *Init = cast<SwitchStmt>(S)->getInit()) { in BuildScopeInformation() 349 if (VarDecl *Var = cast<SwitchStmt>(S)->getConditionVariable()) { in BuildScopeInformation() 724 SwitchStmt *SS = cast<SwitchStmt>(Jump); in VerifyJumps()
|
| /freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | CoreEngine.h | 551 const SwitchStmt *getSwitch() const { in getSwitch() 552 return cast<SwitchStmt>(Src->getTerminator()); in getSwitch()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | ErrnoChecker.cpp | 94 CondFound = (S == cast<SwitchStmt>(ParentS)->getCond()); in isInCondition()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | ScopeInfo.h | 59 class SwitchStmt; variable 205 using SwitchInfo = llvm::PointerIntPair<SwitchStmt*, 1, bool>;
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | Stmt.h | 211 friend class SwitchStmt; 2511 class SwitchStmt final : public Stmt, 2512 private llvm::TrailingObjects<SwitchStmt, Stmt *> { 2552 SwitchStmt(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, Expr *Cond, 2556 explicit SwitchStmt(EmptyShell Empty, bool HasInit, bool HasVar); 2560 static SwitchStmt *Create(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, 2566 static SwitchStmt *CreateEmpty(const ASTContext &Ctx, bool HasInit, 2617 return const_cast<SwitchStmt *>(this)->getConditionVariable();
|
| H A D | TextNodeDumper.h | 259 void VisitSwitchStmt(const SwitchStmt *Node);
|
| H A D | JSONNodeDumper.h | 338 void VisitSwitchStmt(const SwitchStmt *SS);
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | ProgramPoint.cpp | 270 if (isa<SwitchStmt>(T)) { in printJson()
|
| H A D | CFG.cpp | 647 CFGBlock *VisitSwitchStmt(SwitchStmt *S); 2488 return VisitSwitchStmt(cast<SwitchStmt>(S)); in Visit() 4441 CFGBlock *CFGBuilder::VisitSwitchStmt(SwitchStmt *Terminator) { in VisitSwitchStmt() 5503 if (const SwitchStmt *S = in FilterEdge() 5504 dyn_cast_or_null<SwitchStmt>(From->getTerminatorStmt())) { in FilterEdge() 5571 cast<SwitchStmt>(stmt)->getConditionVariable(); in StmtPrinterHelper() 5682 void VisitSwitchStmt(SwitchStmt *Terminator) { in VisitSwitchStmt() 6417 E = cast<SwitchStmt>(Terminator)->getCond(); in getTerminatorCondition()
|
| H A D | ReachableCode.cpp | 298 if (isa<SwitchStmt>(Term)) in shouldTreatSuccessorsAsReachable()
|
| H A D | UninitializedValues.cpp | 638 if (isa<SwitchStmt>(Term)) { in getUninitUse()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | LoopUnrolling.cpp | 237 if (const auto *SS = dyn_cast<SwitchStmt>(S)) { in isPossiblyEscaped()
|
| H A D | CoreEngine.cpp | 452 SwitchNodeBuilder builder(Pred, B, cast<SwitchStmt>(Term)->getCond(), in HandleBlockExit()
|
| /freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/ |
| H A D | CIRGenStmt.cpp | 95 return emitSwitchStmt(cast<SwitchStmt>(*s)); in emitStmt() 861 mlir::LogicalResult CIRGenFunction::emitSwitchStmt(const clang::SwitchStmt &s) { in emitSwitchStmt()
|
| H A D | CIRGenFunction.cpp | 161 if (isa<SwitchStmt>(s)) in containsLabel()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | StmtNodes.td | 13 def SwitchStmt : StmtNode<Stmt>;
|
| /freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchers.h | 2377 extern const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchStmt> switchStmt; 5637 AST_POLYMORPHIC_SUPPORTED_TYPES(IfStmt, SwitchStmt, in AST_POLYMORPHIC_MATCHER_P() argument 5654 SwitchStmt, AbstractConditionalOperator), in AST_POLYMORPHIC_MATCHER_P() argument 7955 AST_MATCHER_P(SwitchStmt, forEachSwitchCase, internal::Matcher<SwitchCase>, in AST_MATCHER_P() argument
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
| H A D | PtrTypesSemantics.cpp | 610 bool VisitSwitchStmt(const SwitchStmt *SS) { return VisitChildren(SS); } in VisitSwitchStmt()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/ |
| H A D | Compiler.h | 229 bool visitSwitchStmt(const SwitchStmt *S);
|