summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKirill Bobyrev <kbobyrev.opensource@gmail.com>2018-09-04 15:45:56 +0000
committerKirill Bobyrev <kbobyrev.opensource@gmail.com>2018-09-04 15:45:56 +0000
commitcc8b507a60677b79fe180681834929e4764e6ece (patch)
treeb51ce8f2434ce2fee606c68a8558444c7de6138f
parented1d6db9073195237f54fd9abffee87699f6de30 (diff)
downloadbcm5719-llvm-cc8b507a60677b79fe180681834929e4764e6ece.tar.gz
bcm5719-llvm-cc8b507a60677b79fe180681834929e4764e6ece.zip
[clangd] NFC: Change quality type to float
Reviewed by: sammccall Differential Revision: https://reviews.llvm.org/D51636 llvm-svn: 341374
-rw-r--r--clang-tools-extra/clangd/index/Index.cpp2
-rw-r--r--clang-tools-extra/clangd/index/Index.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/clangd/index/Index.cpp b/clang-tools-extra/clangd/index/Index.cpp
index 52eb42799af..7cbc92057dd 100644
--- a/clang-tools-extra/clangd/index/Index.cpp
+++ b/clang-tools-extra/clangd/index/Index.cpp
@@ -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)
diff --git a/clang-tools-extra/clangd/index/Index.h b/clang-tools-extra/clangd/index/Index.h
index c1778e18932..bd21ead1878 100644
--- a/clang-tools-extra/clangd/index/Index.h
+++ b/clang-tools-extra/clangd/index/Index.h
@@ -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.
OpenPOWER on IntegriCloud