Author: omtcyfz Date: Tue Sep 4 08:45:56 2018 New Revision: 341374 URL: http://llvm.org/viewvc/llvm-project?rev=341374&view=rev Log: [clangd] NFC: Change quality type to float
Reviewed by: sammccall Differential Revision: https://reviews.llvm.org/D51636 Modified: clang-tools-extra/trunk/clangd/index/Index.cpp clang-tools-extra/trunk/clangd/index/Index.h Modified: clang-tools-extra/trunk/clangd/index/Index.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/index/Index.cpp?rev=341374&r1=341373&r2=341374&view=diff ============================================================================== --- clang-tools-extra/trunk/clangd/index/Index.cpp (original) +++ clang-tools-extra/trunk/clangd/index/Index.cpp Tue Sep 4 08:45:56 2018 @@ -59,7 +59,7 @@ raw_ostream &operator<<(raw_ostream &OS, 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) Modified: clang-tools-extra/trunk/clangd/index/Index.h URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/index/Index.h?rev=341374&r1=341373&r2=341374&view=diff ============================================================================== --- clang-tools-extra/trunk/clangd/index/Index.h (original) +++ clang-tools-extra/trunk/clangd/index/Index.h Tue Sep 4 08:45:56 2018 @@ -250,7 +250,7 @@ llvm::raw_ostream &operator<<(llvm::raw_ // 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. _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits