| 57 | } |
| 58 | |
| 59 | void removeEmptyCasesFromSwitch(Switch& _switchStmt) |
| 60 | { |
| 61 | if (hasDefaultCase(_switchStmt)) |
| 62 | return; |
| 63 | |
| 64 | ranges::actions::remove_if( |
| 65 | _switchStmt.cases, |
| 66 | [](Case const& _case) { return _case.body.statements.empty(); } |
| 67 | ); |
| 68 | } |
| 69 | |
| 70 | } |
| 71 |
no test coverage detected