| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/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 | 1665 const SwitchCase *Case, in CollectStatementsForCase() 1674 if (const SwitchCase *SC = dyn_cast<SwitchCase>(S)) { in CollectStatementsForCase() 1823 const SwitchCase *&ResultCase) { in FindCaseStatementsForValue() 1826 const SwitchCase *Case = S.getSwitchCaseList(); in FindCaseStatementsForValue() 1940 const SwitchCase *Case = nullptr; in EmitSwitchStmt() 1995 for (const SwitchCase *Case = S.getSwitchCaseList(); in EmitSwitchStmt()
|
| H A D | CoverageMappingGen.cpp | 754 void createSwitchCaseRegion(const SwitchCase *SC, Counter TrueCnt, in createSwitchCaseRegion() 1329 const SwitchCase *Case = S->getSwitchCaseList(); in VisitSwitchStmt() 1353 void VisitSwitchCase(const SwitchCase *S) { in VisitSwitchCase()
|
| H A D | CodeGenPGO.cpp | 637 void VisitSwitchCase(const SwitchCase *S) { in VisitSwitchCase()
|
| /openbsd-src/gnu/llvm/clang/include/clang/AST/ |
| H A D | Stmt.h | 276 friend class SwitchCase; variable 1566 class SwitchCase : public Stmt { 1576 SwitchCase *NextSwitchCase = nullptr; 1578 SwitchCase(StmtClass SC, SourceLocation KWLoc, SourceLocation ColonLoc) in SwitchCase() function 1583 SwitchCase(StmtClass SC, EmptyShell) : Stmt(SC) {} in SwitchCase() function 1586 const SwitchCase *getNextSwitchCase() const { return NextSwitchCase; } in getNextSwitchCase() 1587 SwitchCase *getNextSwitchCase() { return NextSwitchCase; } in getNextSwitchCase() 1588 void setNextSwitchCase(SwitchCase *SC) { NextSwitchCase = SC; } in setNextSwitchCase() 1597 return const_cast<SwitchCase *>(this)->getSubStmt(); in getSubStmt() 1612 : public SwitchCase, [all …]
|
| /openbsd-src/gnu/llvm/clang/include/clang/Serialization/ |
| H A D | ASTRecordReader.h | 340 void recordSwitchCaseID(SwitchCase *SC, unsigned ID) { in recordSwitchCaseID() 345 SwitchCase *getSwitchCaseWithID(unsigned ID) { in getSwitchCaseWithID()
|
| H A D | ASTWriter.h | 76 class SwitchCase; variable 423 llvm::DenseMap<SwitchCase *, unsigned> SwitchCaseIDs; 711 unsigned RecordSwitchCaseID(SwitchCase *S); 714 unsigned getSwitchCaseID(SwitchCase *S);
|
| H A D | ASTReader.h | 100 class SwitchCase; variable 981 using SwitchCaseMapTy = llvm::DenseMap<unsigned, SwitchCase *>; 2341 void RecordSwitchCaseID(SwitchCase *SC, unsigned ID); 2344 SwitchCase *getSwitchCaseWithID(unsigned ID);
|
| /openbsd-src/gnu/llvm/clang/lib/AST/Interp/ |
| H A D | ByteCodeStmtGen.h | 39 using CaseMap = llvm::DenseMap<const SwitchCase *, LabelTy>;
|
| /openbsd-src/gnu/llvm/clang/lib/Tooling/Refactoring/Extract/ |
| H A D | SourceExtraction.cpp | 46 if(const auto *Case = dyn_cast<SwitchCase>(S)) in isSemicolonRequiredAfter()
|
| /openbsd-src/gnu/llvm/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>;
|
| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | AnalysisBasedWarnings.cpp | 1079 if (L && isa<SwitchCase>(L) && ReachableBlocks.insert(B).second) in fillReachableBlocks() 1110 const SwitchCase *SW = dyn_cast_or_null<SwitchCase>(P->getLabel()); in checkFallThroughIntoBlock() 1210 if (const SwitchCase *SW = dyn_cast_or_null<SwitchCase>(B.getLabel())) in getLastStmt() 1211 if (!isa<SwitchCase>(SW->getSubStmt())) in getLastStmt() 1279 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 | 30 if (isa<SwitchCase>(St)) { in handleFallThroughAttr()
|
| H A D | SemaAvailability.cpp | 601 return cast<SwitchCase>(Parent)->getSubStmt() == S; in isBodyLikeChildStmt()
|
| /openbsd-src/gnu/llvm/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() 2700 unsigned ASTWriter::RecordSwitchCaseID(SwitchCase *S) { in RecordSwitchCaseID() 2708 unsigned ASTWriter::getSwitchCaseID(SwitchCase *S) { in getSwitchCaseID()
|
| H A D | ASTReaderStmt.cpp | 168 void ASTStmtReader::VisitSwitchCase(SwitchCase *S) { in VisitSwitchCase() 262 SwitchCase *PrevSC = nullptr; in VisitSwitchStmt() 264 SwitchCase *SC = Record.getSwitchCaseWithID(Record.readInt()); in VisitSwitchStmt()
|
| /openbsd-src/gnu/llvm/clang/lib/Analysis/ |
| H A D | UninitializedValues.cpp | 650 if (!Label || !isa<SwitchCase>(Label)) in getUninitUse()
|
| H A D | CalledOnceCheck.cpp | 536 for (const SwitchCase *Case = Switch->getSwitchCaseList(); Case; in VisitSwitchStmt()
|
| /openbsd-src/gnu/llvm/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchers.h | 2275 extern const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchCase> switchCase; 7578 AST_MATCHER_P(SwitchStmt, forEachSwitchCase, internal::Matcher<SwitchCase>, in AST_MATCHER_P() argument 7586 for (const SwitchCase *SC = Node.getSwitchCaseList(); SC; in AST_MATCHER_P()
|
| /openbsd-src/gnu/llvm/clang/lib/ASTMatchers/ |
| H A D | ASTMatchersInternal.cpp | 909 const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchCase> switchCase;
|
| /openbsd-src/gnu/llvm/clang/lib/AST/ |
| H A D | Stmt.cpp | 223 else if (const auto *SC = dyn_cast<SwitchCase>(S)) in stripLabelLikeStatements()
|
| H A D | ExprConstant.cpp | 4940 const SwitchCase *SC = nullptr); 4945 const SwitchCase *Case = nullptr) { in EvaluateLoopBody() 5000 const SwitchCase *Found = nullptr; in EvaluateSwitch() 5001 for (const SwitchCase *SC = SS->getSwitchCaseList(); SC; in EvaluateSwitch() 5060 const Stmt *S, const SwitchCase *Case) { in EvaluateStmt() 5494 return EvaluateStmt(Result, Info, cast<SwitchCase>(S)->getSubStmt(), Case); in EvaluateStmt()
|
| /openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/ |
| H A D | BugReporter.cpp | 3190 if (isa_and_nonnull<SwitchCase, LabelStmt>(P)) in findExecutedLines()
|