Private/Public information in a Structure view of CPP file

Answered

When in .cpp file, is there a way to see, which methods are private and which are public when using Structure view? All methods show up as letter f in a red box; regardless of their private/public definition in .h file.

0
5 comments
Avatar
Permanently deleted user

Dejan,

that information is presented by icons. See the icons reference here: https://www.jetbrains.com/help/clion/2016.3/symbols.html

0
Avatar
Permanently deleted user

@Renat Makhkamov

Yes, but unfortunately icons for visibility modifiers are shown only when you have .H file opened. When I open .CPP file I do not see any visibility modifier icons.

0
Avatar
Permanently deleted user

Dejan,

I see, that is usability issue.. So, you can submit an issue here: https://youtrack.jetbrains.com/issues/CPP . 

Thank you for your message.

0

Yes, it seems the visibility modifiers (access specifiers) are only shown for the declaration file (.h) and not for the definition (.cpp) file. It would be helpful if there shown when viewing the definition file as well.

Even stranger, const isn't shown either for source files even though const is in the source. So the structure shows a "Function" rather than a "Const Function".

Icons for reference - https://www.jetbrains.com/help/clion/symbols.html

Thanks!

dave

0

I see that @Dejan did create an youtrack for this - https://youtrack.jetbrains.com/issue/CPP-9079.

I created https://youtrack.jetbrains.com/issue/CPP-14988 for the const aspect.

 

0

Please sign in to leave a comment.