This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Support typeHierarchy/resolve for children of parents as well
ClosedPublic

Authored by nridge on Jun 15 2020, 8:19 AM.

Details

Summary

The initial implementation of typeHierarchy/resolve only supported
cases where an initial request was made for children, and then
typeHierarchy/resolve was used to get additional levels of children.

However, a client may also want to make an initial request for
parents, and then show other children of those parents, so support
typeHierarchy/resolve for items returned in response to a request
for parents as well.

Diff Detail

Event Timeline

nridge created this revision.Jun 15 2020, 8:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 15 2020, 8:19 AM
sammccall accepted this revision.Jun 15 2020, 8:32 AM
sammccall added a subscriber: sammccall.
sammccall added inline comments.
clang-tools-extra/clangd/XRefs.cpp
1233

nit: use getSymbolID from AST.h instead

This revision is now accepted and ready to land.Jun 15 2020, 8:32 AM
nridge updated this revision to Diff 270769.Jun 15 2020, 8:56 AM

Address nit

This revision was automatically updated to reflect the committed changes.