-
Notifications
You must be signed in to change notification settings - Fork 274
fix outline and breadcumbs for members definition in namespace #660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
e54c4be
to
7f438dc
Compare
Ok, static member variable aren't collected in Also, another bug I just discovered, I haven't looked up in details:
|
6510ae9
to
7f1fc10
Compare
7818055
to
99f0b40
Compare
a33231a
to
cb08df4
Compare
int16_t short_name_size = 0; | ||
SymbolKind kind = SymbolKind::Unknown; | ||
SymbolKind parent_kind = SymbolKind::Unknown; | ||
SymbolIdx parent = {0, Kind::Invalid}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this increase memory usage?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, certainly, I haven't done measures. But I am working on another idea which doesn't introduce new things to the index and seems simpler and cleaner.
ee29996
to
feb153a
Compare
Thanks for this patch and the alternative:) Merged the alternative |
When we have members defined outside the class in a namespace in a separate file, the namespace doesn't have the members as children. The outline and breadcrumbs don't work correctly for them.


Before:
After:
I also refactored a little by removing
void*
and replacing it withif constexpr
see the first commit if it suits your requirements.There are other bugs with outline that I noticed which I am working on: