Open Bug 1549849 Opened 6 years ago Updated 10 months ago

Add a way to see at a glance the visibility (public, private, protected) of class members

Categories

(Webtools :: Searchfox, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

People

(Reporter: ng, Unassigned)

References

Details

When traversing the tree in searchfox I often find myself having to scroll and scan the code to figure out the visibility of member functions in C++ classes. It would be great if this information was available at a glance. I would consider this a real value add over reading through the code in an editor.

Are you looking at .h files or .cpp files? For .h files bug 1533802 is introducing some machinery that would be useful for this. If you're looking at function bodies in .cpp files then we could cook up something else maybe.

I was thinking both. Having the info in the CPP would save me from navigating away, then scrolling around and losing mental context. C++ is not great when it comes to providing lexical-local context. While I am not trying to introduce scope creep, other examples include the virtual-ness of a member function , the default parameter values for a function, and namespace, and whether or not it is in an extern block.

You need to log in before you can comment on or make changes to this bug.