vim-ccls icon indicating copy to clipboard operation
vim-ccls copied to clipboard

Add call hierarchy for member variables, enums and so on, like what eclipse does

Open simonjoylet opened this issue 3 years ago • 5 comments

simonjoylet avatar Nov 10 '20 07:11 simonjoylet

May be it can be done like this:

  1. get all reference
  2. get functions in the references
  3. get function hierarchy

Since step 1 and step 3 are already available, only step 2 need some work to finish.

simonjoylet avatar Nov 11 '20 02:11 simonjoylet

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 avatar Nov 14 '20 11:11 m-pilia

image @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

simonjoylet avatar Nov 15 '20 02:11 simonjoylet

Thanks for the information @simonjoylet. The hierarchy can be improved and I will look into this.

m-pilia avatar Nov 21 '20 11:11 m-pilia

This would be an extremely good feature. I really hope it will be implemented.

So, something as this:

  1. I place cursor on any symbol.
  2. I press a key.
  3. A treeview popup appears, showing all of the references of this symbol, grouped in functions where those symbols are referenced.
  4. 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).

pidgeon777 avatar Apr 08 '22 07:04 pidgeon777