Home
last modified time | relevance | path

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

12

/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/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.cpp1665 const SwitchCase *Case, in CollectStatementsForCase()
1674 if (const SwitchCase *SC = dyn_cast<SwitchCase>(S)) { in CollectStatementsForCase()
1823 const SwitchCase *&ResultCase) { in FindCaseStatementsForValue()
1826 const SwitchCase *Case = S.getSwitchCaseList(); in FindCaseStatementsForValue()
1940 const SwitchCase *Case = nullptr; in EmitSwitchStmt()
1995 for (const SwitchCase *Case = S.getSwitchCaseList(); in EmitSwitchStmt()
H A DCoverageMappingGen.cpp754 void createSwitchCaseRegion(const SwitchCase *SC, Counter TrueCnt, in createSwitchCaseRegion()
1329 const SwitchCase *Case = S->getSwitchCaseList(); in VisitSwitchStmt()
1353 void VisitSwitchCase(const SwitchCase *S) { in VisitSwitchCase()
H A DCodeGenPGO.cpp637 void VisitSwitchCase(const SwitchCase *S) { in VisitSwitchCase()
/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DStmt.h276 friend class SwitchCase; variable
1566 class SwitchCase : public Stmt {
1576 SwitchCase *NextSwitchCase = nullptr;
1578 SwitchCase(StmtClass SC, SourceLocation KWLoc, SourceLocation ColonLoc) in SwitchCase() function
1583 SwitchCase(StmtClass SC, EmptyShell) : Stmt(SC) {} in SwitchCase() function
1586 const SwitchCase *getNextSwitchCase() const { return NextSwitchCase; } in getNextSwitchCase()
1587 SwitchCase *getNextSwitchCase() { return NextSwitchCase; } in getNextSwitchCase()
1588 void setNextSwitchCase(SwitchCase *SC) { NextSwitchCase = SC; } in setNextSwitchCase()
1597 return const_cast<SwitchCase *>(this)->getSubStmt(); in getSubStmt()
1612 : public SwitchCase,
[all …]
/openbsd-src/gnu/llvm/clang/include/clang/Serialization/
H A DASTRecordReader.h340 void recordSwitchCaseID(SwitchCase *SC, unsigned ID) { in recordSwitchCaseID()
345 SwitchCase *getSwitchCaseWithID(unsigned ID) { in getSwitchCaseWithID()
H A DASTWriter.h76 class SwitchCase; variable
423 llvm::DenseMap<SwitchCase *, unsigned> SwitchCaseIDs;
711 unsigned RecordSwitchCaseID(SwitchCase *S);
714 unsigned getSwitchCaseID(SwitchCase *S);
H A DASTReader.h100 class SwitchCase; variable
981 using SwitchCaseMapTy = llvm::DenseMap<unsigned, SwitchCase *>;
2341 void RecordSwitchCaseID(SwitchCase *SC, unsigned ID);
2344 SwitchCase *getSwitchCaseWithID(unsigned ID);
/openbsd-src/gnu/llvm/clang/lib/AST/Interp/
H A DByteCodeStmtGen.h39 using CaseMap = llvm::DenseMap<const SwitchCase *, LabelTy>;
/openbsd-src/gnu/llvm/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp46 if(const auto *Case = dyn_cast<SwitchCase>(S)) in isSemicolonRequiredAfter()
/openbsd-src/gnu/llvm/clang/include/clang/Basic/
H A DStmtNodes.td23 def SwitchCase : StmtNode<Stmt, 1>;
24 def CaseStmt : StmtNode<SwitchCase>;
25 def DefaultStmt : StmtNode<SwitchCase>;
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DAnalysisBasedWarnings.cpp1079 if (L && isa<SwitchCase>(L) && ReachableBlocks.insert(B).second) in fillReachableBlocks()
1110 const SwitchCase *SW = dyn_cast_or_null<SwitchCase>(P->getLabel()); in checkFallThroughIntoBlock()
1210 if (const SwitchCase *SW = dyn_cast_or_null<SwitchCase>(B.getLabel())) in getLastStmt()
1211 if (!isa<SwitchCase>(SW->getSubStmt())) in getLastStmt()
1279 if (!isa_and_nonnull<SwitchCase>(Label)) in DiagnoseSwitchLabelsFallthrough()
H A DJumpDiagnostics.cpp634 if (SwitchCase *SC = dyn_cast<SwitchCase>(SubStmt)) in BuildScopeInformation()
680 for (SwitchCase *SC = SS->getSwitchCaseList(); SC; in VerifyJumps()
H A DSemaStmtAttr.cpp30 if (isa<SwitchCase>(St)) { in handleFallThroughAttr()
H A DSemaAvailability.cpp601 return cast<SwitchCase>(Parent)->getSubStmt() == S; in isBodyLikeChildStmt()
/openbsd-src/gnu/llvm/clang/lib/Serialization/
H A DASTWriterStmt.cpp94 void ASTStmtWriter::VisitSwitchCase(SwitchCase *S) { in VisitSwitchCase()
186 for (SwitchCase *SC = S->getSwitchCaseList(); SC; in VisitSwitchStmt()
2700 unsigned ASTWriter::RecordSwitchCaseID(SwitchCase *S) { in RecordSwitchCaseID()
2708 unsigned ASTWriter::getSwitchCaseID(SwitchCase *S) { in getSwitchCaseID()
H A DASTReaderStmt.cpp168 void ASTStmtReader::VisitSwitchCase(SwitchCase *S) { in VisitSwitchCase()
262 SwitchCase *PrevSC = nullptr; in VisitSwitchStmt()
264 SwitchCase *SC = Record.getSwitchCaseWithID(Record.readInt()); in VisitSwitchStmt()
/openbsd-src/gnu/llvm/clang/lib/Analysis/
H A DUninitializedValues.cpp650 if (!Label || !isa<SwitchCase>(Label)) in getUninitUse()
H A DCalledOnceCheck.cpp536 for (const SwitchCase *Case = Switch->getSwitchCaseList(); Case; in VisitSwitchStmt()
/openbsd-src/gnu/llvm/clang/include/clang/ASTMatchers/
H A DASTMatchers.h2275 extern const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchCase> switchCase;
7578 AST_MATCHER_P(SwitchStmt, forEachSwitchCase, internal::Matcher<SwitchCase>, in AST_MATCHER_P() argument
7586 for (const SwitchCase *SC = Node.getSwitchCaseList(); SC; in AST_MATCHER_P()
/openbsd-src/gnu/llvm/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp909 const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchCase> switchCase;
/openbsd-src/gnu/llvm/clang/lib/AST/
H A DStmt.cpp223 else if (const auto *SC = dyn_cast<SwitchCase>(S)) in stripLabelLikeStatements()
H A DExprConstant.cpp4940 const SwitchCase *SC = nullptr);
4945 const SwitchCase *Case = nullptr) { in EvaluateLoopBody()
5000 const SwitchCase *Found = nullptr; in EvaluateSwitch()
5001 for (const SwitchCase *SC = SS->getSwitchCaseList(); SC; in EvaluateSwitch()
5060 const Stmt *S, const SwitchCase *Case) { in EvaluateStmt()
5494 return EvaluateStmt(Result, Info, cast<SwitchCase>(S)->getSubStmt(), Case); in EvaluateStmt()
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/
H A DBugReporter.cpp3190 if (isa_and_nonnull<SwitchCase, LabelStmt>(P)) in findExecutedLines()

12