[clangd] NFC: Change quality type to float
Reviewed by: sammccall Differential Revision: https://reviews.llvm.org/D51636 llvm-svn: 341374
This commit is contained in:
parent
ed1d6db907
commit
cc8b507a60
|
@ -59,7 +59,7 @@ raw_ostream &operator<<(raw_ostream &OS, const Symbol &S) {
|
||||||
return OS << S.Scope << S.Name;
|
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
|
// 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.
|
// question of whether 0 references means a bad symbol or missing data.
|
||||||
if (S.References < 3)
|
if (S.References < 3)
|
||||||
|
|
|
@ -250,7 +250,7 @@ llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const Symbol &S);
|
||||||
// This currently falls in the range [1, ln(#indexed documents)].
|
// This currently falls in the range [1, ln(#indexed documents)].
|
||||||
// FIXME: this should probably be split into symbol -> signals
|
// FIXME: this should probably be split into symbol -> signals
|
||||||
// and signals -> score, so it can be reused for Sema completions.
|
// 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.
|
// An immutable symbol container that stores a set of symbols.
|
||||||
// The container will maintain the lifetime of the symbols.
|
// The container will maintain the lifetime of the symbols.
|
||||||
|
|
Loading…
Reference in New Issue