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
 Alt+G does not work on friend operator <<
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Zeblote
Tomato Guru

183 Posts

Posted - Oct 05 2018 :  1:46:26 PM  Show Profile  Reply with Quote
Example declaration:



Implementation here:



Alt+G result on operator<<:




VA 2291.5, VS 15.8.6

feline
Whole Tomato Software

United Kingdom
19023 Posts

Posted - Oct 06 2018 :  09:02:56 AM  Show Profile  Reply with Quote
Thank you for the clear example. Unfortunately this is a known problem still. I have added this example to the bug report for alt-g on operator functions:

case=4281

zen is the art of being at one with the two'ness
Go to Top of Page

Zeblote
Tomato Guru

183 Posts

Posted - Oct 06 2018 :  09:06:17 AM  Show Profile  Reply with Quote
Oof that is quite the low case number, are you planning to improve it soon (or ever)?
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19023 Posts

Posted - Oct 06 2018 :  09:30:09 AM  Show Profile  Reply with Quote
It's on the list, but until now no one else has reported this since the case was raised, so hardly high priority. It seems that friend operator functions are something most people don't use. The fact that this is coming up in Unreal may help to raise the priority, once we have a better general handle on Unreal.

zen is the art of being at one with the two'ness
Go to Top of Page

Zeblote
Tomato Guru

183 Posts

Posted - Oct 06 2018 :  10:26:19 AM  Show Profile  Reply with Quote
It's used pretty often in unreal, it's the standard way to make a manual serializer for a struct.

What would also be very useful is, if placing the cursor here:



and then using alt+g could take me here:



Right now the only way to find this definition is to use full text search for something like this:

operator<<(FArchive& Ar, FPackedNormal&
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19023 Posts

Posted - Oct 08 2018 :  07:54:23 AM  Show Profile  Reply with Quote
Doing a find, there are indeed quite a few friend functions in unreal. So I have put in a feature request to filter the Find Symbol dialog to only show friend functions / classes. This would let you quickly search for and narrow down the function you are looking for:

case=119870

For now, when you are looking for the friend functions, have you tried jumping to the FArchive class definition and searching for "friend"? This should be fairly fast and efficient, if you know the class being operated on.

zen is the art of being at one with the two'ness
Go to Top of Page

Zeblote
Tomato Guru

183 Posts

Posted - Oct 08 2018 :  09:46:19 AM  Show Profile  Reply with Quote
Unfortunately that doesn't work for most of these, since they are all declared/defined from outside FArchive.

For example, the FPackedNormal one is declared in PackedNormal.h and defined in RenderUtils.cpp (but why?)
Find Symbol actually does not show this method at all currently, even if I search for just <<
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19023 Posts

Posted - Oct 08 2018 :  11:03:45 AM  Show Profile  Reply with Quote
I didn't realize these functions weren't showing up. I have put a note onto the filtering the Find Symbol dialog about this, since it seems to be the place to note this problem.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic 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