summaryrefslogtreecommitdiffstats
path: root/clangd/index/MemIndex.h
diff options
context:
space:
mode:
Diffstat (limited to 'clangd/index/MemIndex.h')
-rw-r--r--clangd/index/MemIndex.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/clangd/index/MemIndex.h b/clangd/index/MemIndex.h
index 26ae34cf..43a21700 100644
--- a/clangd/index/MemIndex.h
+++ b/clangd/index/MemIndex.h
@@ -24,8 +24,9 @@ public:
/// accessible as long as `Symbols` is kept alive.
void build(std::shared_ptr<std::vector<const Symbol *>> Symbols);
- bool fuzzyFind(const Context &Ctx, const FuzzyFindRequest &Req,
- std::function<void(const Symbol &)> Callback) const override;
+ bool
+ fuzzyFind(const Context &Ctx, const FuzzyFindRequest &Req,
+ llvm::function_ref<void(const Symbol &)> Callback) const override;
private:
std::shared_ptr<std::vector<const Symbol *>> Symbols;