[Clangd] textDocument/definition and textDocument/declaration "bounce" between defini...
authorSam McCall <sam.mccall@gmail.com>
Sat, 2 Feb 2019 05:56:00 +0000 (05:56 +0000)
committerSam McCall <sam.mccall@gmail.com>
Sat, 2 Feb 2019 05:56:00 +0000 (05:56 +0000)
commit0dbab7fecae585b024bf32acf13ec6765c87c39f
treeb3b1075a2cd729eee4a6937f5b8b7dfd71df6a5d
parentfa3654008be8738853db0e8f212776fae930fff9
[Clangd] textDocument/definition and textDocument/declaration "bounce" between definition and declaration location when they are distinct.

Summary:
This helps minimize the disruption of not returning declarations as part of
a find-definition response (r352864).

Reviewers: hokein

Subscribers: ioeric, MaskRay, jkorous, arphaman, kadircet, ilya-biryukov

Tags: #clang

Differential Revision: https://reviews.llvm.org/D57580

llvm-svn: 352953
clang-tools-extra/clangd/ClangdLSPServer.cpp
clang-tools-extra/test/clangd/xrefs.test