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 | 50a967d601749beceaaf901b5931fa0a96fb17df (patch) | |
| tree | 777be211e0d63150be78b8b043a1e3fa53063410 /clang-tools-extra/clangd/index/MemIndex.h | |
| parent | 314981bacde7a1c681928ddd2a813a5b0ab09c95 (diff) | |
| download | bcm5719-llvm-50a967d601749beceaaf901b5931fa0a96fb17df.tar.gz bcm5719-llvm-50a967d601749beceaaf901b5931fa0a96fb17df.zip | |
[clangd] Simplify code. No functionality change intended.
llvm-svn: 321523
Diffstat (limited to 'clang-tools-extra/clangd/index/MemIndex.h')
| -rw-r--r-- | clang-tools-extra/clangd/index/MemIndex.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang-tools-extra/clangd/index/MemIndex.h b/clang-tools-extra/clangd/index/MemIndex.h index 26ae34cfb02..43a217001fa 100644 --- a/clang-tools-extra/clangd/index/MemIndex.h +++ b/clang-tools-extra/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; |

