The redundancy around work-done-progress is annoying but ok for now.
There's a weirdness with context lifetimes around outgoing method calls, which
I've preserved to keep this NFC. We should probably fix it though.
Paths
| Differential D96717
[clangd] Bind outgoing calls through LSPBinder too. NFC ClosedPublic Authored by sammccall on Feb 15 2021, 8:36 AM.
Details Summary The redundancy around work-done-progress is annoying but ok for now. There's a weirdness with context lifetimes around outgoing method calls, which
Diff Detail
Event TimelineComment Actions mostly LG. some comments around the way we set up outgoinmethod stubs though.
sammccall added inline comments.
sammccall marked an inline comment as done. Comment Actionsrebase & address comments (except bind out API, still to come) Comment Actions OK, the awful proxy object thing works :-) Comment Actions thanks! can't wait for the unique_function sfinae fix :)
This revision is now accepted and ready to land.Feb 16 2021, 9:21 AM sammccall added a parent revision: D96794: [ADT] Add SFINAE guards to unique_function constructor..Feb 16 2021, 1:52 PM Closed by commit rG7b83837af6f4: [clangd] Bind outgoing calls through LSPBinder too. NFC (authored by sammccall). · Explain WhyFeb 17 2021, 1:57 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 324025 clang-tools-extra/clangd/ClangdLSPServer.h
clang-tools-extra/clangd/ClangdLSPServer.cpp
clang-tools-extra/clangd/LSPBinder.h
clang-tools-extra/clangd/Module.h
clang-tools-extra/clangd/unittests/ClangdLSPServerTests.cpp
clang-tools-extra/clangd/unittests/LSPBinderTests.cpp
|
clang-tidy: error: reference initialization of type 'llvm::unique_function<void (const clang::clangd::ApplyWorkspaceEditParams &, llvm::unique_function<void (llvm::Expected<clang::clangd::ApplyWorkspaceEditResponse>)>)> &&' with initializer of type 'LSPBinder::UntypedOutgoingMethod' is ambiguous [clang-diagnostic-error]
not useful