Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 How to view method accessibility efficiently?

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
madturtle84 Posted - Oct 14 2021 : 12:37:14 AM
Is there a way to know if a method is public or private from a .cpp file?

I know I can GOTO header file, but access specifiers in UE4 are all over the places and headers over 1000 lines is very common. It's a chore to scroll and find the matching specifier.
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Oct 14 2021 : 07:31:00 AM
We are considering adding this information:

case=70906

for now though, if you jump to the header file, simply place the keyboard caret into the function name and look at VA's navigation bar, the definition field, which is the right hand side of the bar. This bar is where the Alt-M list appears from.

The icon at the start of the definition field will tell you the access level. The empty cube icon with no modification means it is a public method. If there is * added to the icon then it is a protected method. If there is a padlock added to the icon then it is a private method. So you can check without having to locate the scope block in the file.

Another tool that can help is VA Outline. When you show this it should scroll to make sure the current function / position in the file is visible, and it will be shown in Bold. The public, protected and private scopes are shown as nodes in the class, so you can see which node the current function sits under.

https://docs.wholetomato.com/default.asp?W187

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