[PATCH] D66343: [clangd] Simplify code of ClangdLSPServer::onCommand

Ilya Biryukov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 16 05:24:47 PDT 2019


ilya-biryukov created this revision.
ilya-biryukov added a reviewer: hokein.
Herald added subscribers: kadircet, arphaman, jkorous, MaskRay.
Herald added a project: clang.

By inlining a complicated lambda into its single call-site.

Also ensure we call Reply() exactly once even if tweaks return both
ShowMessage and ApplyEdit effects.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D66343

Files:
  clang-tools-extra/clangd/ClangdLSPServer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66343.215571.patch
Type: text/x-patch
Size: 5177 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190816/20dc3cdb/attachment.bin>


More information about the cfe-commits mailing list