Skip to content

Commit

Permalink
[clangd] NFC: Change quality type to float
Browse files Browse the repository at this point in the history
Reviewed by: sammccall

Differential Revision: https://reviews.llvm.org/D51636

llvm-svn: 341374
  • Loading branch information
kirillbobyrev committed Sep 4, 2018
1 parent ed1d6db commit cc8b507
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clang-tools-extra/clangd/index/Index.cpp
Expand Up @@ -59,7 +59,7 @@ raw_ostream &operator<<(raw_ostream &OS, const Symbol &S) {
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)
Expand Down
2 changes: 1 addition & 1 deletion clang-tools-extra/clangd/index/Index.h
Expand Up @@ -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)].
// 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.
Expand Down

0 comments on commit cc8b507

Please sign in to comment.