Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Alt+G does not work on friend operator <<

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
Zeblote Posted - Oct 05 2018 : 1:46:26 PM
Example declaration:



Implementation here:



Alt+G result on operator<<:




VA 2291.5, VS 15.8.6
7   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Oct 08 2018 : 11:03:45 AM
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.
Zeblote Posted - Oct 08 2018 : 09:46:19 AM
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 <<
feline Posted - Oct 08 2018 : 07:54:23 AM
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.
Zeblote Posted - Oct 06 2018 : 10:26:19 AM
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&
feline Posted - Oct 06 2018 : 09:30:09 AM
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.
Zeblote Posted - Oct 06 2018 : 09:06:17 AM
Oof that is quite the low case number, are you planning to improve it soon (or ever)?
feline Posted - Oct 06 2018 : 09:02:56 AM
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

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