Author |
Topic |
|
Zeblote
Tomato Guru
183 Posts |
Posted - Oct 05 2018 : 1:46:26 PM
|
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
|
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 |
|
|
Zeblote
Tomato Guru
183 Posts |
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
Whole Tomato Software
United Kingdom
19023 Posts |
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. |
zen is the art of being at one with the two'ness |
|
|
Zeblote
Tomato Guru
183 Posts |
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
Whole Tomato Software
United Kingdom
19023 Posts |
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. |
zen is the art of being at one with the two'ness |
|
|
Zeblote
Tomato Guru
183 Posts |
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
Whole Tomato Software
United Kingdom
19023 Posts |
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. |
zen is the art of being at one with the two'ness |
|
|
|
Topic |
|