[clangd] Incorporate #occurrences in scoring code complete results.
authorSam McCall <sam.mccall@gmail.com>
Thu, 3 May 2018 14:53:02 +0000 (14:53 +0000)
committerSam McCall <sam.mccall@gmail.com>
Thu, 3 May 2018 14:53:02 +0000 (14:53 +0000)
commitdc8abc45d236a3cbfb493cdf2b69a5c2fe8c33c5
tree0b87e9ffcdf1d89d8fb142bea5b740c9fa2ac3f5
parent8d4bc72788507654a2695a960ddb41711cf445af
[clangd] Incorporate #occurrences in scoring code complete results.

Summary: needs tests

Reviewers: ilya-biryukov

Subscribers: klimek, ioeric, MaskRay, jkorous, cfe-commits

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

llvm-svn: 331457
clang-tools-extra/clangd/CodeComplete.cpp
clang-tools-extra/clangd/index/Index.cpp
clang-tools-extra/clangd/index/Index.h
clang-tools-extra/clangd/index/MemIndex.cpp
clang-tools-extra/unittests/clangd/CodeCompleteTests.cpp