| /netbsd-src/external/apache2/llvm/dist/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 | 98 SwitchStmt, enumerator 288 return PGOHash::SwitchStmt; in DEFINE_NESTABLE_TRAVERSAL() 619 void VisitSwitchStmt(const SwitchStmt *S) { in VisitSwitchStmt()
|
| H A D | CGStmt.cpp | 154 case Stmt::SwitchStmtClass: EmitSwitchStmt(cast<SwitchStmt>(*S)); break; in EmitStmt() 1688 static bool FindCaseStatementsForValue(const SwitchStmt &S, in FindCaseStatementsForValue() 1797 void CodeGenFunction::EmitSwitchStmt(const SwitchStmt &S) { in EmitSwitchStmt()
|
| H A D | CodeGenFunction.cpp | 1420 if (isa<SwitchStmt>(S)) in ContainsLabel() 1440 if (isa<SwitchStmt>(S) || isa<WhileStmt>(S) || isa<DoStmt>(S) || in containsBreak() 1462 if (isa<IfStmt>(S) || isa<SwitchStmt>(S) || isa<WhileStmt>(S) || in mightAddDeclToScope()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/AST/ |
| H A D | Stmt.cpp | 1038 SwitchStmt::SwitchStmt(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, in SwitchStmt() function in SwitchStmt 1059 SwitchStmt::SwitchStmt(EmptyShell Empty, bool HasInit, bool HasVar) in SwitchStmt() function in SwitchStmt 1066 SwitchStmt *SwitchStmt::Create(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, in Create() 1073 alignof(SwitchStmt)); in Create() 1074 return new (Mem) SwitchStmt(Ctx, Init, Var, Cond, LParenLoc, RParenLoc); in Create() 1077 SwitchStmt *SwitchStmt::CreateEmpty(const ASTContext &Ctx, bool HasInit, in CreateEmpty() 1081 alignof(SwitchStmt)); in CreateEmpty() 1082 return new (Mem) SwitchStmt(EmptyShell(), HasInit, HasVar); in CreateEmpty() 1085 VarDecl *SwitchStmt::getConditionVariable() { in getConditionVariable() 1092 void SwitchStmt::setConditionVariable(const ASTContext &Ctx, VarDecl *V) { in setConditionVariable()
|
| H A D | ParentMap.cpp | 207 return DirectChild == cast<SwitchStmt>(P)->getCond(); in isConsumedExpr()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/Extract/ |
| H A D | SourceExtraction.cpp | 43 if(const auto *Switch = dyn_cast<SwitchStmt>(S)) in isSemicolonRequiredAfter()
|
| /netbsd-src/external/apache2/llvm/dist/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() 674 SwitchStmt *SS = cast<SwitchStmt>(Jump); in VerifyJumps()
|
| H A D | SemaStmt.cpp | 1078 auto *SS = SwitchStmt::Create(Context, InitStmt, Cond.get().first, CondExpr, in ActOnStartOfSwitchStmt() 1179 SwitchStmt *SS = cast<SwitchStmt>(Switch); in ActOnFinishSwitchStmt() 1973 void VisitSwitchStmt(const SwitchStmt* S) { in VisitSwitchStmt()
|
| H A D | AnalysisBasedWarnings.cpp | 1106 if (Term && isa<SwitchStmt>(Term)) in checkFallThroughIntoBlock() 1175 bool VisitSwitchStmt(SwitchStmt *S) { in VisitSwitchStmt()
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | CoreEngine.h | 560 const SwitchStmt *getSwitch() const { in getSwitch() 561 return cast<SwitchStmt>(Src->getTerminator()); in getSwitch()
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/Sema/ |
| H A D | ScopeInfo.h | 59 class SwitchStmt; variable 191 using SwitchInfo = llvm::PointerIntPair<SwitchStmt*, 1, bool>;
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/ |
| H A D | Stmt.h | 180 friend class SwitchStmt; variable 2121 class SwitchStmt final : public Stmt, 2122 private llvm::TrailingObjects<SwitchStmt, Stmt *> { 2162 SwitchStmt(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, Expr *Cond, 2166 explicit SwitchStmt(EmptyShell Empty, bool HasInit, bool HasVar); 2170 static SwitchStmt *Create(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, 2176 static SwitchStmt *CreateEmpty(const ASTContext &Ctx, bool HasInit, 2233 return const_cast<SwitchStmt *>(this)->getConditionVariable(); in getConditionVariable()
|
| H A D | TextNodeDumper.h | 241 void VisitSwitchStmt(const SwitchStmt *Node);
|
| H A D | JSONNodeDumper.h | 310 void VisitSwitchStmt(const SwitchStmt *SS);
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/ARCMigrate/ |
| H A D | TransProtectedScope.cpp | 63 bool VisitSwitchStmt(SwitchStmt *S) { in VisitSwitchStmt()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Analysis/ |
| H A D | ProgramPoint.cpp | 151 if (isa<SwitchStmt>(T)) { in printJson()
|
| H A D | CFG.cpp | 605 CFGBlock *VisitSwitchStmt(SwitchStmt *S); 2325 return VisitSwitchStmt(cast<SwitchStmt>(S)); in Visit() 4044 CFGBlock *CFGBuilder::VisitSwitchStmt(SwitchStmt *Terminator) { in VisitSwitchStmt() 5099 if (const SwitchStmt *S = in FilterEdge() 5100 dyn_cast_or_null<SwitchStmt>(From->getTerminatorStmt())) { in FilterEdge() 5167 cast<SwitchStmt>(stmt)->getConditionVariable(); in StmtPrinterHelper() 5278 void VisitSwitchStmt(SwitchStmt *Terminator) { in VisitSwitchStmt() 5995 E = cast<SwitchStmt>(Terminator)->getCond(); in getTerminatorCondition()
|
| H A D | ReachableCode.cpp | 297 if (isa<SwitchStmt>(Term)) in shouldTreatSuccessorsAsReachable()
|
| H A D | UninitializedValues.cpp | 651 if (isa<SwitchStmt>(Term)) { in getUninitUse()
|
| H A D | CalledOnceCheck.cpp | 528 llvm::Optional<Clarification> VisitSwitchStmt(const SwitchStmt *Switch) { in VisitSwitchStmt()
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/Basic/ |
| H A D | StmtNodes.td | 13 def SwitchStmt : StmtNode<Stmt>;
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchers.h | 2239 extern const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchStmt> switchStmt; 5123 AST_POLYMORPHIC_SUPPORTED_TYPES(IfStmt, SwitchStmt, in AST_POLYMORPHIC_MATCHER_P() argument 5140 SwitchStmt, AbstractConditionalOperator), in AST_POLYMORPHIC_MATCHER_P() argument 7160 AST_MATCHER_P(SwitchStmt, forEachSwitchCase, internal::Matcher<SwitchCase>, in AST_MATCHER_P() argument
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/ |
| H A D | CoreEngine.cpp | 389 SwitchNodeBuilder builder(Pred, B, cast<SwitchStmt>(Term)->getCond(), in HandleBlockExit()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/ASTMatchers/ |
| H A D | ASTMatchersInternal.cpp | 892 const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchStmt> switchStmt;
|