This is an archive of the discontinued LLVM Phabricator instance.

[clangd] XRef C++ API returns structure results, NFC
Changes PlannedPublic

Authored by hokein on Oct 12 2018, 3:11 AM.

Details

Reviewers
sammccall
Summary

The representation of references in LSP is limitted (just location
information). This patch makes our xref C++ API return structured results,
which allows other clients get more data for references.

Event Timeline

hokein created this revision.Oct 12 2018, 3:11 AM
hokein planned changes to this revision.Oct 12 2018, 4:00 AM

As discussed offline, we don't have a clear motivation to do it now, and LSP will likely introduce a new References type of xrefs (https://github.com/Microsoft/language-server-protocol/issues/396), so I'll leave this patch opened.