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. 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)