Home
last modified time | relevance | path

Searched refs:Reply (Results 1 – 15 of 15) sorted by relevance

/llvm-project/clang-tools-extra/clangd/unittests/
H A DLSPBinderTests.cpp47 Callback<llvm::json::Value> Reply) override { in callMethod()
50 return Reply(error("Params={0}", Params)); in callMethod()
51 Reply(Params); // echo back the request in callMethod()
69 void plusOne(const Foo &Params, Callback<Foo> Reply) { in TEST()
70 Reply(Foo{Params.X + 1}); in TEST()
72 void fail(const Foo &Params, Callback<Foo> Reply) { in TEST()
73 Reply(error("X={0}", Params.X)); in TEST()
94 std::optional<llvm::Expected<llvm::json::Value>> Reply; in TEST() local
97 RawPlusOne(1, capture(Reply)); in TEST()
98 ASSERT_TRUE(Reply.has_value()); in TEST()
[all …]
H A DClangdLSPServerTests.cpp352 void get(const std::nullptr_t &, Callback<int> Reply) {
355 [Reply(std::move(Reply)), Value(Value)]() mutable { Reply(Value); }); in capture()
334 get(const std::nullptr_t &,Callback<int> Reply) TEST_F() argument
/llvm-project/clang-tools-extra/clangd/
H A DClangdLSPServer.cpp239 ReplyOnce Reply(ID, Method, &Server, Tracer.Args); in onCall()
243 Handler->second(std::move(Params), std::move(Reply)); in onCall()
246 Reply(llvm::make_error<LSPError>("server not initialized", in onCall()
249 Reply(llvm::make_error<LSPError>("method not found", in onCall()
297 llvm::json::Value bindReply(Callback<llvm::json::Value> Reply) { in bindReply()
303 ReplyCallbacks.emplace_back(ID, std::move(Reply)); in bindReply()
368 void operator()(llvm::Expected<llvm::json::Value> Reply) { in operator ()()
376 if (Reply) { in operator ()()
379 (*TraceArgs)["Reply"] = *Reply; in operator ()()
237 ReplyOnce Reply(ID, Method, &Server, Tracer.Args); onCall() local
295 bindReply(Callback<llvm::json::Value> Reply) bindReply() argument
366 operator ()(llvm::Expected<llvm::json::Value> Reply) operator ()() argument
493 onInitialize(const InitializeParams & Params,Callback<llvm::json::Value> Reply) onInitialize() argument
697 onShutdown(const NoParams &,Callback<std::nullptr_t> Reply) onShutdown() argument
705 onSync(const NoParams &,Callback<std::nullptr_t> Reply) onSync() argument
769 onCommand(const ExecuteCommandParams & Params,Callback<llvm::json::Value> Reply) onCommand() argument
780 onCommandApplyEdit(const WorkspaceEdit & WE,Callback<llvm::json::Value> Reply) onCommandApplyEdit() argument
793 onCommandApplyTweak(const TweakArgs & Args,Callback<llvm::json::Value> Reply) onCommandApplyTweak() argument
829 onCommandApplyRename(const RenameParams & R,Callback<llvm::json::Value> Reply) onCommandApplyRename() argument
839 applyEdit(WorkspaceEdit WE,llvm::json::Value Success,Callback<llvm::json::Value> Reply) applyEdit() argument
859 onWorkspaceSymbol(const WorkspaceSymbolParams & Params,Callback<std::vector<SymbolInformation>> Reply) onWorkspaceSymbol() argument
874 onPrepareRename(const TextDocumentPositionParams & Params,Callback<PrepareRenameResult> Reply) onPrepareRename() argument
889 onRename(const RenameParams & Params,Callback<WorkspaceEdit> Reply) onRename() argument
939 onDocumentOnTypeFormatting(const DocumentOnTypeFormattingParams & Params,Callback<std::vector<TextEdit>> Reply) onDocumentOnTypeFormatting() argument
946 onDocumentRangeFormatting(const DocumentRangeFormattingParams & Params,Callback<std::vector<TextEdit>> Reply) onDocumentRangeFormatting() argument
961 onDocumentFormatting(const DocumentFormattingParams & Params,Callback<std::vector<TextEdit>> Reply) onDocumentFormatting() argument
1002 onDocumentSymbol(const DocumentSymbolParams & Params,Callback<llvm::json::Value> Reply) onDocumentSymbol() argument
1019 onFoldingRange(const FoldingRangeParams & Params,Callback<std::vector<FoldingRange>> Reply) onFoldingRange() argument
1042 onCodeAction(const CodeActionParams & Params,Callback<llvm::json::Value> Reply) onCodeAction() argument
1115 onCompletion(const CompletionParams & Params,Callback<CompletionList> Reply) onCompletion() argument
1145 onSignatureHelp(const TextDocumentPositionParams & Params,Callback<SignatureHelp> Reply) onSignatureHelp() argument
1185 onGoToDefinition(const TextDocumentPositionParams & Params,Callback<std::vector<Location>> Reply) onGoToDefinition() argument
1204 onGoToDeclaration(const TextDocumentPositionParams & Params,Callback<std::vector<Location>> Reply) onGoToDeclaration() argument
1223 onSwitchSourceHeader(const TextDocumentIdentifier & Params,Callback<std::optional<URIForFile>> Reply) onSwitchSourceHeader() argument
1238 onDocumentHighlight(const TextDocumentPositionParams & Params,Callback<std::vector<DocumentHighlight>> Reply) onDocumentHighlight() argument
1244 onHover(const TextDocumentPositionParams & Params,Callback<std::optional<Hover>> Reply) onHover() argument
1301 onTypeHierarchy(const TypeHierarchyPrepareParams & Params,Callback<llvm::json::Value> Reply) onTypeHierarchy() argument
1321 onResolveTypeHierarchy(const ResolveTypeHierarchyItemParams & Params,Callback<llvm::json::Value> Reply) onResolveTypeHierarchy() argument
1341 onPrepareTypeHierarchy(const TypeHierarchyPrepareParams & Params,Callback<std::vector<TypeHierarchyItem>> Reply) onPrepareTypeHierarchy() argument
1348 onSuperTypes(const ResolveTypeHierarchyItemParams & Params,Callback<std::optional<std::vector<TypeHierarchyItem>>> Reply) onSuperTypes() argument
1354 onSubTypes(const ResolveTypeHierarchyItemParams & Params,Callback<std::vector<TypeHierarchyItem>> Reply) onSubTypes() argument
1360 onPrepareCallHierarchy(const CallHierarchyPrepareParams & Params,Callback<std::vector<CallHierarchyItem>> Reply) onPrepareCallHierarchy() argument
1367 onCallHierarchyIncomingCalls(const CallHierarchyIncomingCallsParams & Params,Callback<std::vector<CallHierarchyIncomingCall>> Reply) onCallHierarchyIncomingCalls() argument
1372 onClangdInlayHints(const InlayHintsParams & Params,Callback<llvm::json::Value> Reply) onClangdInlayHints() argument
1405 onInlayHint(const InlayHintsParams & Params,Callback<std::vector<InlayHint>> Reply) onInlayHint() argument
1457 onReference(const ReferenceParams & Params,Callback<std::vector<ReferenceLocation>> Reply) onReference() argument
1479 onGoToType(const TextDocumentPositionParams & Params,Callback<std::vector<Location>> Reply) onGoToType() argument
1495 onGoToImplementation(const TextDocumentPositionParams & Params,Callback<std::vector<Location>> Reply) onGoToImplementation() argument
1510 onSymbolInfo(const TextDocumentPositionParams & Params,Callback<std::vector<SymbolDetails>> Reply) onSymbolInfo() argument
1517 onSelectionRange(const SelectionRangeParams & Params,Callback<std::vector<SelectionRange>> Reply) onSelectionRange() argument
1530 onDocumentLink(const DocumentLinkParams & Params,Callback<std::vector<DocumentLink>> Reply) onDocumentLink() argument
1619 onMemoryUsage(const NoParams &,Callback<MemoryTree> Reply) onMemoryUsage() argument
[all...]
H A DLSPBinder.h50 Callback<JSON> Reply) = 0;
137 Callback<JSON> Reply) { in method()
140 return Reply(P.takeError()); in method()
141 (This->*Handler)(*P, std::move(Reply)); in method()
162 Callback<JSON> Reply) { in command()
165 return Reply(P.takeError()); in command()
166 (This->*Handler)(*P, std::move(Reply)); in command()
200 return [Method(Method), Out(Out)](Request R, Callback<Response> Reply) {
204 [Reply(std::move(Reply)), Ctx(Context::current().clone()),
207 return Reply(RawRsp.takeError());
[all …]
H A DClangdLSPServer.h207 Callback<llvm::json::Value> Reply);
/llvm-project/mlir/lib/Tools/lsp-server-support/
H A DTransport.cpp24 // Reply
32 class Reply { class
34 Reply(const llvm::json::Value &id, StringRef method, JSONTransport &transport,
36 Reply(Reply &&other);
37 Reply &operator=(Reply &&) = delete;
38 Reply(const Reply &) = delete;
39 Reply
52 Reply::Reply(const llvm::json::Value &id, llvm::StringRef method, Reply() function in Reply
57 Reply::Reply(Reply &&other) Reply() function in Reply
[all...]
/llvm-project/clang-tools-extra/clangd/index/remote/server/
H A DServer.cpp132 grpc::ServerWriter<LookupReply> *Reply) override { in Lookup() argument
160 Reply->Write(NextMessage); in Lookup()
168 Reply->Write(LastMessage); in Lookup()
177 grpc::ServerWriter<FuzzyFindReply> *Reply) override { in FuzzyFind() argument
206 Reply->Write(NextMessage); in FuzzyFind()
212 Reply->Write(LastMessage); in FuzzyFind()
220 grpc::ServerWriter<RefsReply> *Reply) override { in Refs() argument
248 Reply->Write(NextMessage); in Refs()
254 Reply->Write(LastMessage); in Refs()
264 grpc::ServerWriter<ContainedRefsReply> *Reply) overrid in Relations()
263 Relations(grpc::ServerContext * Context,const RelationsRequest * Request,grpc::ServerWriter<RelationsReply> * Reply) Relations() argument
350 MonitoringInfo(grpc::ServerContext * Context,const v1::MonitoringInfoRequest * Request,v1::MonitoringInfoReply * Reply) MonitoringInfo() argument
[all...]
/llvm-project/clang-tools-extra/clangd/index/remote/
H A DClient.cpp85 ReplyT Reply; in streamRPC() local
88 while (Reader->Read(&Reply)) { in streamRPC()
89 if (!Reply.has_stream_result()) { in streamRPC()
90 HasMore = Reply.final_result().has_more(); in streamRPC()
93 auto Response = ProtobufMarshaller->fromProtobuf(Reply.stream_result()); in streamRPC()
96 ReplyT::descriptor()->name(), Reply.stream_result().DebugString(), in streamRPC()
/llvm-project/clang-tools-extra/clangd/test/
H A Dsemantic-tokens-refresh.test16 # Reply with success.
36 # Reply with error, to make sure there are no crashes.
/llvm-project/lldb/unittests/tools/lldb-server/tests/
H A DTestClient.h70 if (const auto *Reply = llvm::dyn_cast<T>(m_stop_reply.get())) in GetLatestStopReplyAs()
71 return *Reply; in GetLatestStopReplyAs()
73 llvm::formatv("Unexpected Stop Reply {0}", m_stop_reply->getKind()),
66 if (const auto *Reply = llvm::dyn_cast<T>(m_stop_reply.get())) GetLatestStopReplyAs() local
/llvm-project/lldb/tools/debugserver/source/MacOSX/
H A DMachException.h98 kern_return_t Reply(MachProcess *process, int signal);
H A DMachException.cpp315 kern_return_t MachException::Message::Reply(MachProcess *process, int signal) { in Reply() function in MachException::Message
H A DMachProcess.mm1880 DNBError err(pos->Reply(this, thread_reply_signal));
/llvm-project/lldb/tools/debugserver/source/
H A DChangeLog391 (MachException::Message::Reply): Ditto.
443 (MachException::Message::Reply): Use abstracted MachTask class for any
484 (MachException::Message::Reply): Improved logging.
634 (MachException::Message::Reply): Added better logging and log using the
882 * MachException.h (MachException::Message::Reply): Added a signal
884 * MachException.cpp (MachException::Message::Reply): Update the thread
1418 * RNBRemote.cpp (RNBRemote::HandlePacket_q): Reply "" to qSymbols
/llvm-project/lldb/docs/resources/
H A Dlldbgdbremote.md1463 Reply:
2255 Reply: