[clangd] Deduplicate query scopes.
authorEric Liu <ioeric@google.com>
Tue, 6 Nov 2018 11:17:40 +0000 (11:17 +0000)
committerEric Liu <ioeric@google.com>
Tue, 6 Nov 2018 11:17:40 +0000 (11:17 +0000)
commitabbd713eb7417f3638541b75b8aff051d2f48377
tree9b2d340627ba164821bbfa22a439390655049f00
parentb04869a4aa42a7716a552daa0caa53282233628b
[clangd] Deduplicate query scopes.

Summary:
For example, when anonymous namespace is present, duplicated namespaces might be
generated for the enclosing namespace.

Reviewers: ilya-biryukov

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

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

llvm-svn: 346224
clang-tools-extra/clangd/CodeComplete.cpp
clang-tools-extra/unittests/clangd/CodeCompleteTests.cpp