/freebsd/contrib/llvm-project/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()
|
/freebsd/contrib/llvm-project/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 | 1862 const SwitchCase *Case, in CollectStatementsForCase() 1871 if (const SwitchCase *SC = dyn_cast<SwitchCase>(S)) { in CollectStatementsForCase() 2020 const SwitchCase *&ResultCase) { in FindCaseStatementsForValue() 2023 const SwitchCase *Case = S.getSwitchCaseList(); in FindCaseStatementsForValue() 2137 const SwitchCase *Case = nullptr; in EmitSwitchStmt() 2192 for (const SwitchCase *Case = S.getSwitchCaseList(); in EmitSwitchStmt()
|
H A D | CoverageMappingGen.cpp | 1156 void createSwitchCaseRegion(const SwitchCase *SC, Counter TrueCnt, in createSwitchCaseRegion() 1870 const SwitchCase *Case = S->getSwitchCaseList(); in VisitSwitchStmt() 1894 void VisitSwitchCase(const SwitchCase *S) { in VisitSwitchCase()
|
H A D | CodeGenPGO.cpp | 853 void VisitSwitchCase(const SwitchCase *S) { in VisitSwitchCase()
|
H A D | CodeGenFunction.cpp | 1616 if (isa<SwitchCase>(S) && !IgnoreCaseStmts) in ContainsLabel()
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | Stmt.h | 313 friend class SwitchCase; 1759 class SwitchCase : public Stmt { 1769 SwitchCase *NextSwitchCase = nullptr; 1771 SwitchCase(StmtClass SC, SourceLocation KWLoc, SourceLocation ColonLoc) 1776 SwitchCase(StmtClass SC, EmptyShell) : Stmt(SC) {} 1779 const SwitchCase *getNextSwitchCase() const { return NextSwitchCase; } 1780 SwitchCase *getNextSwitchCase() { return NextSwitchCase; } 1781 void setNextSwitchCase(SwitchCase *SC) { NextSwitchCase = SC; } 1790 return const_cast<SwitchCase *>(this)->getSubStmt(); 1805 : public SwitchCase, [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Serialization/ |
H A D | ASTRecordReader.h | 350 void recordSwitchCaseID(SwitchCase *SC, unsigned ID) { in recordSwitchCaseID() 355 SwitchCase *getSwitchCaseWithID(unsigned ID) { in getSwitchCaseWithID()
|
H A D | ASTWriter.h | 75 class SwitchCase; variable 468 llvm::DenseMap<SwitchCase *, unsigned> SwitchCaseIDs; 793 unsigned RecordSwitchCaseID(SwitchCase *S); 796 unsigned getSwitchCaseID(SwitchCase *S);
|
H A D | ASTReader.h | 101 class SwitchCase; variable 1006 using SwitchCaseMapTy = llvm::DenseMap<unsigned, SwitchCase *>; 2406 void RecordSwitchCaseID(SwitchCase *SC, unsigned ID); 2409 SwitchCase *getSwitchCaseWithID(unsigned ID);
|
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/ |
H A D | SourceExtraction.cpp | 46 if(const auto *Case = dyn_cast<SwitchCase>(S)) in isSemicolonRequiredAfter()
|
/freebsd/contrib/llvm-project/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>;
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | JumpDiagnostics.cpp | 647 if (SwitchCase *SC = dyn_cast<SwitchCase>(SubStmt)) in BuildScopeInformation() 709 for (SwitchCase *SC = SS->getSwitchCaseList(); SC; in VerifyJumps()
|
H A D | AnalysisBasedWarnings.cpp | 1103 if (isa_and_nonnull<SwitchCase>(L) && ReachableBlocks.insert(B).second) in fillReachableBlocks() 1134 const SwitchCase *SW = dyn_cast_or_null<SwitchCase>(P->getLabel()); in checkFallThroughIntoBlock() 1234 if (const SwitchCase *SW = dyn_cast_or_null<SwitchCase>(B.getLabel())) in getLastStmt() 1235 if (!isa<SwitchCase>(SW->getSubStmt())) in getLastStmt() 1303 if (!isa_and_nonnull<SwitchCase>(Label)) in DiagnoseSwitchLabelsFallthrough()
|
H A D | SemaStmtAttr.cpp | 31 if (isa<SwitchCase>(St)) { in handleFallThroughAttr()
|
H A D | SemaAvailability.cpp | 713 return cast<SwitchCase>(Parent)->getSubStmt() == S; in isBodyLikeChildStmt()
|
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | Compiler.h | 104 using CaseMap = llvm::DenseMap<const SwitchCase *, LabelTy>;
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/ |
H A D | UninitializedValues.cpp | 646 if (!Label || !isa<SwitchCase>(Label)) in getUninitUse()
|
H A D | CalledOnceCheck.cpp | 536 for (const SwitchCase *Case = Switch->getSwitchCaseList(); Case; in VisitSwitchStmt()
|
/freebsd/contrib/llvm-project/clang/lib/Serialization/ |
H A D | ASTWriterStmt.cpp | 157 void ASTStmtWriter::VisitSwitchCase(SwitchCase *S) { in VisitSwitchCase() 251 for (SwitchCase *SC = S->getSwitchCaseList(); SC; in VisitSwitchStmt() 2911 unsigned ASTWriter::RecordSwitchCaseID(SwitchCase *S) { in RecordSwitchCaseID() 2918 unsigned ASTWriter::getSwitchCaseID(SwitchCase *S) { in getSwitchCaseID()
|
H A D | ASTReaderStmt.cpp | 169 void ASTStmtReader::VisitSwitchCase(SwitchCase *S) { in VisitSwitchCase() 265 SwitchCase *PrevSC = nullptr; in VisitSwitchStmt() 267 SwitchCase *SC = Record.getSwitchCaseWithID(Record.readInt()); in VisitSwitchStmt()
|
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/ |
H A D | ASTMatchers.h | 2338 extern const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchCase> switchCase; 7884 AST_MATCHER_P(SwitchStmt, forEachSwitchCase, internal::Matcher<SwitchCase>, in AST_MATCHER_P() argument 7892 for (const SwitchCase *SC = Node.getSwitchCaseList(); SC; in AST_MATCHER_P()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | Stmt.cpp | 224 else if (const auto *SC = dyn_cast<SwitchCase>(S)) in stripLabelLikeStatements()
|
H A D | ExprConstant.cpp | 5054 const SwitchCase *SC = nullptr); 5059 const SwitchCase *Case = nullptr) { in EvaluateLoopBody() 5115 const SwitchCase *Found = nullptr; in EvaluateSwitch() 5116 for (const SwitchCase *SC = SS->getSwitchCaseList(); SC; in EvaluateSwitch() 5175 const Stmt *S, const SwitchCase *Case) { in EvaluateStmt() 5638 return EvaluateStmt(Result, Info, cast<SwitchCase>(S)->getSubStmt(), Case); in EvaluateStmt()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | BugReporter.cpp | 3237 if (isa_and_nonnull<SwitchCase, LabelStmt>(P)) in findExecutedLines()
|