Currently, this has pretty terrible ergonomics for the fairly common case of switching over an enum which has some entries that are partial. Thanks to Nico Weber for pointing this out!
Thanks,
Erik
Differential D36777
[Sema] Don't emit -Wunguarded-availability for switch cases erik.pilkington on Aug 15 2017, 5:19 PM. Authored by
Details Currently, this has pretty terrible ergonomics for the fairly common case of switching over an enum which has some entries that are partial. Thanks to Nico Weber for pointing this out! Thanks,
Diff Detail Event TimelineComment Actions Thanks! There are two issues that I see:
|
GNU case statements can also have a RHS expression in a range. You should avoid using children completely and just traverse the sub stmt instead.