summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/index/Index.h
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2017-12-28 14:47:01 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2017-12-28 14:47:01 +0000
commit50a967d601749beceaaf901b5931fa0a96fb17df (patch)
tree777be211e0d63150be78b8b043a1e3fa53063410 /clang-tools-extra/clangd/index/Index.h
parent314981bacde7a1c681928ddd2a813a5b0ab09c95 (diff)
downloadbcm5719-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/Index.h')
-rw-r--r--clang-tools-extra/clangd/index/Index.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang-tools-extra/clangd/index/Index.h b/clang-tools-extra/clangd/index/Index.h
index c69a6e34f6c..5d4dff41daf 100644
--- a/clang-tools-extra/clangd/index/Index.h
+++ b/clang-tools-extra/clangd/index/Index.h
@@ -140,8 +140,8 @@ public:
SymbolSlab() = default;
- const_iterator begin() const;
- const_iterator end() const;
+ const_iterator begin() const { return Symbols.begin(); }
+ const_iterator end() const { return Symbols.end(); }
const_iterator find(const SymbolID &SymID) const;
size_t size() const { return Symbols.size(); }
@@ -214,7 +214,7 @@ public:
/// to MaxCandidateCount
virtual bool
fuzzyFind(const Context &Ctx, const FuzzyFindRequest &Req,
- std::function<void(const Symbol &)> Callback) const = 0;
+ llvm::function_ref<void(const Symbol &)> Callback) const = 0;
// FIXME: add interfaces for more index use cases:
// - Symbol getSymbolInfo(SymbolID);
OpenPOWER on IntegriCloud