[clang-tools-extra] r347755 - [clangd] Fix test broken in r347754.

Eric Liu via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 28 06:00:10 PST 2018


Author: ioeric
Date: Wed Nov 28 06:00:09 2018
New Revision: 347755

URL: http://llvm.org/viewvc/llvm-project?rev=347755&view=rev
Log:
[clangd] Fix test broken in r347754.

Modified:
    clang-tools-extra/trunk/clangd/Quality.cpp

Modified: clang-tools-extra/trunk/clangd/Quality.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/Quality.cpp?rev=347755&r1=347754&r2=347755&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/Quality.cpp (original)
+++ clang-tools-extra/trunk/clangd/Quality.cpp Wed Nov 28 06:00:09 2018
@@ -325,7 +325,7 @@ static float scopeBoost(ScopeDistance &D
   auto D = Distance.distance(*SymbolScope);
   if (D == FileDistance::Unreachable)
     return 0.6f;
-  return std::max(0.6, 2.0 * std::pow(0.6, D / 2.0));
+  return std::max(0.65, 2.0 * std::pow(0.6, D / 2.0));
 }
 
 float SymbolRelevanceSignals::evaluate() const {




More information about the cfe-commits mailing list