Author: ioeric Date: Wed Nov 28 05:45:25 2018 New Revision: 347754 URL: http://llvm.org/viewvc/llvm-project?rev=347754&view=rev Log: [clangd] Less penalty for cross-namespace completions.
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=347754&r1=347753&r2=347754&view=diff ============================================================================== --- clang-tools-extra/trunk/clangd/Quality.cpp (original) +++ clang-tools-extra/trunk/clangd/Quality.cpp Wed Nov 28 05:45:25 2018 @@ -324,8 +324,8 @@ static float scopeBoost(ScopeDistance &D return 1; auto D = Distance.distance(*SymbolScope); if (D == FileDistance::Unreachable) - return 0.4f; - return std::max(0.5, 2.0 * std::pow(0.6, D / 2.0)); + return 0.6f; + return std::max(0.6, 2.0 * std::pow(0.6, D / 2.0)); } float SymbolRelevanceSignals::evaluate() const { _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits