/external/llvm-project/flang/lib/Semantics/ |
D | check-case.cpp | 43 const auto &stmt{std::get<parser::Statement<parser::CaseStmt>>(c.t)}; in AddCase() 44 const parser::CaseStmt &caseStmt{stmt.statement}; in AddCase() 127 explicit Case(const parser::Statement<parser::CaseStmt> &s) : stmt{s} {} in Case() 150 const parser::Statement<parser::CaseStmt> &stmt;
|
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/ |
D | PopulateSwitch.cpp | 157 const CaseStmt *CS = cast<CaseStmt>(CaseList); in REGISTER_TWEAK()
|
/external/llvm-project/clang/lib/AST/ |
D | Stmt.cpp | 1197 CaseStmt *CaseStmt::Create(const ASTContext &Ctx, Expr *lhs, Expr *rhs, in Create() 1204 alignof(CaseStmt)); in Create() 1205 return new (Mem) CaseStmt(lhs, rhs, caseLoc, ellipsisLoc, colonLoc); in Create() 1208 CaseStmt *CaseStmt::CreateEmpty(const ASTContext &Ctx, in CreateEmpty() 1213 alignof(CaseStmt)); in CreateEmpty() 1214 return new (Mem) CaseStmt(EmptyShell(), CaseStmtIsGNURange); in CreateEmpty()
|
/external/clang/lib/Sema/ |
D | JumpDiagnostics.cpp | 556 if (CaseStmt *CS = dyn_cast<CaseStmt>(SubStmt)) in BuildScopeInformation() 609 if (CaseStmt *CS = dyn_cast<CaseStmt>(SC)) in VerifyJumps()
|
D | SemaStmt.cpp | 431 CaseStmt *CS = new (Context) in ActOnCaseStmt() 432 CaseStmt(LHS.get(), RHS.get(), CaseLoc, DotDotDotLoc, ColonLoc); in ActOnCaseStmt() 441 CaseStmt *CS = static_cast<CaseStmt*>(caseStmt); in ActOnCaseStmtBody() 552 bool operator()(const std::pair<llvm::APSInt, CaseStmt*> &LHS, in operator ()() 556 bool operator()(const std::pair<llvm::APSInt, CaseStmt*> &LHS, in operator ()() 557 const std::pair<llvm::APSInt, CaseStmt*> &RHS) { in operator ()() 561 const std::pair<llvm::APSInt, CaseStmt*> &RHS) { in operator ()() 569 static bool CmpCaseVals(const std::pair<llvm::APSInt, CaseStmt*>& lhs, in CmpCaseVals() 570 const std::pair<llvm::APSInt, CaseStmt*>& rhs) { in CmpCaseVals() 801 typedef SmallVector<std::pair<llvm::APSInt, CaseStmt*>, 64> CaseValsTy; in ActOnFinishSwitchStmt() [all …]
|
/external/llvm-project/flang/include/flang/Lower/ |
D | PFTBuilder.h | 117 parser::EndBlockStmt, parser::SelectCaseStmt, parser::CaseStmt, 155 A, std::tuple<parser::CaseStmt, parser::ElseIfStmt, parser::ElseStmt, 160 A, std::tuple<parser::EndAssociateStmt, parser::CaseStmt,
|
/external/clang/lib/CodeGen/ |
D | CGStmt.cpp | 314 case Stmt::CaseStmtClass: EmitCaseStmt(cast<CaseStmt>(*S)); break; in EmitSimpleStmt() 1102 void CodeGenFunction::EmitCaseStmtRange(const CaseStmt &S) { in EmitCaseStmtRange() 1180 void CodeGenFunction::EmitCaseStmt(const CaseStmt &S) { in EmitCaseStmt() 1239 const CaseStmt *CurCase = &S; in EmitCaseStmt() 1240 const CaseStmt *NextCase = dyn_cast<CaseStmt>(S.getSubStmt()); in EmitCaseStmt() 1256 NextCase = dyn_cast<CaseStmt>(CurCase->getSubStmt()); in EmitCaseStmt() 1442 const CaseStmt *CS = cast<CaseStmt>(Case); in FindCaseStatementsForValue()
|
D | CodeGenPGO.cpp | 87 CaseStmt, enumerator 176 return PGOHash::CaseStmt; in getHashType()
|
/external/clang/include/clang/AST/ |
D | Stmt.h | 689 class CaseStmt : public SwitchCase { 695 CaseStmt(Expr *lhs, Expr *rhs, SourceLocation caseLoc, in CaseStmt() function 705 explicit CaseStmt(EmptyShell Empty) : SwitchCase(CaseStmtClass, Empty) { } in CaseStmt() function 733 const CaseStmt *CS = this; in getLocEnd() 734 while (const CaseStmt *CS2 = dyn_cast<CaseStmt>(CS->getSubStmt())) in getLocEnd() 781 if (const CaseStmt *CS = dyn_cast<CaseStmt>(this)) in getLocEnd()
|
/external/llvm-project/clang/include/clang/AST/ |
D | Stmt.h | 272 friend class CaseStmt; variable 1566 class CaseStmt final 1568 private llvm::TrailingObjects<CaseStmt, Stmt *, SourceLocation> { 1603 CaseStmt(Expr *lhs, Expr *rhs, SourceLocation caseLoc, in CaseStmt() function 1618 explicit CaseStmt(EmptyShell Empty, bool CaseStmtIsGNURange) in CaseStmt() function 1625 static CaseStmt *Create(const ASTContext &Ctx, Expr *lhs, Expr *rhs, 1630 static CaseStmt *CreateEmpty(const ASTContext &Ctx, bool CaseStmtIsGNURange); 1697 const CaseStmt *CS = this; in getEndLoc() 1698 while (const auto *CS2 = dyn_cast<CaseStmt>(CS->getSubStmt())) in getEndLoc() 1758 if (const auto *CS = dyn_cast<CaseStmt>(this)) in getEndLoc() [all …]
|
D | TextNodeDumper.h | 247 void VisitCaseStmt(const CaseStmt *Node);
|
D | JSONNodeDumper.h | 311 void VisitCaseStmt(const CaseStmt *CS);
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CGStmt.cpp | 407 EmitCaseStmt(cast<CaseStmt>(*S), Attrs); in EmitSimpleStmt() 1280 void CodeGenFunction::EmitCaseStmtRange(const CaseStmt &S, in EmitCaseStmtRange() 1365 void CodeGenFunction::EmitCaseStmt(const CaseStmt &S, in EmitCaseStmt() 1431 const CaseStmt *CurCase = &S; in EmitCaseStmt() 1432 const CaseStmt *NextCase = dyn_cast<CaseStmt>(S.getSubStmt()); in EmitCaseStmt() 1452 NextCase = dyn_cast<CaseStmt>(CurCase->getSubStmt()); in EmitCaseStmt() 1679 const CaseStmt *CS = cast<CaseStmt>(Case); in FindCaseStatementsForValue()
|
D | CodeGenPGO.cpp | 99 CaseStmt, enumerator 275 return PGOHash::CaseStmt; in DEFINE_NESTABLE_TRAVERSAL()
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaStmt.cpp | 510 auto *CS = CaseStmt::Create(Context, LHSVal.get(), RHSVal.get(), in ActOnCaseStmt() 518 cast<CaseStmt>(S)->setSubStmt(SubStmt); in ActOnCaseStmtBody() 652 bool operator()(const std::pair<llvm::APSInt, CaseStmt*> &LHS, in operator ()() 656 bool operator()(const std::pair<llvm::APSInt, CaseStmt*> &LHS, in operator ()() 657 const std::pair<llvm::APSInt, CaseStmt*> &RHS) { in operator ()() 661 const std::pair<llvm::APSInt, CaseStmt*> &RHS) { in operator ()() 669 static bool CmpCaseVals(const std::pair<llvm::APSInt, CaseStmt*>& lhs, in CmpCaseVals() 670 const std::pair<llvm::APSInt, CaseStmt*>& rhs) { in CmpCaseVals() 944 typedef SmallVector<std::pair<llvm::APSInt, CaseStmt*>, 64> CaseValsTy; in ActOnFinishSwitchStmt() 948 typedef std::vector<std::pair<llvm::APSInt, CaseStmt*> > CaseRangesTy; in ActOnFinishSwitchStmt() [all …]
|
D | JumpDiagnostics.cpp | 662 if (CaseStmt *CS = dyn_cast<CaseStmt>(SC)) in VerifyJumps()
|
/external/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | CoreEngine.h | 548 const CaseStmt *getCase() const { in getCase() 549 return cast<CaseStmt>((*I)->getLabel()); in getCase()
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | CoreEngine.h | 516 const CaseStmt *getCase() const { in getCase() 517 return cast<CaseStmt>((*I)->getLabel()); in getCase()
|
/external/llvm-project/clang/lib/Analysis/ |
D | ProgramPoint.cpp | 154 if (const auto *C = dyn_cast<CaseStmt>(Label)) { in printJson()
|
D | CFG.cpp | 548 CFGBlock *VisitCaseStmt(CaseStmt *C); 2167 return VisitCaseStmt(cast<CaseStmt>(S)); in Visit() 4157 const CaseStmt *CS, in shouldAddCase() 4191 CFGBlock *CFGBuilder::VisitCaseStmt(CaseStmt *CS) { in VisitCaseStmt() 4200 while (isa<CaseStmt>(Sub)) { in VisitCaseStmt() 4215 CS = cast<CaseStmt>(Sub); in VisitCaseStmt() 5097 if (!L || !isa<CaseStmt>(L)) in FilterEdge() 5641 else if (CaseStmt *C = dyn_cast<CaseStmt>(Label)) { in print_block()
|
/external/llvm-project/flang/lib/Parser/ |
D | executable-parsers.cpp | 330 unambiguousStatement(Parser<CaseStmt>{}), block)), 341 construct<CaseStmt>("CASE" >> Parser<CaseSelector>{}, maybe(name)))
|
/external/clang/lib/Analysis/ |
D | CFG.cpp | 433 CFGBlock *VisitCaseStmt(CaseStmt *C); 1466 return VisitCaseStmt(cast<CaseStmt>(S)); in Visit() 3183 const CaseStmt *CS, in shouldAddCase() 3217 CFGBlock *CFGBuilder::VisitCaseStmt(CaseStmt *CS) { in VisitCaseStmt() 3226 while (isa<CaseStmt>(Sub)) { in VisitCaseStmt() 3241 CS = cast<CaseStmt>(Sub); in VisitCaseStmt() 3981 if (!L || !isa<CaseStmt>(L)) in FilterEdge() 4369 else if (CaseStmt *C = dyn_cast<CaseStmt>(Label)) { in print_block()
|
/external/clang/include/clang/Basic/ |
D | StmtNodes.td | 28 def CaseStmt : DStmt<SwitchCase>;
|
/external/clang/lib/AST/ |
D | Stmt.cpp | 857 if (isa<CaseStmt>(this)) in getSubStmt() 858 return cast<CaseStmt>(this)->getSubStmt(); in getSubStmt()
|
/external/llvm-project/clang/include/clang/Basic/ |
D | StmtNodes.td | 24 def CaseStmt : StmtNode<SwitchCase>;
|