[clangd] NFC: Change quality type to float
Reviewed by: sammccall
Differential Revision: https://reviews.llvm.org/D51636
llvm-svn: 341374
GitOrigin-RevId: cc8b507a60677b79fe180681834929e4764e6ece
diff --git a/clangd/index/Index.cpp b/clangd/index/Index.cpp
index 52eb427..7cbc920 100644
--- a/clangd/index/Index.cpp
+++ b/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)
diff --git a/clangd/index/Index.h b/clangd/index/Index.h
index c1778e1..bd21ead 100644
--- a/clangd/index/Index.h
+++ b/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.