[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

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@369387 91177308-0d34-0410-b5e6-96231b3b80d8
2 files changed