Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DVarBypassDetector.cpp118 if (const SwitchCase *SC = dyn_cast<SwitchCase>(SubStmt)) in BuildScopeInformation()
149 for (const SwitchCase *SC = SS->getSwitchCaseList(); SC; in Detect()
H A DCGStmt.cpp2011 const SwitchCase *Case, in CollectStatementsForCase()
2020 if (const SwitchCase *SC = dyn_cast<SwitchCase>(S)) { in CollectStatementsForCase()
2169 const SwitchCase *&ResultCase) { in FindCaseStatementsForValue()
2172 const SwitchCase *Case = S.getSwitchCaseList(); in FindCaseStatementsForValue()
2286 const SwitchCase *Case = nullptr; in EmitSwitchStmt()
2358 for (const SwitchCase *Case = S.getSwitchCaseList(); in EmitSwitchStmt()
H A DCoverageMappingGen.cpp1191 Counter createSwitchCaseRegion(const SwitchCase *SC, Counter ParentCount) { in createSwitchCaseRegion()
1919 const SwitchCase *Case = S->getSwitchCaseList(); in VisitSwitchStmt()
1941 void VisitSwitchCase(const SwitchCase *S) { in VisitSwitchCase()
H A DCodeGenPGO.cpp853 void VisitSwitchCase(const SwitchCase *S) { in VisitSwitchCase()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DStmt.h315 friend class SwitchCase;
1884 class SwitchCase : public Stmt {
1894 SwitchCase *NextSwitchCase = nullptr;
1896 SwitchCase(StmtClass SC, SourceLocation KWLoc, SourceLocation ColonLoc)
1901 SwitchCase(StmtClass SC, EmptyShell) : Stmt(SC) {}
1904 const SwitchCase *getNextSwitchCase() const { return NextSwitchCase; }
1905 SwitchCase *getNextSwitchCase() { return NextSwitchCase; }
1906 void setNextSwitchCase(SwitchCase *SC) { NextSwitchCase = SC; }
1915 return const_cast<SwitchCase *>(this)->getSubStmt();
1930 : public SwitchCase,
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTRecordReader.h358 void recordSwitchCaseID(SwitchCase *SC, unsigned ID) { in recordSwitchCaseID()
363 SwitchCase *getSwitchCaseWithID(unsigned ID) { in getSwitchCaseWithID()
H A DASTWriter.h75 class SwitchCase; variable
487 llvm::DenseMap<SwitchCase *, unsigned> SwitchCaseIDs;
840 unsigned RecordSwitchCaseID(SwitchCase *S);
843 unsigned getSwitchCaseID(SwitchCase *S);
H A DASTReader.h103 class SwitchCase; variable
1120 using SwitchCaseMapTy = llvm::DenseMap<unsigned, SwitchCase *>;
2598 void RecordSwitchCaseID(SwitchCase *SC, unsigned ID);
2601 SwitchCase *getSwitchCaseWithID(unsigned ID);
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp46 if(const auto *Case = dyn_cast<SwitchCase>(S)) in isSemicolonRequiredAfter()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DStmtNodes.td23 def SwitchCase : StmtNode<Stmt, 1>;
24 def CaseStmt : StmtNode<SwitchCase>;
25 def DefaultStmt : StmtNode<SwitchCase>;
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenStmt.cpp261 return emitSwitchCase(cast<SwitchCase>(*s), in emitSimpleStmt()
552 mlir::LogicalResult CIRGenFunction::emitSwitchCase(const SwitchCase &s, in emitSwitchCase()
841 if (auto *switchCase = dyn_cast<SwitchCase>(c)) { in emitSwitchBody()
H A DCIRGenFunction.cpp154 if (isa<SwitchCase>(s) && !ignoreCaseStmts) in containsLabel()
H A DCIRGenFunction.h1064 mlir::LogicalResult emitSwitchCase(const clang::SwitchCase &s,
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DJumpDiagnostics.cpp653 if (SwitchCase *SC = dyn_cast<SwitchCase>(SubStmt)) in BuildScopeInformation()
725 for (SwitchCase *SC = SS->getSwitchCaseList(); SC; in VerifyJumps()
H A DAnalysisBasedWarnings.cpp1245 if (isa_and_nonnull<SwitchCase>(L) && ReachableBlocks.insert(B).second) in fillReachableBlocks()
1277 const SwitchCase *SW = dyn_cast_or_null<SwitchCase>(P->getLabel()); in checkFallThroughIntoBlock()
1374 if (const SwitchCase *SW = dyn_cast_or_null<SwitchCase>(B.getLabel())) in getLastStmt()
1375 if (!isa<SwitchCase>(SW->getSubStmt())) in getLastStmt()
1443 if (!isa_and_nonnull<SwitchCase>(Label)) in DiagnoseSwitchLabelsFallthrough()
H A DSemaStmtAttr.cpp27 if (isa<SwitchCase>(St)) { in handleFallThroughAttr()
H A DSemaAvailability.cpp756 return cast<SwitchCase>(Parent)->getSubStmt() == S; in isBodyLikeChildStmt()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DCompiler.h116 using CaseMap = llvm::DenseMap<const SwitchCase *, LabelTy>;
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DUninitializedValues.cpp640 if (!Label || !isa<SwitchCase>(Label)) in getUninitUse()
H A DCalledOnceCheck.cpp534 for (const SwitchCase *Case = Switch->getSwitchCaseList(); Case; in VisitSwitchStmt()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriterStmt.cpp157 void ASTStmtWriter::VisitSwitchCase(SwitchCase *S) { in VisitSwitchCase()
251 for (SwitchCase *SC = S->getSwitchCaseList(); SC; in VisitSwitchStmt()
3050 unsigned ASTWriter::RecordSwitchCaseID(SwitchCase *S) { in RecordSwitchCaseID()
3057 unsigned ASTWriter::getSwitchCaseID(SwitchCase *S) { in getSwitchCaseID()
H A DASTReaderStmt.cpp165 void ASTStmtReader::VisitSwitchCase(SwitchCase *S) { in VisitSwitchCase()
261 SwitchCase *PrevSC = nullptr; in VisitSwitchStmt()
263 SwitchCase *SC = Record.getSwitchCaseWithID(Record.readInt()); in VisitSwitchStmt()
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h2387 extern const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchCase> switchCase;
7955 AST_MATCHER_P(SwitchStmt, forEachSwitchCase, internal::Matcher<SwitchCase>, in AST_MATCHER_P() argument
7963 for (const SwitchCase *SC = Node.getSwitchCaseList(); SC; in AST_MATCHER_P()
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp946 const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchCase> switchCase;
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DStmt.cpp232 else if (const auto *SC = dyn_cast<SwitchCase>(S)) in stripLabelLikeStatements()

12