[Rider for Unreal] Generate enum class forward declaration as uint8

I have the following enum class defined in header file A:

I want to generate a forward declaration of this enum in header B, which I do like so:

This generates the following forward declaration:

This is technically correct, but can it be made possible to use Unreal's uint8 type instead of unsigned char?

0
5 comments

Hi @...,

This behavior has been changed in Rider 2020.3.1 - could you clarify what version of Rider for Unreal Engine are you using at the moment?

0
Avatar
Permanently deleted user

I can confirm I am using Rider for Unreal Engine 2020.3.1, but it was upgraded from the previous versions (2020.3.0 & 2020.2.?). Could it be a setting that was carried over?

0

Could you check if Rider can resolve uint8 in the forward declaration once you change the unsigned char to uint8 manually?

 

In addition to this, please send us the Rider logs so that we could investigate this further. You can generate the log archive via Help->Collect Logs and send us the archive via Upload Service. Once the upload is complete, please leave a comment with an Upload ID in this thread.

0
Avatar
Permanently deleted user

Hello Kirill,

I changed the unsigned char to an uint8 manually yesterday and it resolves fine:

Oddly enough, when I try to reproduce it (delete forward declaration and regenerate), it will now always generate uint8 for this specific case.

I tried to reproduce it in another file (my project still has plenty of enum forward declarations as unsigned char) by changing the unsigned char to uint8 manually, but if I delete the forward declaration in that file and regenerate it will always get generated as unsigned char.

I did collect logs and upload: 2020_12_02_LxoBPPEbd9qvLH5K

0

Hello Jasper,

 

Thank you for the logs. I've created an issue on the tracker to look into this further. Please upvote and follow the linked issue (using "Watch issue") for further updates.

0

Please sign in to leave a comment.