llvm-project/clang-tools-extra/unittests/clangd
Sam McCall a5ce243fa3 [clangd] Use fuzzy match to select top N index results.
Summary:
This makes performance slower but more predictable (it always processes
every symbol). We need to find ways to make this fast, possibly by precomputing
short queries or capping the number of scored results. But our current approach
is too naive.

It also no longer returns results in a "good" order. In fact it's pathological:
the top N results are ranked from worst to best. Indexes aren't responsible for
ranking and MergedIndex can't do a good job, so I'm pleased that this will make
any hidden assumptions we have more noticeable :-)

Reviewers: hokein

Subscribers: klimek, ilya-biryukov, cfe-commits

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

llvm-svn: 322821
2018-01-18 08:35:04 +00:00
..
Annotations.cpp [clangd] Remove an unused lambda capture. 2017-12-20 17:22:56 +00:00
Annotations.h [clangd] Switch xrefs and documenthighlight to annotated-code unit tests. NFC 2017-12-20 16:06:05 +00:00
CMakeLists.txt [clangd] Pull CodeCompletionString handling logic into its own file and add unit test. 2017-12-20 17:24:31 +00:00
ClangdTests.cpp [clangd] Pass Context to onDiagnosticsReady callback 2018-01-10 17:59:27 +00:00
CodeCompleteTests.cpp [clangd] Avoid combinatorial explosion in CodeCompleteTests. 2018-01-16 12:21:24 +00:00
CodeCompletionStringsTests.cpp [clangd] Pull CodeCompletionString handling logic into its own file and add unit test. 2017-12-20 17:24:31 +00:00
ContextTests.cpp [clangd] Introduced a Context that stores implicit data 2017-12-12 11:16:45 +00:00
FileIndexTests.cpp [clangd] Add more filters for collected symbols. 2018-01-10 14:57:58 +00:00
FuzzyMatchTests.cpp [clangd] Fix uninitialized-read found by asan 2018-01-13 16:46:26 +00:00
IndexTests.cpp [clangd] Use fuzzy match to select top N index results. 2018-01-18 08:35:04 +00:00
JSONExprTests.cpp [clangd] New conventions for JSON-marshalling functions, centralize machinery 2017-11-30 21:32:29 +00:00
Matchers.h [clangd] Switch xrefs and documenthighlight to annotated-code unit tests. NFC 2017-12-20 16:06:05 +00:00
SourceCodeTests.cpp [clangd] Add debug printers for basic protocol types. NFC 2017-12-20 10:26:53 +00:00
SymbolCollectorTests.cpp [clangd] Add more filters for collected symbols. 2018-01-10 14:57:58 +00:00
TestFS.cpp [clangd] Remove unused test param. NFC 2017-12-05 07:34:35 +00:00
TestFS.h [clangd] Remove unused test param. NFC 2017-12-05 07:34:35 +00:00
TraceTests.cpp [clangd] Implemented tracing using Context 2017-12-14 15:04:59 +00:00
XRefsTests.cpp [clangd] Don't navigate to forward class declaration when go to definition. 2018-01-12 14:21:10 +00:00