[clangd] Remove JSON library in favor of llvm/Support/JSON
authorSam McCall <sam.mccall@gmail.com>
Mon, 9 Jul 2018 14:25:59 +0000 (14:25 +0000)
committerSam McCall <sam.mccall@gmail.com>
Mon, 9 Jul 2018 14:25:59 +0000 (14:25 +0000)
commitd20d7989c678f9458df7880f7644b3316ee5f1dd
tree78af542bf097f028e8fd6dfd98cce481c47e7860
parent3d76326d24310638fff26267e24b5473b543913d
[clangd] Remove JSON library in favor of llvm/Support/JSON

Summary:
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)

Reviewers: ilya-biryukov

Subscribers: mgorny, ioeric, MaskRay, jkorous, omtcyfz, cfe-commits

Differential Revision: https://reviews.llvm.org/D49077

llvm-svn: 336549
14 files changed:
clang-tools-extra/clangd/CMakeLists.txt
clang-tools-extra/clangd/ClangdLSPServer.cpp
clang-tools-extra/clangd/CodeComplete.cpp
clang-tools-extra/clangd/JSONExpr.cpp [deleted file]
clang-tools-extra/clangd/JSONExpr.h [deleted file]
clang-tools-extra/clangd/JSONRPCDispatcher.cpp
clang-tools-extra/clangd/JSONRPCDispatcher.h
clang-tools-extra/clangd/Protocol.cpp
clang-tools-extra/clangd/Protocol.h
clang-tools-extra/clangd/ProtocolHandlers.cpp
clang-tools-extra/clangd/Trace.cpp
clang-tools-extra/clangd/Trace.h
clang-tools-extra/unittests/clangd/CMakeLists.txt
clang-tools-extra/unittests/clangd/JSONExprTests.cpp [deleted file]