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
 How to view method accessibility efficiently?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

madturtle84
New Member

3 Posts

Posted - Oct 14 2021 :  12:37:14 AM  Show Profile  Reply with Quote
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.

Edited by - madturtle84 on Oct 14 2021 12:41:18 AM

feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - Oct 14 2021 :  07:31:00 AM  Show Profile  Reply with Quote
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

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