Home | History | Annotate | Download | only in AST

Lines Matching defs:SwitchCase

647 // SwitchCase is the base class for CaseStmt and DefaultStmt,
648 class SwitchCase : public Stmt {
652 SwitchCase *NextSwitchCase;
656 SwitchCase(StmtClass SC, SourceLocation KWLoc, SourceLocation ColonLoc)
660 SwitchCase(StmtClass SC, EmptyShell)
664 const SwitchCase *getNextSwitchCase() const { return NextSwitchCase; }
666 SwitchCase *getNextSwitchCase() { return NextSwitchCase; }
668 void setNextSwitchCase(SwitchCase *SC) { NextSwitchCase = SC; }
677 return const_cast<SwitchCase*>(this)->getSubStmt();
689 class CaseStmt : public SwitchCase {
697 : SwitchCase(CaseStmtClass, caseLoc, colonLoc) {
705 explicit CaseStmt(EmptyShell Empty) : SwitchCase(CaseStmtClass, Empty) { }
750 class DefaultStmt : public SwitchCase {
754 SwitchCase(DefaultStmtClass, DL, CL), SubStmt(substmt) {}
758 : SwitchCase(DefaultStmtClass, Empty) { }
780 inline SourceLocation SwitchCase::getLocEnd() const {
965 llvm::PointerIntPair<SwitchCase *, 1, bool> FirstCase;
996 const SwitchCase *getSwitchCaseList() const { return FirstCase.getPointer(); }
1002 SwitchCase *getSwitchCaseList() { return FirstCase.getPointer(); }
1005 void setSwitchCaseList(SwitchCase *SC) { FirstCase.setPointer(SC); }
1014 void addSwitchCase(SwitchCase *SC) {