/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/skia/src/sksl/ir/ |
D | SkSLSwitchStatement.h | 21 std::vector<std::unique_ptr<SwitchCase>> cases) in SwitchStatement() 36 std::vector<std::unique_ptr<SwitchCase>> fCases;
|
D | SkSLSwitchCase.h | 19 struct SwitchCase : public Statement { struct 20 SwitchCase(Position position, std::unique_ptr<Expression> value, in SwitchCase() function
|
/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/clang/include/clang/Basic/ |
D | StmtNodes.td | 27 def SwitchCase : Stmt<1>; 28 def CaseStmt : DStmt<SwitchCase>; 29 def DefaultStmt : DStmt<SwitchCase>;
|
/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);
|
D | ASTReader.h | 86 class SwitchCase; variable 846 typedef llvm::DenseMap<unsigned, SwitchCase *> SwitchCaseMapTy; 2120 void RecordSwitchCaseID(SwitchCase *SC, unsigned ID); 2123 SwitchCase *getSwitchCaseWithID(unsigned ID);
|
/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()
|
D | SemaStmtAttr.cpp | 33 if (isa<SwitchCase>(St)) { in handleFallThroughAttr()
|
D | JumpDiagnostics.cpp | 604 for (SwitchCase *SC = SS->getSwitchCaseList(); SC; in VerifyJumps()
|
/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()
|
D | CodeGenPGO.cpp | 474 void VisitSwitchCase(const SwitchCase *S) { in VisitSwitchCase()
|
D | CoverageMappingGen.cpp | 818 void VisitSwitchCase(const SwitchCase *S) { in VisitSwitchCase()
|
D | CodeGenFunction.cpp | 1107 if (isa<SwitchCase>(S) && !IgnoreCaseStmts) in ContainsLabel()
|
/external/clang/lib/AST/ |
D | Stmt.cpp | 143 else if (const SwitchCase *SC = dyn_cast<SwitchCase>(S)) in stripLabelLikeStatements() 856 Stmt *SwitchCase::getSubStmt() { in getSubStmt()
|
D | ExprConstant.cpp | 3458 const SwitchCase *SC = nullptr); 3463 const SwitchCase *Case = nullptr) { in EvaluateLoopBody() 3502 const SwitchCase *Found = nullptr; in EvaluateSwitch() 3503 for (const SwitchCase *SC = SS->getSwitchCaseList(); SC; in EvaluateSwitch() 3543 const Stmt *S, const SwitchCase *Case) { in EvaluateStmt() 3823 return EvaluateStmt(Result, Info, cast<SwitchCase>(S)->getSubStmt(), Case); in EvaluateStmt()
|
D | StmtProfile.cpp | 96 void StmtProfiler::VisitSwitchCase(const SwitchCase *S) { in VisitSwitchCase()
|
D | ASTImporter.cpp | 5031 SwitchCase *LastChainedSwitchCase = nullptr; in VisitSwitchStmt() 5032 for (SwitchCase *SC = S->getSwitchCaseList(); SC != nullptr; in VisitSwitchStmt() 5034 SwitchCase *ToSC = dyn_cast_or_null<SwitchCase>(Importer.Import(SC)); in VisitSwitchStmt()
|
/external/clang/include/clang/ASTMatchers/ |
D | ASTMatchers.h | 1565 const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchCase> switchCase; 5105 AST_MATCHER_P(SwitchStmt, forEachSwitchCase, internal::Matcher<SwitchCase>, in AST_MATCHER_P() argument 5113 for (const SwitchCase *SC = Node.getSwitchCaseList(); SC; in AST_MATCHER_P()
|
/external/clang/unittests/ASTMatchers/ |
D | ASTMatchersNodeTest.cpp | 1051 TEST(SwitchCase, MatchesCase) { in TEST() argument 1058 TEST(SwitchCase, MatchesSwitch) { in TEST() argument
|
D | ASTMatchersTraversalTest.cpp | 1298 TEST(SwitchCase, MatchesEachCase) { in TEST() argument
|
/external/clang/lib/Serialization/ |
D | ASTWriterStmt.cpp | 90 void ASTStmtWriter::VisitSwitchCase(SwitchCase *S) { in VisitSwitchCase() 150 for (SwitchCase *SC = S->getSwitchCaseList(); SC; in VisitSwitchStmt() 2479 unsigned ASTWriter::RecordSwitchCaseID(SwitchCase *S) { in RecordSwitchCaseID() 2487 unsigned ASTWriter::getSwitchCaseID(SwitchCase *S) { in getSwitchCaseID()
|
D | ASTReaderStmt.cpp | 143 void ASTStmtReader::VisitSwitchCase(SwitchCase *S) { in VisitSwitchCase() 209 SwitchCase *PrevSC = nullptr; in VisitSwitchStmt() 211 SwitchCase *SC = Reader.getSwitchCaseWithID(Record[Idx]); in VisitSwitchStmt()
|
/external/clang/lib/Analysis/ |
D | UninitializedValues.cpp | 654 if (!Label || !isa<SwitchCase>(Label)) in getUninitUse()
|
/external/skia/src/sksl/ |
D | SkSLIRGenerator.cpp | 394 std::vector<std::unique_ptr<SwitchCase>> cases; in convertSwitch() 427 cases.emplace_back(new SwitchCase(c->fPosition, std::move(caseValue), in convertSwitch()
|