[PATCH] D40089: [clangd] Make completion scores use 0-1 floats internally.

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 15 09:40:52 PST 2017


sammccall created this revision.

This scale is much easier to mix with other signals, such as fuzzy match strength.
Mostly NFC, but it does reorder some low-priority items that get folded together at a score of 0 (see completion-qualifiers.test).
Removed the exact sortText from the testcases, because it's the ranking that we want to test.


https://reviews.llvm.org/D40089

Files:
  clangd/ClangdUnit.cpp
  test/clangd/authority-less-uri.test
  test/clangd/completion-items-kinds.test
  test/clangd/completion-priorities.test
  test/clangd/completion-qualifiers.test
  test/clangd/completion-snippet.test
  test/clangd/completion.test
  test/clangd/protocol.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40089.123046.patch
Type: text/x-patch
Size: 20493 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171115/e102cbe8/attachment-0001.bin>


More information about the cfe-commits mailing list