diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2017-12-28 14:47:01 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2017-12-28 14:47:01 +0000 |
commit | 4727c9bcae4722f6b14ff723351b63ca01220c6e (patch) | |
tree | 142c83f3287331bb59cbf86ce9eb82aed263d66a /clangd/index/MemIndex.h | |
parent | 4058595ccdcba895adbb791c6d7772036c41e20e (diff) |
[clangd] Simplify code. No functionality change intended.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@321523 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clangd/index/MemIndex.h')
-rw-r--r-- | clangd/index/MemIndex.h | 5 |
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; |