Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Add missing case statements - enum struct

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
youaresoomean 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!
3   L A T E S T    R E P L I E S    (Newest First)
feline 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.
youaresoomean 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 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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000