[clangd] Do not report anonymous entities in findExplicitReferences
authorIlya Biryukov <ibiryukov@google.com>
Mon, 28 Oct 2019 13:41:06 +0000 (14:41 +0100)
committerIlya Biryukov <ibiryukov@google.com>
Mon, 28 Oct 2019 13:41:34 +0000 (14:41 +0100)
commit4c430a7c6f6b11105963c6a0ff1e6ee31517a1c8
tree263ad66a70ba9f0481700fdba1cebfb8e11546be
parentf2e93d10fe0c7a845254d35f59f47d439e9ff89b
[clangd] Do not report anonymous entities in findExplicitReferences

Summary:
Otherwise every client dealing with name location should handle
anonymous names in a special manner.

This seems too error-prone, clients can probably handle anonymous
entities they care about differently.

Reviewers: hokein

Reviewed By: hokein

Subscribers: MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D69511
clang-tools-extra/clangd/FindTarget.cpp
clang-tools-extra/clangd/unittests/FindTargetTests.cpp