[clang-tools-extra] r336248 - [clangd] FileDistance: temporarily disable in CodeComplete, it's behaving badly

Sam McCall via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 4 02:01:05 PDT 2018


Author: sammccall
Date: Wed Jul  4 02:01:04 2018
New Revision: 336248

URL: http://llvm.org/viewvc/llvm-project?rev=336248&view=rev
Log:
[clangd] FileDistance: temporarily disable in CodeComplete, it's behaving badly

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

Modified: clang-tools-extra/trunk/clangd/CodeComplete.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/CodeComplete.cpp?rev=336248&r1=336247&r2=336248&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/CodeComplete.cpp (original)
+++ clang-tools-extra/trunk/clangd/CodeComplete.cpp Wed Jul  4 02:01:04 2018
@@ -1137,7 +1137,8 @@ private:
     SymbolQualitySignals Quality;
     SymbolRelevanceSignals Relevance;
     Relevance.Query = SymbolRelevanceSignals::CodeComplete;
-    Relevance.FileProximityMatch = FileProximity.getPointer();
+    // FIXME: re-enable this after working out why it eats memory.
+    // Relevance.FileProximityMatch = FileProximity.getPointer();
     auto &First = Bundle.front();
     if (auto FuzzyScore = fuzzyScore(First))
       Relevance.NameMatch = *FuzzyScore;




More information about the cfe-commits mailing list