Lines Matching defs:Case
1853 /// If Case is non-null, then we are looking for the specified case, checking
1854 /// that nothing we jump over contains labels. If Case is null, then we found
1857 /// If the recursive walk actually finds our Case, then we set FoundCase to
1862 const SwitchCase *Case,
1867 return Case ? CSFC_Success : CSFC_FallThrough;
1872 if (S == Case) {
1879 return CollectStatementsForCase(SC->getSubStmt(), Case, FoundCase,
1885 if (!Case && isa<BreakStmt>(S))
1898 if (Case) {
1906 for (; Case && I != E; ++I) {
1909 switch (CollectStatementsForCase(*I, Case, FoundCase, ResultStmts)) {
1933 // We recursively found Case, so we're not looking for it anymore.
1934 Case = nullptr;
1996 if (Case) {
2023 const SwitchCase *Case = S.getSwitchCaseList();
2026 for (; Case; Case = Case->getNextSwitchCase()) {
2029 if (const DefaultStmt *DS = dyn_cast<DefaultStmt>(Case)) {
2035 const CaseStmt *CS = cast<CaseStmt>(Case);
2046 if (!Case) {
2051 Case = DefaultCase;
2063 ResultCase = Case;
2064 return CollectStatementsForCase(S.getBody(), Case, FoundCase,
2137 const SwitchCase *Case = nullptr;
2139 getContext(), Case)) {
2140 if (Case)
2141 incrementProfileCounter(Case);
2192 for (const SwitchCase *Case = S.getSwitchCaseList();
2193 Case;
2194 Case = Case->getNextSwitchCase()) {
2195 if (isa<DefaultStmt>(Case))
2196 DefaultCount = getProfileCount(Case);