aboutsummaryrefslogtreecommitdiff
path: root/clangd/index/MemIndex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clangd/index/MemIndex.cpp')
-rw-r--r--clangd/index/MemIndex.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clangd/index/MemIndex.cpp b/clangd/index/MemIndex.cpp
index e1be6e2d..eca0bfe7 100644
--- a/clangd/index/MemIndex.cpp
+++ b/clangd/index/MemIndex.cpp
@@ -45,6 +45,8 @@ bool MemIndex::fuzzyFind(
// Exact match against all possible scopes.
if (!Req.Scopes.empty() && !llvm::is_contained(Req.Scopes, Sym->Scope))
continue;
+ if (Req.RestrictForCodeCompletion && !Sym->IsIndexedForCodeCompletion)
+ continue;
if (auto Score = Filter.match(Sym->Name)) {
Top.emplace(-*Score * quality(*Sym), Sym);
@@ -85,5 +87,11 @@ std::unique_ptr<SymbolIndex> MemIndex::build(SymbolSlab Slab) {
return std::move(MemIdx);
}
+void MemIndex::findOccurrences(
+ const OccurrencesRequest &Req,
+ llvm::function_ref<void(const SymbolOccurrence &)> Callback) const {
+ log("findOccurrences is not implemented.");
+}
+
} // namespace clangd
} // namespace clang