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

Make cquery-member-hierarchy expand 1 level for functions #20

Closed MaskRay closed 6 years ago

MaskRay commented 6 years ago

With https://github.com/cquery-project/cquery/commit/ca7a8a69baff457066199d590a0adccbadc7227a, $cquery/memberHierarchyInitial also works on functions, though all expanded nodes are types, and thus $cquery/memberHierarchyExpand works only on types and the interface does not need changing.

When cquery-member-hierarchy is used on functions, it is more appealing to expand one level.

The screenshot shows that two levels are expanded initially.