[PATCH] D49077: [clangd] Remove JSON library in favor of llvm/Support/JSON

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 9 07:09:58 PDT 2018


sammccall created this revision.
sammccall added a reviewer: ilya-biryukov.
Herald added subscribers: cfe-commits, omtcyfz, jkorous, MaskRay, ioeric, mgorny.

The library has graduated from clangd to llvm/Support.
This is a mechanical change to move to the new API and remove the old one.

Main API changes:

- namespace clang::clangd::json --> llvm::json
- json::Expr --> json::Value
- Expr::asString() etc --> Value::getAsString() etc
- unsigned longs need a cast (due to r336541 adding lossless integer support)


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D49077

Files:
  clangd/CMakeLists.txt
  clangd/ClangdLSPServer.cpp
  clangd/CodeComplete.cpp
  clangd/JSONExpr.cpp
  clangd/JSONExpr.h
  clangd/JSONRPCDispatcher.cpp
  clangd/JSONRPCDispatcher.h
  clangd/Protocol.cpp
  clangd/Protocol.h
  clangd/ProtocolHandlers.cpp
  clangd/Trace.cpp
  clangd/Trace.h
  unittests/clangd/CMakeLists.txt
  unittests/clangd/JSONExprTests.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49077.154597.patch
Type: text/x-patch
Size: 102011 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180709/5a8b59ac/attachment-0001.bin>


More information about the cfe-commits mailing list