Home
last modified time | relevance | path

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

1234

/external/skia/src/sksl/ir/
DSkSLSwitchStatement.cpp50 static std::forward_list<const SwitchCase*> find_duplicate_case_values( in find_duplicate_case_values()
52 std::forward_list<const SwitchCase*> duplicateCases; in find_duplicate_case_values()
57 const SwitchCase* sc = &stmt->as<SwitchCase>(); in find_duplicate_case_values()
113 SwitchCase* caseToCapture, in BlockForCase()
120 const SwitchCase& sc = (*iter)->as<SwitchCase>(); in BlockForCase()
132 std::unique_ptr<Statement>& stmt = (*iter)->as<SwitchCase>().statement(); in BlockForCase()
152 caseStmts.push_back(std::move((*startIter)->as<SwitchCase>().statement())); in BlockForCase()
159 SkASSERT((*startIter)->as<SwitchCase>().statement().get() == stripBreakStmt); in BlockForCase()
160 move_all_but_break((*startIter)->as<SwitchCase>().statement(), &caseStmts); in BlockForCase()
209 cases.push_back(std::make_unique<SwitchCase>(caseOffset, std::move(caseValue), in Convert()
[all …]
DSkSLSwitchCase.h19 class SwitchCase final : public Statement {
24 SwitchCase(int offset, std::unique_ptr<Expression> value, std::unique_ptr<Statement> statement) in SwitchCase() function
46 return std::make_unique<SwitchCase>(fOffset, in clone()
DSkSLSwitchStatement.h63 SwitchCase* caseToCapture,
/external/skqp/src/sksl/ir/
DSkSLSwitchStatement.h21 std::vector<std::unique_ptr<SwitchCase>> cases, in SwitchStatement()
30 std::vector<std::unique_ptr<SwitchCase>> cloned; in clone()
32 cloned.push_back(std::unique_ptr<SwitchCase>((SwitchCase*) s->clone().release())); in clone()
56 std::vector<std::unique_ptr<SwitchCase>> fCases;
DSkSLSwitchCase.h19 struct SwitchCase : public Statement { struct
20 SwitchCase(int offset, std::unique_ptr<Expression> value, in SwitchCase() function
31 return std::unique_ptr<Statement>(new SwitchCase(fOffset, in clone() argument
/external/dagger2/java/dagger/internal/codegen/writing/
DInnerSwitchingProviders.java61 return getProviderExpression(new SwitchCase(binding, requestingClass)); in newBindingExpression()
79 private final class SwitchCase implements SwitchingProviders.SwitchCase {
83 SwitchCase(ContributionBinding binding, ClassName requestingClass) {
DSwitchingProviders.java65 interface SwitchCase { interface in SwitchingProviders
116 protected final Expression getProviderExpression(SwitchCase switchCase) { in getProviderExpression()
145 Expression getProviderExpression(SwitchCase switchCase) { in getProviderExpression()
155 private CodeBlock createSwitchCaseCodeBlock(SwitchCase switchCase) { in createSwitchCaseCodeBlock()
/external/clang/lib/ARCMigrate/
DTransProtectedScope.cpp42 SwitchCase *SC;
51 CaseInfo(SwitchCase *S, SourceRange Range) in CaseInfo()
64 SwitchCase *Curr = S->getSwitchCaseList(); in VisitSwitchStmt()
87 Stmt *getCaseParent(SwitchCase *S) { in getCaseParent()
89 while (Parent && (isa<SwitchCase>(Parent) || isa<LabelStmt>(Parent))) in getCaseParent()
/external/llvm-project/clang/lib/ARCMigrate/
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()
/external/llvm-project/clang/lib/CodeGen/
DVarBypassDetector.cpp117 if (const SwitchCase *SC = dyn_cast<SwitchCase>(SubStmt)) in BuildScopeInformation()
144 for (const SwitchCase *SC = SS->getSwitchCaseList(); SC; in Detect()
/external/clang/include/clang/AST/
DStmt.h648 class SwitchCase : public Stmt {
652 SwitchCase *NextSwitchCase;
656 SwitchCase(StmtClass SC, SourceLocation KWLoc, SourceLocation ColonLoc) in SwitchCase() function
660 SwitchCase(StmtClass SC, EmptyShell) in SwitchCase() function
664 const SwitchCase *getNextSwitchCase() const { return NextSwitchCase; } in getNextSwitchCase()
666 SwitchCase *getNextSwitchCase() { return NextSwitchCase; } in getNextSwitchCase()
668 void setNextSwitchCase(SwitchCase *SC) { NextSwitchCase = SC; } in setNextSwitchCase()
677 return const_cast<SwitchCase*>(this)->getSubStmt(); in getSubStmt()
689 class CaseStmt : public SwitchCase {
697 : SwitchCase(CaseStmtClass, caseLoc, colonLoc) { in CaseStmt()
[all …]
/external/llvm-project/clang/include/clang/AST/
DStmt.h271 friend class SwitchCase; variable
1521 class SwitchCase : public Stmt {
1531 SwitchCase *NextSwitchCase = nullptr;
1533 SwitchCase(StmtClass SC, SourceLocation KWLoc, SourceLocation ColonLoc) in SwitchCase() function
1538 SwitchCase(StmtClass SC, EmptyShell) : Stmt(SC) {} in SwitchCase() function
1541 const SwitchCase *getNextSwitchCase() const { return NextSwitchCase; } in getNextSwitchCase()
1542 SwitchCase *getNextSwitchCase() { return NextSwitchCase; } in getNextSwitchCase()
1543 void setNextSwitchCase(SwitchCase *SC) { NextSwitchCase = SC; } in setNextSwitchCase()
1552 return const_cast<SwitchCase *>(this)->getSubStmt(); in getSubStmt()
1567 : public SwitchCase,
[all …]
/external/clang/include/clang/Basic/
DStmtNodes.td27 def SwitchCase : Stmt<1>;
28 def CaseStmt : DStmt<SwitchCase>;
29 def DefaultStmt : DStmt<SwitchCase>;
/external/llvm-project/clang/include/clang/Serialization/
DASTWriter.h87 class SwitchCase; variable
434 llvm::DenseMap<SwitchCase *, unsigned> SwitchCaseIDs;
677 unsigned RecordSwitchCaseID(SwitchCase *S);
680 unsigned getSwitchCaseID(SwitchCase *S);
DASTRecordReader.h334 void recordSwitchCaseID(SwitchCase *SC, unsigned ID) { in recordSwitchCaseID()
339 SwitchCase *getSwitchCaseWithID(unsigned ID) { in getSwitchCaseWithID()
/external/llvm-project/clang/lib/AST/Interp/
DByteCodeStmtGen.h44 using CaseMap = llvm::DenseMap<const SwitchCase *, LabelTy>;
/external/llvm-project/clang/lib/Tooling/Refactoring/Extract/
DSourceExtraction.cpp45 if(const auto *Case = dyn_cast<SwitchCase>(S)) in isSemicolonRequiredAfter()
/external/clang/include/clang/Serialization/
DASTWriter.h70 class SwitchCase; variable
396 llvm::DenseMap<SwitchCase *, unsigned> SwitchCaseIDs;
627 unsigned RecordSwitchCaseID(SwitchCase *S);
630 unsigned getSwitchCaseID(SwitchCase *S);
/external/llvm-project/clang/include/clang/Basic/
DStmtNodes.td23 def SwitchCase : StmtNode<Stmt, 1>;
24 def CaseStmt : StmtNode<SwitchCase>;
25 def DefaultStmt : StmtNode<SwitchCase>;
/external/llvm-project/clang-tools-extra/clang-tidy/hicpp/
DMultiwayPathsCoveredCheck.cpp55 const SwitchCase *CurrentCase = Switch->getSwitchCaseList(); in countCaseLabels()
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
DPopulateSwitch.cpp151 for (const SwitchCase *CaseList = Switch->getSwitchCaseList(); CaseList; in REGISTER_TWEAK()
/external/llvm-project/clang-tools-extra/clangd/
DXRefs.cpp927 bool VisitSwitchCase(SwitchCase *C) { in VisitSwitchCase()
953 std::vector<const SwitchCase *> Cases; in findCaseBounds()
954 for (const SwitchCase *Case = Switch.getSwitchCaseList(); Case; in findCaseBounds()
957 llvm::sort(Cases, [&](const SwitchCase *L, const SwitchCase *R) { in findCaseBounds()
962 auto CaseAfter = llvm::partition_point(Cases, [&](const SwitchCase *C) { in findCaseBounds()
1002 } else if (N.ASTNode.get<SwitchCase>()) { in relatedControlFlow()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DBranchCloneCheck.cpp180 if (isa<SwitchCase>(S)) in check()
/external/clang/lib/Sema/
DAnalysisBasedWarnings.cpp932 if (L && isa<SwitchCase>(L) && ReachableBlocks.insert(B).second) in fillReachableBlocks()
964 const SwitchCase *SW = dyn_cast_or_null<SwitchCase>(P->getLabel()); in checkFallThroughIntoBlock()
1060 if (const SwitchCase *SW = dyn_cast_or_null<SwitchCase>(B.getLabel())) in getLastStmt()
1061 if (!isa<SwitchCase>(SW->getSubStmt())) in getLastStmt()
1135 if (!Label || !isa<SwitchCase>(Label)) in DiagnoseSwitchLabelsFallthrough()
/external/clang/lib/CodeGen/
DCGStmt.cpp1298 const SwitchCase *Case, in CollectStatementsForCase()
1307 if (const SwitchCase *SC = dyn_cast<SwitchCase>(S)) { in CollectStatementsForCase()
1427 const SwitchCase *&ResultCase) { in FindCaseStatementsForValue()
1430 const SwitchCase *Case = S.getSwitchCaseList(); in FindCaseStatementsForValue()
1487 const SwitchCase *Case = nullptr; in EmitSwitchStmt()
1542 for (const SwitchCase *Case = S.getSwitchCaseList(); in EmitSwitchStmt()

1234