Home
last modified time | relevance | path

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

12

/freebsd/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/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.cpp1862 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 DCoverageMappingGen.cpp1156 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 DCodeGenPGO.cpp853 void VisitSwitchCase(const SwitchCase *S) { in VisitSwitchCase()
H A DCodeGenFunction.cpp1616 if (isa<SwitchCase>(S) && !IgnoreCaseStmts) in ContainsLabel()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DStmt.h313 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 DASTRecordReader.h350 void recordSwitchCaseID(SwitchCase *SC, unsigned ID) { in recordSwitchCaseID()
355 SwitchCase *getSwitchCaseWithID(unsigned ID) { in getSwitchCaseWithID()
H A DASTWriter.h75 class SwitchCase; variable
468 llvm::DenseMap<SwitchCase *, unsigned> SwitchCaseIDs;
793 unsigned RecordSwitchCaseID(SwitchCase *S);
796 unsigned getSwitchCaseID(SwitchCase *S);
H A DASTReader.h101 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 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/Sema/
H A DJumpDiagnostics.cpp647 if (SwitchCase *SC = dyn_cast<SwitchCase>(SubStmt)) in BuildScopeInformation()
709 for (SwitchCase *SC = SS->getSwitchCaseList(); SC; in VerifyJumps()
H A DAnalysisBasedWarnings.cpp1103 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 DSemaStmtAttr.cpp31 if (isa<SwitchCase>(St)) { in handleFallThroughAttr()
H A DSemaAvailability.cpp713 return cast<SwitchCase>(Parent)->getSubStmt() == S; in isBodyLikeChildStmt()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DCompiler.h104 using CaseMap = llvm::DenseMap<const SwitchCase *, LabelTy>;
/freebsd/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/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()
2911 unsigned ASTWriter::RecordSwitchCaseID(SwitchCase *S) { in RecordSwitchCaseID()
2918 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/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h2338 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 DStmt.cpp224 else if (const auto *SC = dyn_cast<SwitchCase>(S)) in stripLabelLikeStatements()
H A DExprConstant.cpp5054 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 DBugReporter.cpp3237 if (isa_and_nonnull<SwitchCase, LabelStmt>(P)) in findExecutedLines()

12