[clangd] Fix one testcase in XRefsTests.
authorHaojian Wu <hokein@google.com>
Tue, 20 Aug 2019 14:07:27 +0000 (14:07 +0000)
committerHaojian Wu <hokein@google.com>
Tue, 20 Aug 2019 14:07:27 +0000 (14:07 +0000)
commit0e8e4b09d2ff9eadb196ee402313165934256f9e
treea52193c3cdc0f44397a078969ea58a43a307fcd0
parentf99d254aaec791dfd9dfd8ac9d6a15db1088822a
[clangd] Fix one testcase in XRefsTests.

Summary:
The test didn't test anything actually -- it used "[]" as annotation which should be
"[[]]".

This patch also fixes a bug in XRef where we may return duplicated refs.

Reviewers: ilya-biryukov

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

Tags: #clang

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

llvm-svn: 369387
clang-tools-extra/clangd/XRefs.cpp
clang-tools-extra/clangd/unittests/XRefsTests.cpp