Home
last modified time | relevance | path

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

12

/freebsd-12.1/contrib/llvm/tools/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-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DVarBypassDetector.cpp118 if (const SwitchCase *SC = dyn_cast<SwitchCase>(SubStmt)) in BuildScopeInformation()
145 for (const SwitchCase *SC = SS->getSwitchCaseList(); SC; in Detect()
H A DCGStmt.cpp1346 const SwitchCase *Case, in CollectStatementsForCase()
1355 if (const SwitchCase *SC = dyn_cast<SwitchCase>(S)) { in CollectStatementsForCase()
1504 const SwitchCase *&ResultCase) { in FindCaseStatementsForValue()
1507 const SwitchCase *Case = S.getSwitchCaseList(); in FindCaseStatementsForValue()
1564 const SwitchCase *Case = nullptr; in EmitSwitchStmt()
1619 for (const SwitchCase *Case = S.getSwitchCaseList(); in EmitSwitchStmt()
H A DCodeGenPGO.cpp618 void VisitSwitchCase(const SwitchCase *S) { in VisitSwitchCase()
H A DCoverageMappingGen.cpp1149 void VisitSwitchCase(const SwitchCase *S) { in VisitSwitchCase()
H A DCodeGenFunction.cpp1430 if (isa<SwitchCase>(S) && !IgnoreCaseStmts) in ContainsLabel()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DStmt.h267 friend class SwitchCase; in alignas() local
1349 class SwitchCase : public Stmt {
1359 SwitchCase *NextSwitchCase = nullptr;
1395 : public SwitchCase,
1447 : SwitchCase(CaseStmtClass, Empty) { in CaseStmt()
1544 class DefaultStmt : public SwitchCase {
1553 : SwitchCase(DefaultStmtClass, Empty) {} in DefaultStmt()
1575 SourceLocation SwitchCase::getEndLoc() const { in getEndLoc()
1583 Stmt *SwitchCase::getSubStmt() { in getSubStmt()
1891 SwitchCase *FirstCase;
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Basic/
H A DStmtNodes.td27 def SwitchCase : Stmt<1>;
28 def CaseStmt : DStmt<SwitchCase>;
29 def DefaultStmt : DStmt<SwitchCase>;
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Serialization/
H A DASTWriter.h93 class SwitchCase; variable
430 llvm::DenseMap<SwitchCase *, unsigned> SwitchCaseIDs;
669 unsigned RecordSwitchCaseID(SwitchCase *S);
672 unsigned getSwitchCaseID(SwitchCase *S);
H A DASTReader.h113 class SwitchCase; variable
946 using SwitchCaseMapTy = llvm::DenseMap<unsigned, SwitchCase *>;
2332 void RecordSwitchCaseID(SwitchCase *SC, unsigned ID);
2335 SwitchCase *getSwitchCaseWithID(unsigned ID);
2652 void recordSwitchCaseID(SwitchCase *SC, unsigned ID) { in recordSwitchCaseID()
2657 SwitchCase *getSwitchCaseWithID(unsigned ID) { in getSwitchCaseWithID()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DAnalysisBasedWarnings.cpp1047 if (L && isa<SwitchCase>(L) && ReachableBlocks.insert(B).second) in fillReachableBlocks()
1080 const SwitchCase *SW = dyn_cast_or_null<SwitchCase>(P->getLabel()); in checkFallThroughIntoBlock()
1185 if (const SwitchCase *SW = dyn_cast_or_null<SwitchCase>(B.getLabel())) in getLastStmt()
1186 if (!isa<SwitchCase>(SW->getSubStmt())) in getLastStmt()
1259 if (!Label || !isa<SwitchCase>(Label)) in DiagnoseSwitchLabelsFallthrough()
H A DJumpDiagnostics.cpp570 if (SwitchCase *SC = dyn_cast<SwitchCase>(SubStmt)) in BuildScopeInformation()
616 for (SwitchCase *SC = SS->getSwitchCaseList(); SC; in VerifyJumps()
H A DSemaStmtAttr.cpp32 if (isa<SwitchCase>(St)) { in handleFallThroughAttr()
H A DSemaStmt.cpp883 for (SwitchCase *SC = SS->getSwitchCaseList(); SC && !HasDependentValue; in ActOnFinishSwitchStmt()
H A DSemaCodeComplete.cpp4503 for (SwitchCase *SC = Switch->getSwitchCaseList(); SC; in CodeCompleteCase()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/ASTMatchers/
H A DASTMatchers.h2008 extern const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchCase> switchCase;
5946 AST_MATCHER_P(SwitchStmt, forEachSwitchCase, internal::Matcher<SwitchCase>, in AST_MATCHER_P() argument
5954 for (const SwitchCase *SC = Node.getSwitchCaseList(); SC; in AST_MATCHER_P()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Serialization/
H A DASTWriterStmt.cpp90 void ASTStmtWriter::VisitSwitchCase(SwitchCase *S) { in VisitSwitchCase()
178 for (SwitchCase *SC = S->getSwitchCaseList(); SC; in VisitSwitchStmt()
2271 unsigned ASTWriter::RecordSwitchCaseID(SwitchCase *S) { in RecordSwitchCaseID()
2279 unsigned ASTWriter::getSwitchCaseID(SwitchCase *S) { in getSwitchCaseID()
H A DASTReaderStmt.cpp171 void ASTStmtReader::VisitSwitchCase(SwitchCase *S) { in VisitSwitchCase()
259 SwitchCase *PrevSC = nullptr; in VisitSwitchStmt()
261 SwitchCase *SC = Record.getSwitchCaseWithID(Record.readInt()); in VisitSwitchStmt()
H A DASTReader.cpp9132 void ASTReader::RecordSwitchCaseID(SwitchCase *SC, unsigned ID) { in RecordSwitchCaseID()
9139 SwitchCase *ASTReader::getSwitchCaseWithID(unsigned ID) { in getSwitchCaseWithID()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Analysis/
H A DUninitializedValues.cpp672 if (!Label || !isa<SwitchCase>(Label)) in getUninitUse()
/freebsd-12.1/contrib/llvm/tools/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp707 const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchCase> switchCase;
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DStmt.cpp174 else if (const auto *SC = dyn_cast<SwitchCase>(S)) in stripLabelLikeStatements()
H A DExprConstant.cpp3935 const SwitchCase *SC = nullptr);
3940 const SwitchCase *Case = nullptr) { in EvaluateLoopBody()
3979 const SwitchCase *Found = nullptr; in EvaluateSwitch()
3980 for (const SwitchCase *SC = SS->getSwitchCaseList(); SC; in EvaluateSwitch()
4021 const Stmt *S, const SwitchCase *Case) { in EvaluateStmt()
4308 return EvaluateStmt(Result, Info, cast<SwitchCase>(S)->getSubStmt(), Case); in EvaluateStmt()
H A DASTImporter.cpp5756 SwitchCase *LastChainedSwitchCase = nullptr; in VisitSwitchStmt()
5757 for (SwitchCase *SC = S->getSwitchCaseList(); SC != nullptr; in VisitSwitchStmt()
5759 Expected<SwitchCase *> ToSCOrErr = import(SC); in VisitSwitchStmt()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DBugReporter.cpp3063 if (P && (isa<SwitchCase>(P) || isa<LabelStmt>(P))) in findExecutedLines()

12