| /freebsd-12.1/contrib/llvm/tools/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() 144 } else if (const SwitchStmt *SS = dyn_cast<SwitchStmt>(St)) { in Detect()
|
| H A D | CodeGenPGO.cpp | 97 SwitchStmt, enumerator 270 return PGOHash::SwitchStmt; in DEFINE_NESTABLE_TRAVERSAL() 601 void VisitSwitchStmt(const SwitchStmt *S) { in VisitSwitchStmt()
|
| H A D | CGStmt.cpp | 148 case Stmt::SwitchStmtClass: EmitSwitchStmt(cast<SwitchStmt>(*S)); break; in EmitStmt() 1500 static bool FindCaseStatementsForValue(const SwitchStmt &S, in FindCaseStatementsForValue() 1553 void CodeGenFunction::EmitSwitchStmt(const SwitchStmt &S) { in EmitSwitchStmt()
|
| H A D | CodeGenFunction.cpp | 1434 if (isa<SwitchStmt>(S)) in ContainsLabel() 1454 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()
|
| H A D | CoverageMappingGen.cpp | 1103 void VisitSwitchStmt(const SwitchStmt *S) { in VisitSwitchStmt()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/AST/ |
| H A D | Stmt.cpp | 921 SwitchStmt::SwitchStmt(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, in SwitchStmt() function in SwitchStmt 940 SwitchStmt::SwitchStmt(EmptyShell Empty, bool HasInit, bool HasVar) in SwitchStmt() function in SwitchStmt 947 SwitchStmt *SwitchStmt::Create(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, in Create() 953 alignof(SwitchStmt)); in Create() 954 return new (Mem) SwitchStmt(Ctx, Init, Var, Cond); in Create() 957 SwitchStmt *SwitchStmt::CreateEmpty(const ASTContext &Ctx, bool HasInit, in CreateEmpty() 961 alignof(SwitchStmt)); in CreateEmpty() 962 return new (Mem) SwitchStmt(EmptyShell(), HasInit, HasVar); in CreateEmpty() 965 VarDecl *SwitchStmt::getConditionVariable() { in getConditionVariable() 972 void SwitchStmt::setConditionVariable(const ASTContext &Ctx, VarDecl *V) { in setConditionVariable()
|
| H A D | ParentMap.cpp | 196 return DirectChild == cast<SwitchStmt>(P)->getCond(); in isConsumedExpr()
|
| H A D | TextNodeDumper.cpp | 635 void TextNodeDumper::VisitSwitchStmt(const SwitchStmt *Node) { in VisitSwitchStmt()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/ |
| H A D | JumpDiagnostics.cpp | 326 if (Stmt *Init = cast<SwitchStmt>(S)->getInit()) { in BuildScopeInformation() 330 if (VarDecl *Var = cast<SwitchStmt>(S)->getConditionVariable()) { in BuildScopeInformation() 615 SwitchStmt *SS = cast<SwitchStmt>(Jump); in VerifyJumps()
|
| H A D | SemaStmt.cpp | 727 auto *SS = SwitchStmt::Create(Context, InitStmt, Cond.get().first, CondExpr); in ActOnStartOfSwitchStmt() 827 SwitchStmt *SS = cast<SwitchStmt>(Switch); in ActOnFinishSwitchStmt() 1623 void VisitSwitchStmt(const SwitchStmt* S) { in VisitSwitchStmt()
|
| H A D | AnalysisBasedWarnings.cpp | 1077 if (Term && isa<SwitchStmt>(Term)) in checkFallThroughIntoBlock() 1146 bool VisitSwitchStmt(SwitchStmt *S) { in VisitSwitchStmt()
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | CoreEngine.h | 552 const SwitchStmt *getSwitch() const { in getSwitch() 553 return cast<SwitchStmt>(Src->getTerminator()); in getSwitch()
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/ |
| H A D | Stmt.h | 176 friend class SwitchStmt; in alignas() local 1886 class SwitchStmt final : public Stmt, 1887 private llvm::TrailingObjects<SwitchStmt, Stmt *> { 1925 SwitchStmt(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, Expr *Cond); 1928 explicit SwitchStmt(EmptyShell Empty, bool HasInit, bool HasVar); 1932 static SwitchStmt *Create(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, 1937 static SwitchStmt *CreateEmpty(const ASTContext &Ctx, bool HasInit, 1994 return const_cast<SwitchStmt *>(this)->getConditionVariable(); in getConditionVariable()
|
| H A D | TextNodeDumper.h | 223 void VisitSwitchStmt(const SwitchStmt *Node);
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/Sema/ |
| H A D | ScopeInfo.h | 58 class SwitchStmt; variable 181 using SwitchInfo = llvm::PointerIntPair<SwitchStmt*, 1, bool>;
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/ARCMigrate/ |
| H A D | TransProtectedScope.cpp | 63 bool VisitSwitchStmt(SwitchStmt *S) { in VisitSwitchStmt()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Analysis/ |
| H A D | ProgramPoint.cpp | 155 if (isa<SwitchStmt>(T)) { in print()
|
| H A D | CFG.cpp | 581 CFGBlock *VisitSwitchStmt(SwitchStmt *S); 2182 return VisitSwitchStmt(cast<SwitchStmt>(S)); in Visit() 3813 CFGBlock *CFGBuilder::VisitSwitchStmt(SwitchStmt *Terminator) { in VisitSwitchStmt() 4768 if (const SwitchStmt *S = in FilterEdge() 4769 dyn_cast_or_null<SwitchStmt>(From->getTerminator().getStmt())) { in FilterEdge() 4834 cast<SwitchStmt>(stmt)->getConditionVariable(); in StmtPrinterHelper() 4945 void VisitSwitchStmt(SwitchStmt *Terminator) { in VisitSwitchStmt() 5507 E = cast<SwitchStmt>(Terminator)->getCond(); in getTerminatorCondition()
|
| H A D | ReachableCode.cpp | 296 if (isa<SwitchStmt>(Term)) in shouldTreatSuccessorsAsReachable()
|
| H A D | UninitializedValues.cpp | 670 if (isa<SwitchStmt>(Term)) { in getUninitUse()
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/Basic/ |
| H A D | StmtNodes.td | 17 def SwitchStmt : Stmt;
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/ |
| H A D | CoreEngine.cpp | 371 SwitchNodeBuilder builder(Pred, B, cast<SwitchStmt>(Term)->getCond(), in HandleBlockExit()
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchers.h | 1998 extern const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchStmt> switchStmt; 4091 SwitchStmt, AbstractConditionalOperator), in AST_POLYMORPHIC_MATCHER_P() argument 5946 AST_MATCHER_P(SwitchStmt, forEachSwitchCase, internal::Matcher<SwitchCase>, in AST_MATCHER_P() argument
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/ASTMatchers/ |
| H A D | ASTMatchersInternal.cpp | 706 const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchStmt> switchStmt;
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Serialization/ |
| H A D | ASTReaderStmt.cpp | 241 void ASTStmtReader::VisitSwitchStmt(SwitchStmt *S) { in VisitSwitchStmt() 2393 S = SwitchStmt::CreateEmpty( in ReadStmtFromStream()
|