[clangd] Boost fuzzy match score by 2x (so a maximum of 2) when the query is the...
authorSam McCall <sam.mccall@gmail.com>
Wed, 6 Jun 2018 12:38:37 +0000 (12:38 +0000)
committerSam McCall <sam.mccall@gmail.com>
Wed, 6 Jun 2018 12:38:37 +0000 (12:38 +0000)
commitbc7cbb78952137ad8a7f42538a7d2be0af1e8ac1
tree04389e11159c9ca895578d334b54d799a8171fd2
parent9337b41cb5cd79fb57d97578b3c5e26a117ddfaf
[clangd] Boost fuzzy match score by 2x (so a maximum of 2) when the query is the full identifier name.

Summary: Fix a couple of bugs in tests an in Quality to keep tests passing.

Reviewers: ioeric

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

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

llvm-svn: 334089
clang-tools-extra/clangd/FuzzyMatch.cpp
clang-tools-extra/clangd/FuzzyMatch.h
clang-tools-extra/clangd/Quality.cpp
clang-tools-extra/clangd/Quality.h
clang-tools-extra/unittests/clangd/FindSymbolsTests.cpp
clang-tools-extra/unittests/clangd/FuzzyMatchTests.cpp