[PATCH] D29451: Add a prototype for clangd v0.1

Benjamin Kramer via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 2 06:33:07 PST 2017


bkramer created this revision.
Herald added a subscriber: mgorny.

clangd is a language server protocol implementation based on clang. It's
supposed to provide editor integration while not suffering from the
confined ABI of libclang.

This implementation is limited to the bare minimum functionality of
doing (whole-document) formatting and rangeFormatting. The JSON parsing
is based on LLVM's YAMLParser but yet most of the code of clangd is
currently dealing with JSON serialization and deserialization.

This was only tested with VS Code so far, mileage with other LSP clients
may vary.


https://reviews.llvm.org/D29451

Files:
  CMakeLists.txt
  clangd/CMakeLists.txt
  clangd/ClangDMain.cpp
  clangd/DocumentStore.h
  clangd/JSONRPCDispatcher.cpp
  clangd/JSONRPCDispatcher.h
  clangd/Protocol.cpp
  clangd/Protocol.h
  clangd/ProtocolHandlers.cpp
  clangd/ProtocolHandlers.h
  test/clangd/formatting.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29451.86800.patch
Type: text/x-patch
Size: 40435 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170202/5bfffe28/attachment-0001.bin>


More information about the cfe-commits mailing list