Commit Graph

6 Commits

Author SHA1 Message Date
Xi Ge
bc73e4310e Sema: missing switch case fixits should print payload names explicitly instead of printing underscores. rdar://32121806 (#10409) 2017-06-20 14:13:37 -07:00
Xi Ge
b6d753067b FixCode: Add a new line between switch label and the code placeholder. rdar://32121847 (#9576) 2017-05-13 12:21:48 -07:00
Robert Widmann
39494b2ba2 Rearrange test code for exhaustiveness 2017-04-28 02:06:39 -04:00
Xi Ge
b4cf37bf7d Sema: several improvements on missing switch cases diagnostics. (#8026)
1. Make sure the actions taken by fixits are reflected in diagnostics messages.
2. Issue missing cases diagnostics at the start of the switch statement instead of its end.
3. Use <#code#> instead of <#Code#> in the stub.
2017-03-10 19:32:37 -08:00
Xi Ge
8ec3bd3c0a [FixCode] When fixing missing enum elements in a switch statement, print associated payloads as well. (#7899) 2017-03-03 13:07:35 -08:00
Xi Ge
d12d3c18ca FixCode: add a fixit to insert the missing enum element cases in switch statements. (#7759)
This doesn't work on entirely empty switch block because we reject such statement during parsing.
2017-02-24 18:09:30 -08:00