summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/CodeComplete.cpp
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2018-07-05 08:26:53 +0000
committerSam McCall <sam.mccall@gmail.com>2018-07-05 08:26:53 +0000
commitf84dd024de469e0c6e031c5ada9dcb966bd1cf53 (patch)
treed204049c1d156abd0eebf0a321d196f46841a8df /clang-tools-extra/clangd/CodeComplete.cpp
parent27be58b307d2076f1ee61a7b2c9bb6444289741c (diff)
downloadbcm5719-llvm-f84dd024de469e0c6e031c5ada9dcb966bd1cf53.tar.gz
bcm5719-llvm-f84dd024de469e0c6e031c5ada9dcb966bd1cf53.zip
Revert "[clangd] FileDistance: temporarily disable in CodeComplete, it's behaving badly"
The bad behavior seems to have been fixed by r336242 after all. I thought it was persisting, but that was a different bug fixed by D48940 llvm-svn: 336320
Diffstat (limited to 'clang-tools-extra/clangd/CodeComplete.cpp')
-rw-r--r--clang-tools-extra/clangd/CodeComplete.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang-tools-extra/clangd/CodeComplete.cpp b/clang-tools-extra/clangd/CodeComplete.cpp
index 436bdf81237..5f205bc3b1d 100644
--- a/clang-tools-extra/clangd/CodeComplete.cpp
+++ b/clang-tools-extra/clangd/CodeComplete.cpp
@@ -1142,8 +1142,7 @@ private:
SymbolQualitySignals Quality;
SymbolRelevanceSignals Relevance;
Relevance.Query = SymbolRelevanceSignals::CodeComplete;
- // FIXME: re-enable this after working out why it eats memory.
- // Relevance.FileProximityMatch = FileProximity.getPointer();
+ Relevance.FileProximityMatch = FileProximity.getPointer();
auto &First = Bundle.front();
if (auto FuzzyScore = fuzzyScore(First))
Relevance.NameMatch = *FuzzyScore;
OpenPOWER on IntegriCloud