Lines Matching refs:Case
1413 /// If Case is non-null, then we are looking for the specified case, checking
1414 /// that nothing we jump over contains labels. If Case is null, then we found
1417 /// If the recursive walk actually finds our Case, then we set FoundCase to
1422 const SwitchCase *Case,
1427 return Case ? CSFC_Success : CSFC_FallThrough;
1432 if (S == Case) {
1439 return CollectStatementsForCase(SC->getSubStmt(), Case, FoundCase,
1445 if (!Case && isa<BreakStmt>(S))
1458 if (Case) {
1466 for (; Case && I != E; ++I) {
1469 switch (CollectStatementsForCase(*I, Case, FoundCase, ResultStmts)) {
1493 // We recursively found Case, so we're not looking for it anymore.
1494 Case = nullptr;
1556 if (Case) {
1583 const SwitchCase *Case = S.getSwitchCaseList();
1586 for (; Case; Case = Case->getNextSwitchCase()) {
1589 if (const DefaultStmt *DS = dyn_cast<DefaultStmt>(Case)) {
1595 const CaseStmt *CS = cast<CaseStmt>(Case);
1606 if (!Case) {
1611 Case = DefaultCase;
1623 ResultCase = Case;
1624 return CollectStatementsForCase(S.getBody(), Case, FoundCase,
1640 const SwitchCase *Case = nullptr;
1642 getContext(), Case)) {
1643 if (Case)
1644 incrementProfileCounter(Case);
1695 for (const SwitchCase *Case = S.getSwitchCaseList();
1696 Case;
1697 Case = Case->getNextSwitchCase()) {
1698 if (isa<DefaultStmt>(Case))
1699 DefaultCount = getProfileCount(Case);