Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Problems with parsing bit fields

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
tomob Posted - Nov 25 2024 : 3:43:11 PM
Hi,

I found that Visual Assist has problems with autocompleting fields of a struct if it contains bit fields. In my case it autocompletes only the fields that are set as bitfields and misses every other field in a struct.

Here's an example:

struct FJournalSection
{
	uint32 Magic;
	uint32 Version : 30;
	uint32 Priority : 2;
	uint32 Hash;
	uint32 Offset;
	uint32 Size;
};

FJournalSection FirstSection = ReadSection();

int32 SectionSize = FirstSection.Size;



At the time when I type in "FirstSection." I would expect VAX to show me all the fields from the FJournalSection, but instead it shows only Version and Priority. If I set Hash to be a bit field as well then it shows the three bit fields: Version, Priority and Hash.

However it doesn't have problems navigating to fields that are not bit-fields.
For what it's worth this is an Unreal Engine project solution.

My version is 10.9.2537.0 built 2024.10.27

Regards,
Tomek

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