cquery-project / emacs-cquery

Emacs client for cquery, a low-latency language server supporting multi-million line C++ code-bases
116 stars 14 forks source link

See type hierarchy, finding base/derived methods/classes #18

Closed clearmisp closed 6 years ago

clearmisp commented 6 years ago

The cquery server is able to return info on a types hierarchy (parent type, derived types, expandable tree view), finding base/derived methods/classes and presenting a call tree.

I searched through available Emacs commands and found the function cquery-call-tree which seem to return a call tree for a symbol at point, this works. But I fail to find a way to see a type hierarchy for symbol at point, or finding derived methods etc. Are these not implemented? What is the best way discussing topics like this for emacs lsp using cquery? It doesn't feel right to submit an issue here just to query for basic functionality when there's not an actual bug involved.

jacobdufault commented 6 years ago

@MaskRay

Feel free to hangout in https://gitter.im/cquery-project/Lobby

MaskRay commented 6 years ago

Yes, emacs-cquery has not implemented this feature.

https://github.com/emacs-lsp/lsp-ui/issues/73

MaskRay commented 6 years ago

These hierarchies are now implemented in emacs-cquery.

You may find my config useful https://github.com/MaskRay/Config/blob/master/home/.emacs.d/private/%2Bmy/my-code/packages.el#L243

But a long-term solution is to make the tree view upstreamed to lsp-ui https://github.com/emacs-lsp/lsp-ui/issues/73