From 50a967d601749beceaaf901b5931fa0a96fb17df Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Thu, 28 Dec 2017 14:47:01 +0000 Subject: [clangd] Simplify code. No functionality change intended. llvm-svn: 321523 --- clang-tools-extra/clangd/index/FileIndex.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'clang-tools-extra/clangd/index/FileIndex.h') diff --git a/clang-tools-extra/clangd/index/FileIndex.h b/clang-tools-extra/clangd/index/FileIndex.h index 6408a25b3a7..312373cac72 100644 --- a/clang-tools-extra/clangd/index/FileIndex.h +++ b/clang-tools-extra/clangd/index/FileIndex.h @@ -60,8 +60,9 @@ public: /// nullptr, this removes all symbols in the file void update(const Context &Ctx, PathRef Path, ParsedAST *AST); - bool fuzzyFind(const Context &Ctx, const FuzzyFindRequest &Req, - std::function Callback) const override; + bool + fuzzyFind(const Context &Ctx, const FuzzyFindRequest &Req, + llvm::function_ref Callback) const override; private: FileSymbols FSymbols; -- cgit v1.2.3