[clangd] Boost completion score according to file proximity.
authorEric Liu <ioeric@google.com>
Fri, 15 Jun 2018 08:58:12 +0000 (08:58 +0000)
committerEric Liu <ioeric@google.com>
Fri, 15 Jun 2018 08:58:12 +0000 (08:58 +0000)
commit09c3c37b72f0fa7629e089e31e727448a032132f
tree19b4303d3e1bac95309f369a9fa3a1307f24d477
parent13e503f68a0ec42807c46aa76540b3eb06450b9d
[clangd] Boost completion score according to file proximity.

Summary:
Also move unittest: URI scheme to TestFS so that it can be shared by
different tests.

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: ilya-biryukov, MaskRay, jkorous, cfe-commits

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

llvm-svn: 334810
clang-tools-extra/clangd/CodeComplete.cpp
clang-tools-extra/clangd/Quality.cpp
clang-tools-extra/clangd/Quality.h
clang-tools-extra/unittests/clangd/QualityTests.cpp