diff options
Diffstat (limited to 'clang-tools-extra/clangd/index/remote/Client.cpp')
-rw-r--r-- | clang-tools-extra/clangd/index/remote/Client.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang-tools-extra/clangd/index/remote/Client.cpp b/clang-tools-extra/clangd/index/remote/Client.cpp index 79b8271..3b31a9f 100644 --- a/clang-tools-extra/clangd/index/remote/Client.cpp +++ b/clang-tools-extra/clangd/index/remote/Client.cpp @@ -164,6 +164,17 @@ public: }); } + void reverseRelations( + const clangd::RelationsRequest &Request, + llvm::function_ref<void(const SymbolID &, const clangd::Symbol &)> + Callback) const override { + streamRPC(Request, &remote::v1::SymbolIndex::Stub::ReverseRelations, + // Unpack protobuf Relation. + [&](std::pair<SymbolID, clangd::Symbol> SubjectAndObject) { + Callback(SubjectAndObject.first, SubjectAndObject.second); + }); + } + llvm::unique_function<IndexContents(llvm::StringRef) const> indexedFiles() const override { // FIXME: For now we always return IndexContents::None regardless of whether |