Home
last modified time | relevance | path

Searched refs:SwitchCase (Results 1 – 25 of 31) sorted by relevance

12

/freebsd-12-stable/contrib/llvm-project/clang/lib/ARCMigrate/
DTransProtectedScope.cpp42 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-12-stable/contrib/llvm-project/clang/lib/CodeGen/
DVarBypassDetector.cpp117 if (const SwitchCase *SC = dyn_cast<SwitchCase>(SubStmt)) in BuildScopeInformation()
144 for (const SwitchCase *SC = SS->getSwitchCaseList(); SC; in Detect()
DCGStmt.cpp1572 const SwitchCase *Case, in CollectStatementsForCase()
1581 if (const SwitchCase *SC = dyn_cast<SwitchCase>(S)) { in CollectStatementsForCase()
1730 const SwitchCase *&ResultCase) { in FindCaseStatementsForValue()
1733 const SwitchCase *Case = S.getSwitchCaseList(); in FindCaseStatementsForValue()
1847 const SwitchCase *Case = nullptr; in EmitSwitchStmt()
1902 for (const SwitchCase *Case = S.getSwitchCaseList(); in EmitSwitchStmt()
DCoverageMappingGen.cpp742 void createSwitchCaseRegion(const SwitchCase *SC, Counter TrueCnt, in createSwitchCaseRegion()
1319 const SwitchCase *Case = S->getSwitchCaseList(); in VisitSwitchStmt()
1338 void VisitSwitchCase(const SwitchCase *S) { in VisitSwitchCase()
DCodeGenPGO.cpp636 void VisitSwitchCase(const SwitchCase *S) { in VisitSwitchCase()
DCodeGenFunction.cpp1430 if (isa<SwitchCase>(S) && !IgnoreCaseStmts) in ContainsLabel()
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/AST/
DStmt.h271 friend class SwitchCase; in alignas() local
1521 class SwitchCase : public Stmt {
1531 SwitchCase *NextSwitchCase = nullptr;
1533 SwitchCase(StmtClass SC, SourceLocation KWLoc, SourceLocation ColonLoc) in SwitchCase() function
1538 SwitchCase(StmtClass SC, EmptyShell) : Stmt(SC) {} in SwitchCase() function
1541 const SwitchCase *getNextSwitchCase() const { return NextSwitchCase; } in getNextSwitchCase()
1542 SwitchCase *getNextSwitchCase() { return NextSwitchCase; } in getNextSwitchCase()
1543 void setNextSwitchCase(SwitchCase *SC) { NextSwitchCase = SC; } in setNextSwitchCase()
1552 return const_cast<SwitchCase *>(this)->getSubStmt(); in getSubStmt()
1567 : public SwitchCase,
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Serialization/
DASTWriter.h88 class SwitchCase; variable
435 llvm::DenseMap<SwitchCase *, unsigned> SwitchCaseIDs;
685 unsigned RecordSwitchCaseID(SwitchCase *S);
688 unsigned getSwitchCaseID(SwitchCase *S);
DASTRecordReader.h334 void recordSwitchCaseID(SwitchCase *SC, unsigned ID) { in recordSwitchCaseID()
339 SwitchCase *getSwitchCaseWithID(unsigned ID) { in getSwitchCaseWithID()
DASTReader.h101 class SwitchCase; variable
962 using SwitchCaseMapTy = llvm::DenseMap<unsigned, SwitchCase *>;
2283 void RecordSwitchCaseID(SwitchCase *SC, unsigned ID);
2286 SwitchCase *getSwitchCaseWithID(unsigned ID);
/freebsd-12-stable/contrib/llvm-project/clang/lib/AST/Interp/
DByteCodeStmtGen.h44 using CaseMap = llvm::DenseMap<const SwitchCase *, LabelTy>;
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Basic/
DStmtNodes.td23 def SwitchCase : StmtNode<Stmt, 1>;
24 def CaseStmt : StmtNode<SwitchCase>;
25 def DefaultStmt : StmtNode<SwitchCase>;
/freebsd-12-stable/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
DSourceExtraction.cpp45 if(const auto *Case = dyn_cast<SwitchCase>(S)) in isSemicolonRequiredAfter()
/freebsd-12-stable/contrib/llvm-project/clang/lib/Sema/
DAnalysisBasedWarnings.cpp1076 if (L && isa<SwitchCase>(L) && ReachableBlocks.insert(B).second) in fillReachableBlocks()
1109 const SwitchCase *SW = dyn_cast_or_null<SwitchCase>(P->getLabel()); in checkFallThroughIntoBlock()
1214 if (const SwitchCase *SW = dyn_cast_or_null<SwitchCase>(B.getLabel())) in getLastStmt()
1215 if (!isa<SwitchCase>(SW->getSubStmt())) in getLastStmt()
1283 if (!Label || !isa<SwitchCase>(Label)) in DiagnoseSwitchLabelsFallthrough()
DJumpDiagnostics.cpp629 if (SwitchCase *SC = dyn_cast<SwitchCase>(SubStmt)) in BuildScopeInformation()
675 for (SwitchCase *SC = SS->getSwitchCaseList(); SC; in VerifyJumps()
DSemaStmtAttr.cpp29 if (isa<SwitchCase>(St)) { in handleFallThroughAttr()
DSemaAvailability.cpp597 return cast<SwitchCase>(Parent)->getSubStmt() == S; in isBodyLikeChildStmt()
/freebsd-12-stable/contrib/llvm-project/clang/lib/Serialization/
DASTWriterStmt.cpp91 void ASTStmtWriter::VisitSwitchCase(SwitchCase *S) { in VisitSwitchCase()
184 for (SwitchCase *SC = S->getSwitchCaseList(); SC; in VisitSwitchStmt()
2584 unsigned ASTWriter::RecordSwitchCaseID(SwitchCase *S) { in RecordSwitchCaseID()
2592 unsigned ASTWriter::getSwitchCaseID(SwitchCase *S) { in getSwitchCaseID()
DASTReaderStmt.cpp163 void ASTStmtReader::VisitSwitchCase(SwitchCase *S) { in VisitSwitchCase()
257 SwitchCase *PrevSC = nullptr; in VisitSwitchStmt()
259 SwitchCase *SC = Record.getSwitchCaseWithID(Record.readInt()); in VisitSwitchStmt()
/freebsd-12-stable/contrib/llvm-project/clang/lib/Analysis/
DUninitializedValues.cpp653 if (!Label || !isa<SwitchCase>(Label)) in getUninitUse()
DCalledOnceCheck.cpp536 for (const SwitchCase *Case = Switch->getSwitchCaseList(); Case; in VisitSwitchStmt()
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/ASTMatchers/
DASTMatchers.h2261 extern const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchCase> switchCase;
7172 AST_MATCHER_P(SwitchStmt, forEachSwitchCase, internal::Matcher<SwitchCase>, in AST_MATCHER_P() argument
7180 for (const SwitchCase *SC = Node.getSwitchCaseList(); SC; in AST_MATCHER_P()
/freebsd-12-stable/contrib/llvm-project/clang/lib/ASTMatchers/
DASTMatchersInternal.cpp894 const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchCase> switchCase;
/freebsd-12-stable/contrib/llvm-project/clang/lib/AST/
DStmt.cpp222 else if (const auto *SC = dyn_cast<SwitchCase>(S)) in stripLabelLikeStatements()
DExprConstant.cpp4888 const SwitchCase *SC = nullptr);
4893 const SwitchCase *Case = nullptr) { in EvaluateLoopBody()
4943 const SwitchCase *Found = nullptr; in EvaluateSwitch()
4944 for (const SwitchCase *SC = SS->getSwitchCaseList(); SC; in EvaluateSwitch()
4989 const Stmt *S, const SwitchCase *Case) { in EvaluateStmt()
5406 return EvaluateStmt(Result, Info, cast<SwitchCase>(S)->getSubStmt(), Case); in EvaluateStmt()

12