Anything similar to -Wswitch-enum for Swift?

I think, if I'm understanding the behavior of -Wswitch-enum correctly, that the request here is similar to this topic: that is, the goal is to warn if the default is covering actual known cases. Effectively, if exhaustive switching is possible, then it must be done explicitly, with all known cases listed out.

1 Like