Home | History | Annotate | Download | only in AST

Lines Matching defs:SwitchCase

635 // SwitchCase is the base class for CaseStmt and DefaultStmt,
636 class SwitchCase : public Stmt {
640 SwitchCase *NextSwitchCase;
644 SwitchCase(StmtClass SC, SourceLocation KWLoc, SourceLocation ColonLoc)
648 SwitchCase(StmtClass SC, EmptyShell)
652 const SwitchCase *getNextSwitchCase() const { return NextSwitchCase; }
654 SwitchCase *getNextSwitchCase() { return NextSwitchCase; }
656 void setNextSwitchCase(SwitchCase *SC) { NextSwitchCase = SC; }
665 return const_cast<SwitchCase*>(this)->getSubStmt();
677 class CaseStmt : public SwitchCase {
685 : SwitchCase(CaseStmtClass, caseLoc, colonLoc) {
693 explicit CaseStmt(EmptyShell Empty) : SwitchCase(CaseStmtClass, Empty) { }
738 class DefaultStmt : public SwitchCase {
742 SwitchCase(DefaultStmtClass, DL, CL), SubStmt(substmt) {}
746 : SwitchCase(DefaultStmtClass, Empty) { }
768 inline SourceLocation SwitchCase::getLocEnd() const {
946 llvm::PointerIntPair<SwitchCase *, 1, bool> FirstCase;
974 const SwitchCase *getSwitchCaseList() const { return FirstCase.getPointer(); }
980 SwitchCase *getSwitchCaseList() { return FirstCase.getPointer(); }
983 void setSwitchCaseList(SwitchCase *SC) { FirstCase.setPointer(SC); }
992 void addSwitchCase(SwitchCase *SC) {