Home
last modified time | relevance | path

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

12

/netbsd-src/external/apache2/llvm/dist/clang/lib/ARCMigrate/
H A 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()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DVarBypassDetector.cpp117 if (const SwitchCase *SC = dyn_cast<SwitchCase>(SubStmt)) in BuildScopeInformation()
144 for (const SwitchCase *SC = SS->getSwitchCaseList(); SC; in Detect()
H A DCGStmt.cpp1534 const SwitchCase *Case, in CollectStatementsForCase()
1543 if (const SwitchCase *SC = dyn_cast<SwitchCase>(S)) { in CollectStatementsForCase()
1692 const SwitchCase *&ResultCase) { in FindCaseStatementsForValue()
1695 const SwitchCase *Case = S.getSwitchCaseList(); in FindCaseStatementsForValue()
1809 const SwitchCase *Case = nullptr; in EmitSwitchStmt()
1864 for (const SwitchCase *Case = S.getSwitchCaseList(); in EmitSwitchStmt()
H A 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()
H A DCodeGenPGO.cpp636 void VisitSwitchCase(const SwitchCase *S) { in VisitSwitchCase()
H A DCodeGenFunction.cpp1416 if (isa<SwitchCase>(S) && !IgnoreCaseStmts) in ContainsLabel()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DStmt.h271 friend class SwitchCase; variable
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 …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Serialization/
H A DASTWriter.h88 class SwitchCase; variable
435 llvm::DenseMap<SwitchCase *, unsigned> SwitchCaseIDs;
685 unsigned RecordSwitchCaseID(SwitchCase *S);
688 unsigned getSwitchCaseID(SwitchCase *S);
H A DASTRecordReader.h334 void recordSwitchCaseID(SwitchCase *SC, unsigned ID) { in recordSwitchCaseID()
339 SwitchCase *getSwitchCaseWithID(unsigned ID) { in getSwitchCaseWithID()
H A DASTReader.h101 class SwitchCase; variable
962 using SwitchCaseMapTy = llvm::DenseMap<unsigned, SwitchCase *>;
2276 void RecordSwitchCaseID(SwitchCase *SC, unsigned ID);
2279 SwitchCase *getSwitchCaseWithID(unsigned ID);
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Basic/
H A DStmtNodes.td23 def SwitchCase : StmtNode<Stmt, 1>;
24 def CaseStmt : StmtNode<SwitchCase>;
25 def DefaultStmt : StmtNode<SwitchCase>;
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/Interp/
H A DByteCodeStmtGen.h44 using CaseMap = llvm::DenseMap<const SwitchCase *, LabelTy>;
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp45 if(const auto *Case = dyn_cast<SwitchCase>(S)) in isSemicolonRequiredAfter()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A 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()
H A DJumpDiagnostics.cpp629 if (SwitchCase *SC = dyn_cast<SwitchCase>(SubStmt)) in BuildScopeInformation()
675 for (SwitchCase *SC = SS->getSwitchCaseList(); SC; in VerifyJumps()
H A DSemaStmtAttr.cpp29 if (isa<SwitchCase>(St)) { in handleFallThroughAttr()
H A DSemaAvailability.cpp597 return cast<SwitchCase>(Parent)->getSubStmt() == S; in isBodyLikeChildStmt()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Serialization/
H A DASTWriterStmt.cpp91 void ASTStmtWriter::VisitSwitchCase(SwitchCase *S) { in VisitSwitchCase()
184 for (SwitchCase *SC = S->getSwitchCaseList(); SC; in VisitSwitchStmt()
2568 unsigned ASTWriter::RecordSwitchCaseID(SwitchCase *S) { in RecordSwitchCaseID()
2576 unsigned ASTWriter::getSwitchCaseID(SwitchCase *S) { in getSwitchCaseID()
H A DASTReaderStmt.cpp163 void ASTStmtReader::VisitSwitchCase(SwitchCase *S) { in VisitSwitchCase()
257 SwitchCase *PrevSC = nullptr; in VisitSwitchStmt()
259 SwitchCase *SC = Record.getSwitchCaseWithID(Record.readInt()); in VisitSwitchStmt()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Analysis/
H A DUninitializedValues.cpp653 if (!Label || !isa<SwitchCase>(Label)) in getUninitUse()
H A DCalledOnceCheck.cpp536 for (const SwitchCase *Case = Switch->getSwitchCaseList(); Case; in VisitSwitchStmt()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/ASTMatchers/
H A DASTMatchers.h2249 extern const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchCase> switchCase;
7160 AST_MATCHER_P(SwitchStmt, forEachSwitchCase, internal::Matcher<SwitchCase>, in AST_MATCHER_P() argument
7168 for (const SwitchCase *SC = Node.getSwitchCaseList(); SC; in AST_MATCHER_P()
/netbsd-src/external/apache2/llvm/dist/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp893 const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchCase> switchCase;
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DStmt.cpp222 else if (const auto *SC = dyn_cast<SwitchCase>(S)) in stripLabelLikeStatements()
H A DExprConstant.cpp4885 const SwitchCase *SC = nullptr);
4890 const SwitchCase *Case = nullptr) { in EvaluateLoopBody()
4940 const SwitchCase *Found = nullptr; in EvaluateSwitch()
4941 for (const SwitchCase *SC = SS->getSwitchCaseList(); SC; in EvaluateSwitch()
4986 const Stmt *S, const SwitchCase *Case) { in EvaluateStmt()
5403 return EvaluateStmt(Result, Info, cast<SwitchCase>(S)->getSubStmt(), Case); in EvaluateStmt()

12