This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Handle templates more consistently in type hierarchy
ClosedPublic

Authored by nridge on Aug 31 2020, 12:02 AM.

Details

Summary

If the tree includes types derived from all specializations of
a template, do not misleadingly label the root node with the
name of a single specialization.

Fixes https://github.com/clangd/clangd/issues/507

Diff Detail

Event Timeline

nridge created this revision.Aug 31 2020, 12:02 AM
nridge requested review of this revision.Aug 31 2020, 12:02 AM
hokein added a comment.Sep 1 2020, 7:43 AM

thanks, the current behavior looks nicer than before.

IIUC, you're mostly fixing the issues mentioned in https://github.com/clangd/vscode-clangd/pull/44#issuecomment-669092168. If it just contains two fixes (this, and https://reviews.llvm.org/D86424), I think it might make sense to cherry-pick in release 11.

hokein accepted this revision.Sep 1 2020, 7:43 AM
This revision is now accepted and ready to land.Sep 1 2020, 7:43 AM
nridge added a comment.Sep 1 2020, 9:39 AM

IIUC, you're mostly fixing the issues mentioned in https://github.com/clangd/vscode-clangd/pull/44#issuecomment-669092168. If it just contains two fixes (this, and https://reviews.llvm.org/D86424), I think it might make sense to cherry-pick in release 11.

There is also https://github.com/clangd/clangd/issues/510, and there may be other issues I haven't identified yet.

This revision was landed with ongoing or failed builds.Sep 1 2020, 4:19 PM
This revision was automatically updated to reflect the committed changes.