/external/skia/src/sksl/ir/ |
D | SkSLSwitchStatement.cpp | 50 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 …]
|
D | SkSLSwitchCase.h | 19 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()
|
D | SkSLSwitchStatement.h | 63 SwitchCase* caseToCapture,
|
/external/skqp/src/sksl/ir/ |
D | SkSLSwitchStatement.h | 21 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;
|
D | SkSLSwitchCase.h | 19 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/ |
D | InnerSwitchingProviders.java | 61 return getProviderExpression(new SwitchCase(binding, requestingClass)); in newBindingExpression() 79 private final class SwitchCase implements SwitchingProviders.SwitchCase { 83 SwitchCase(ContributionBinding binding, ClassName requestingClass) {
|
D | SwitchingProviders.java | 65 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/ |
D | TransProtectedScope.cpp | 42 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/ |
D | TransProtectedScope.cpp | 42 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/ |
D | VarBypassDetector.cpp | 117 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/ |
D | Stmt.h | 648 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/ |
D | Stmt.h | 271 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/ |
D | StmtNodes.td | 27 def SwitchCase : Stmt<1>; 28 def CaseStmt : DStmt<SwitchCase>; 29 def DefaultStmt : DStmt<SwitchCase>;
|
/external/llvm-project/clang/include/clang/Serialization/ |
D | ASTWriter.h | 87 class SwitchCase; variable 434 llvm::DenseMap<SwitchCase *, unsigned> SwitchCaseIDs; 677 unsigned RecordSwitchCaseID(SwitchCase *S); 680 unsigned getSwitchCaseID(SwitchCase *S);
|
D | ASTRecordReader.h | 334 void recordSwitchCaseID(SwitchCase *SC, unsigned ID) { in recordSwitchCaseID() 339 SwitchCase *getSwitchCaseWithID(unsigned ID) { in getSwitchCaseWithID()
|
/external/llvm-project/clang/lib/AST/Interp/ |
D | ByteCodeStmtGen.h | 44 using CaseMap = llvm::DenseMap<const SwitchCase *, LabelTy>;
|
/external/llvm-project/clang/lib/Tooling/Refactoring/Extract/ |
D | SourceExtraction.cpp | 45 if(const auto *Case = dyn_cast<SwitchCase>(S)) in isSemicolonRequiredAfter()
|
/external/clang/include/clang/Serialization/ |
D | ASTWriter.h | 70 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/ |
D | StmtNodes.td | 23 def SwitchCase : StmtNode<Stmt, 1>; 24 def CaseStmt : StmtNode<SwitchCase>; 25 def DefaultStmt : StmtNode<SwitchCase>;
|
/external/llvm-project/clang-tools-extra/clang-tidy/hicpp/ |
D | MultiwayPathsCoveredCheck.cpp | 55 const SwitchCase *CurrentCase = Switch->getSwitchCaseList(); in countCaseLabels()
|
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/ |
D | PopulateSwitch.cpp | 151 for (const SwitchCase *CaseList = Switch->getSwitchCaseList(); CaseList; in REGISTER_TWEAK()
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | XRefs.cpp | 927 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/ |
D | BranchCloneCheck.cpp | 180 if (isa<SwitchCase>(S)) in check()
|
/external/clang/lib/Sema/ |
D | AnalysisBasedWarnings.cpp | 932 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/ |
D | CGStmt.cpp | 1298 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()
|