[PATCH] D51636: [clangd] NFC: Change quality type to float
Kirill Bobyrev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 4 08:47:00 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rCTE341374: [clangd] NFC: Change quality type to float (authored by omtcyfz, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D51636?vs=163833&id=163837#toc
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D51636
Files:
clangd/index/Index.cpp
clangd/index/Index.h
Index: clangd/index/Index.cpp
===================================================================
--- clangd/index/Index.cpp
+++ clangd/index/Index.cpp
@@ -59,7 +59,7 @@
return OS << S.Scope << S.Name;
}
-double quality(const Symbol &S) {
+float quality(const Symbol &S) {
// This avoids a sharp gradient for tail symbols, and also neatly avoids the
// question of whether 0 references means a bad symbol or missing data.
if (S.References < 3)
Index: clangd/index/Index.h
===================================================================
--- clangd/index/Index.h
+++ clangd/index/Index.h
@@ -250,7 +250,7 @@
// This currently falls in the range [1, ln(#indexed documents)].
// FIXME: this should probably be split into symbol -> signals
// and signals -> score, so it can be reused for Sema completions.
-double quality(const Symbol &S);
+float quality(const Symbol &S);
// An immutable symbol container that stores a set of symbols.
// The container will maintain the lifetime of the symbols.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51636.163837.patch
Type: text/x-patch
Size: 1025 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180904/5a72b590/attachment.bin>
More information about the cfe-commits
mailing list