| /llvm-project-15.0.7/clang/lib/ARCMigrate/ |
| H A D | TransProtectedScope.cpp | 42 SwitchCase *SC; 51 CaseInfo(SwitchCase *S, SourceRange Range) in CaseInfo() 64 SwitchCase *Curr = S->getSwitchCaseList(); in VisitSwitchStmt() 88 Stmt *getCaseParent(SwitchCase *S) { in getCaseParent() 90 while (Parent && (isa<SwitchCase>(Parent) || isa<LabelStmt>(Parent))) in getCaseParent()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | VarBypassDetector.cpp | 117 if (const SwitchCase *SC = dyn_cast<SwitchCase>(SubStmt)) in BuildScopeInformation() 144 for (const SwitchCase *SC = SS->getSwitchCaseList(); SC; in Detect()
|
| H A D | CGStmt.cpp | 1654 const SwitchCase *Case, in CollectStatementsForCase() 1663 if (const SwitchCase *SC = dyn_cast<SwitchCase>(S)) { in CollectStatementsForCase() 1812 const SwitchCase *&ResultCase) { in FindCaseStatementsForValue() 1815 const SwitchCase *Case = S.getSwitchCaseList(); in FindCaseStatementsForValue() 1929 const SwitchCase *Case = nullptr; in EmitSwitchStmt() 1984 for (const SwitchCase *Case = S.getSwitchCaseList(); in EmitSwitchStmt()
|
| H A D | CoverageMappingGen.cpp | 751 void createSwitchCaseRegion(const SwitchCase *SC, Counter TrueCnt, in createSwitchCaseRegion() 1326 const SwitchCase *Case = S->getSwitchCaseList(); in VisitSwitchStmt() 1350 void VisitSwitchCase(const SwitchCase *S) { in VisitSwitchCase()
|
| H A D | CodeGenPGO.cpp | 636 void VisitSwitchCase(const SwitchCase *S) { in VisitSwitchCase()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | Stmt.h | 274 friend class SwitchCase; in alignas() local 1554 class SwitchCase : public Stmt { 1564 SwitchCase *NextSwitchCase = nullptr; 1600 : public SwitchCase, 1652 : SwitchCase(CaseStmtClass, Empty) { in CaseStmt() 1755 class DefaultStmt : public SwitchCase { 1764 : SwitchCase(DefaultStmtClass, Empty) {} in DefaultStmt() 1790 SourceLocation SwitchCase::getEndLoc() const { in getEndLoc() 1798 Stmt *SwitchCase::getSubStmt() { in getSubStmt() 2187 SwitchCase *FirstCase = nullptr; [all …]
|
| /llvm-project-15.0.7/clang/include/clang/Serialization/ |
| H A D | ASTWriter.h | 76 class SwitchCase; variable 423 llvm::DenseMap<SwitchCase *, unsigned> SwitchCaseIDs; 678 unsigned RecordSwitchCaseID(SwitchCase *S); 681 unsigned getSwitchCaseID(SwitchCase *S);
|
| H A D | ASTRecordReader.h | 340 void recordSwitchCaseID(SwitchCase *SC, unsigned ID) { in recordSwitchCaseID() 345 SwitchCase *getSwitchCaseWithID(unsigned ID) { in getSwitchCaseWithID()
|
| H A D | ASTReader.h | 100 class SwitchCase; variable 963 using SwitchCaseMapTy = llvm::DenseMap<unsigned, SwitchCase *>; 2303 void RecordSwitchCaseID(SwitchCase *SC, unsigned ID); 2306 SwitchCase *getSwitchCaseWithID(unsigned ID);
|
| /llvm-project-15.0.7/clang/lib/AST/Interp/ |
| H A D | ByteCodeStmtGen.h | 40 using CaseMap = llvm::DenseMap<const SwitchCase *, LabelTy>;
|
| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Extract/ |
| H A D | SourceExtraction.cpp | 45 if(const auto *Case = dyn_cast<SwitchCase>(S)) in isSemicolonRequiredAfter()
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | StmtNodes.td | 23 def SwitchCase : StmtNode<Stmt, 1>; 24 def CaseStmt : StmtNode<SwitchCase>; 25 def DefaultStmt : StmtNode<SwitchCase>;
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/hicpp/ |
| H A D | MultiwayPathsCoveredCheck.cpp | 55 const SwitchCase *CurrentCase = Switch->getSwitchCaseList(); in countCaseLabels()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/ |
| H A D | PopulateSwitch.cpp | 143 for (const SwitchCase *CaseList = Switch->getSwitchCaseList(); CaseList; in REGISTER_TWEAK()
|
| H A D | ExtractVariable.cpp | 376 if (llvm::isa<SwitchCase>(Outer)) in childExprIsStmt()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | BranchCloneCheck.cpp | 190 if (isa<SwitchCase>(S)) in check()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | AnalysisBasedWarnings.cpp | 1075 if (L && isa<SwitchCase>(L) && ReachableBlocks.insert(B).second) in fillReachableBlocks() 1106 const SwitchCase *SW = dyn_cast_or_null<SwitchCase>(P->getLabel()); in checkFallThroughIntoBlock() 1206 if (const SwitchCase *SW = dyn_cast_or_null<SwitchCase>(B.getLabel())) in getLastStmt() 1207 if (!isa<SwitchCase>(SW->getSubStmt())) in getLastStmt() 1275 if (!isa_and_nonnull<SwitchCase>(Label)) in DiagnoseSwitchLabelsFallthrough()
|
| H A D | JumpDiagnostics.cpp | 634 if (SwitchCase *SC = dyn_cast<SwitchCase>(SubStmt)) in BuildScopeInformation() 680 for (SwitchCase *SC = SS->getSwitchCaseList(); SC; in VerifyJumps()
|
| H A D | SemaStmtAttr.cpp | 29 if (isa<SwitchCase>(St)) { in handleFallThroughAttr()
|
| H A D | SemaAvailability.cpp | 597 return cast<SwitchCase>(Parent)->getSubStmt() == S; in isBodyLikeChildStmt()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | XRefs.cpp | 1071 bool VisitSwitchCase(SwitchCase *C) { in VisitSwitchCase() 1097 std::vector<const SwitchCase *> Cases; in findCaseBounds() 1098 for (const SwitchCase *Case = Switch.getSwitchCaseList(); Case; in findCaseBounds() 1101 llvm::sort(Cases, [&](const SwitchCase *L, const SwitchCase *R) { in findCaseBounds() 1106 auto CaseAfter = llvm::partition_point(Cases, [&](const SwitchCase *C) { in findCaseBounds() 1146 } else if (N.ASTNode.get<SwitchCase>()) { in relatedControlFlow()
|
| /llvm-project-15.0.7/clang/lib/Serialization/ |
| H A D | ASTWriterStmt.cpp | 94 void ASTStmtWriter::VisitSwitchCase(SwitchCase *S) { in VisitSwitchCase() 186 for (SwitchCase *SC = S->getSwitchCaseList(); SC; in VisitSwitchStmt() 2659 unsigned ASTWriter::RecordSwitchCaseID(SwitchCase *S) { in RecordSwitchCaseID() 2667 unsigned ASTWriter::getSwitchCaseID(SwitchCase *S) { in getSwitchCaseID()
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | UninitializedValues.cpp | 653 if (!Label || !isa<SwitchCase>(Label)) in getUninitUse()
|
| H A D | CalledOnceCheck.cpp | 536 for (const SwitchCase *Case = Switch->getSwitchCaseList(); Case; in VisitSwitchStmt()
|
| /llvm-project-15.0.7/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchers.h | 2274 extern const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchCase> switchCase; 7581 AST_MATCHER_P(SwitchStmt, forEachSwitchCase, internal::Matcher<SwitchCase>, in AST_MATCHER_P() argument 7589 for (const SwitchCase *SC = Node.getSwitchCaseList(); SC; in AST_MATCHER_P()
|