Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/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()
/freebsd-14.2/contrib/llvm-project/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.cpp1683 const SwitchCase *Case, in CollectStatementsForCase()
1692 if (const SwitchCase *SC = dyn_cast<SwitchCase>(S)) { in CollectStatementsForCase()
1841 const SwitchCase *&ResultCase) { in FindCaseStatementsForValue()
1844 const SwitchCase *Case = S.getSwitchCaseList(); in FindCaseStatementsForValue()
1958 const SwitchCase *Case = nullptr; in EmitSwitchStmt()
2013 for (const SwitchCase *Case = S.getSwitchCaseList(); in EmitSwitchStmt()
H A DCoverageMappingGen.cpp1074 void createSwitchCaseRegion(const SwitchCase *SC, Counter TrueCnt, in createSwitchCaseRegion()
1737 const SwitchCase *Case = S->getSwitchCaseList(); in VisitSwitchStmt()
1761 void VisitSwitchCase(const SwitchCase *S) { in VisitSwitchCase()
H A DCodeGenPGO.cpp764 void VisitSwitchCase(const SwitchCase *S) { in VisitSwitchCase()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DStmt.h313 friend class SwitchCase; in alignas() local
1752 class SwitchCase : public Stmt {
1762 SwitchCase *NextSwitchCase = nullptr;
1798 : public SwitchCase,
1850 : SwitchCase(CaseStmtClass, Empty) { in CaseStmt()
1953 class DefaultStmt : public SwitchCase {
1962 : SwitchCase(DefaultStmtClass, Empty) {} in DefaultStmt()
1988 SourceLocation SwitchCase::getEndLoc() const { in getEndLoc()
1996 Stmt *SwitchCase::getSubStmt() { in getSubStmt()
2390 SwitchCase *FirstCase = nullptr;
[all …]
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTRecordReader.h345 void recordSwitchCaseID(SwitchCase *SC, unsigned ID) { in recordSwitchCaseID()
350 SwitchCase *getSwitchCaseWithID(unsigned ID) { in getSwitchCaseWithID()
H A DASTWriter.h76 class SwitchCase; variable
435 llvm::DenseMap<SwitchCase *, unsigned> SwitchCaseIDs;
734 unsigned RecordSwitchCaseID(SwitchCase *S);
737 unsigned getSwitchCaseID(SwitchCase *S);
H A DASTReader.h101 class SwitchCase; variable
994 using SwitchCaseMapTy = llvm::DenseMap<unsigned, SwitchCase *>;
2376 void RecordSwitchCaseID(SwitchCase *SC, unsigned ID);
2379 SwitchCase *getSwitchCaseWithID(unsigned ID);
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp46 if(const auto *Case = dyn_cast<SwitchCase>(S)) in isSemicolonRequiredAfter()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/
H A DByteCodeStmtGen.h35 using CaseMap = llvm::DenseMap<const SwitchCase *, LabelTy>;
H A DByteCodeStmtGen.cpp600 for (const SwitchCase *SC = S->getSwitchCaseList(); SC; in visitSwitchStmt()
/freebsd-14.2/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-14.2/contrib/llvm-project/clang/lib/Sema/
H A DJumpDiagnostics.cpp638 if (SwitchCase *SC = dyn_cast<SwitchCase>(SubStmt)) in BuildScopeInformation()
700 for (SwitchCase *SC = SS->getSwitchCaseList(); SC; in VerifyJumps()
H A DAnalysisBasedWarnings.cpp1103 if (L && isa<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 DSemaStmtAttr.cpp30 if (isa<SwitchCase>(St)) { in handleFallThroughAttr()
H A DSemaAvailability.cpp636 return cast<SwitchCase>(Parent)->getSubStmt() == S; in isBodyLikeChildStmt()
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/
H A DUninitializedValues.cpp646 if (!Label || !isa<SwitchCase>(Label)) in getUninitUse()
H A DCalledOnceCheck.cpp536 for (const SwitchCase *Case = Switch->getSwitchCaseList(); Case; in VisitSwitchStmt()
/freebsd-14.2/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()
2832 unsigned ASTWriter::RecordSwitchCaseID(SwitchCase *S) { in RecordSwitchCaseID()
2839 unsigned ASTWriter::getSwitchCaseID(SwitchCase *S) { in getSwitchCaseID()
H A DASTReaderStmt.cpp169 void ASTStmtReader::VisitSwitchCase(SwitchCase *S) { in VisitSwitchCase()
265 SwitchCase *PrevSC = nullptr; in VisitSwitchStmt()
267 SwitchCase *SC = Record.getSwitchCaseWithID(Record.readInt()); in VisitSwitchStmt()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h2337 extern const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchCase> switchCase;
7854 AST_MATCHER_P(SwitchStmt, forEachSwitchCase, internal::Matcher<SwitchCase>, in AST_MATCHER_P() argument
7862 for (const SwitchCase *SC = Node.getSwitchCaseList(); SC; in AST_MATCHER_P()
/freebsd-14.2/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp915 const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchCase> switchCase;
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DStmt.cpp223 else if (const auto *SC = dyn_cast<SwitchCase>(S)) in stripLabelLikeStatements()
H A DExprConstant.cpp5019 const SwitchCase *SC = nullptr);
5024 const SwitchCase *Case = nullptr) { in EvaluateLoopBody()
5080 const SwitchCase *Found = nullptr; in EvaluateSwitch()
5081 for (const SwitchCase *SC = SS->getSwitchCaseList(); SC; in EvaluateSwitch()
5140 const Stmt *S, const SwitchCase *Case) { in EvaluateStmt()
5577 return EvaluateStmt(Result, Info, cast<SwitchCase>(S)->getSubStmt(), Case); in EvaluateStmt()

12