Author |
Topic  |
|
youaresoomean
New Member

2 Posts |
Posted - Jul 13 2020 : 04:33:07 AM
|
Hi,
seems "Add Missing case Statements" only works for enum class, for enum struct, the scope is missing in generated code.
Any chance this might be fixed in a future release?
Thanks alot! |
|
feline
Whole Tomato Software
    
United Kingdom
19137 Posts |
Posted - Jul 13 2020 : 08:51:33 AM
|
You are quite right, I had not thought to test this case, but the bug is easy to see when you check it:
case=142461
Do you use "enum struct" often in your code? This is the first time I think any of our users have mentioned doing this. |
zen is the art of being at one with the two'ness |
 |
|
youaresoomean
New Member

2 Posts |
Posted - Jul 13 2020 : 10:23:24 AM
|
Yes, i use "enum struct" all the time - but i suspect i am a minority. Since enum classes are still POD types i dont like to use "class" with them :) |
 |
|
feline
Whole Tomato Software
    
United Kingdom
19137 Posts |
Posted - Jul 14 2020 : 05:33:31 AM
|
POD types? I don't recognise this term, but an enum class seemed strange to me the first time I came across it, since enum and class seemed rather different concepts.
For now, if you have VA Suggestions enabled, then typing "case " inside your switch statement should produce a VA suggestion for the fully qualified enum struct, allowing you to quickly filter down to the one you want.
Not the same, but hopefully helpful for now. Especially since the refactoring will fill in the missing case lines for you, so you can see which lines you want to update. |
zen is the art of being at one with the two'ness |
 |
|
|
Topic  |
|