Add a tweak that populates an empty switch statement of an enumeration type with all of the enumerators of that type.
Before:
enum Color { RED, GREEN, BLUE };
void f(Color color) {
switch (color) {}
}After:
enum Color { RED, GREEN, BLUE };
void f(Color color) {
switch (color) {
case RED:
case GREEN:
case BLUE:
break;
}
}
while it's uncommon, there can be stuff other than cases in a switch stmt.
Maybe we simply want to bail out if the body is nonempty?