Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Problems with parsing bit fields
 New Topic  Reply to Topic
 Printer Friendly
Author  Topic Next Topic  

tomob
New Member

Poland
9 Posts

Posted - Nov 25 2024 :  3:43:11 PM  Show Profile  Reply with Quote
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
   Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000