This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Implement textDocument/implementation (Xref layer)
ClosedPublic

Authored by usaxena95 on Nov 18 2020, 5:54 AM.

Details

Summary

Implements textdocument/implementation (https://microsoft.github.io/language-server-protocol/specification#textDocument_implementation)

There is no clear semantic in LSP, but VSCode has some documentation about the behaviour: "For an interface, this shows all the implementors of that interface and for abstract methods, this shows all concrete implementations of that method."

This currently shows all concrete methods that overrides a virtual function.

Diff Detail

Event Timeline

usaxena95 created this revision.Nov 18 2020, 5:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 18 2020, 5:54 AM
usaxena95 requested review of this revision.Nov 18 2020, 5:54 AM
usaxena95 abandoned this revision.Nov 18 2020, 5:55 AM
usaxena95 updated this revision to Diff 306114.Nov 18 2020, 8:02 AM

Addressed comments.

usaxena95 removed a project: Restricted Project.Nov 18 2020, 8:02 AM
usaxena95 removed subscribers: arphaman, kadircet, ilya-biryukov and 2 others.
Herald added a project: Restricted Project. · View Herald TranscriptNov 18 2020, 8:02 AM
This revision was not accepted when it landed; it landed in state Needs Review.Nov 18 2020, 8:16 AM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
thakis added a subscriber: thakis.Nov 18 2020, 8:38 AM

The test seems to crash everywhere: http://45.33.8.238/linux/33205/step_9.txt http://45.33.8.238/win/28127/step_9.txt

Please revert, then investigate.

Also, it looks (at least on phab) like it wasn't reviewed (?)

usaxena95 added a comment.EditedNov 18 2020, 8:54 AM

This was reviewed in https://reviews.llvm.org/D91626
Somehow phabricator attached the commit to this old patch.
I tried to address the failures. Are you seeing failures at the HEAD ?

I will revert this commit and investigate. Sorry for the trouble.