vim-ccls
vim-ccls copied to clipboard
Add call hierarchy for member variables, enums and so on, like what eclipse does
May be it can be done like this:
- get all reference
- get functions in the references
- get function hierarchy
Since step 1 and step 3 are already available, only step 2 need some work to finish.
Hi @simonjoylet! Could you please show an example of what type of result you would like for step 2? (Maybe a screenshot from Eclipse showing the feature you desire).
@m-pilia Thank you for reply. I post an example of leveldb code. Eclipse showed the call hierarchy of member
start
of struct range
in db.h
Thanks for the information @simonjoylet. The hierarchy can be improved and I will look into this.
This would be an extremely good feature. I really hope it will be implemented.
So, something as this:
- I place cursor on any symbol.
- I press a key.
- A treeview popup appears, showing all of the references of this symbol, grouped in functions where those symbols are referenced.
- Optionally, with a setting, those function groups could also be grouped in the functions which call them, recursively (so one would expect the final root symbol to be
main
).