OSDN Git Service

[Support] json::Value construction from std::vector<T> and std::map<string,T>.
authorSam McCall <sam.mccall@gmail.com>
Thu, 18 Oct 2018 08:47:24 +0000 (08:47 +0000)
committerSam McCall <sam.mccall@gmail.com>
Thu, 18 Oct 2018 08:47:24 +0000 (08:47 +0000)
commit6071e3bbc0027598049dbd9b6379d88491ca597d
treeffcd8550a7f3e26e5298899527445497ae45ca12
parentacedb9c3916e017a4595f2c57f781bb0cfb84d61
[Support] json::Value construction from std::vector<T> and std::map<string,T>.

Summary: Previously this required a conversion to json::Array/json::Object first.

Reviewers: ioeric

Subscribers: kristina, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@344732 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/JSON.h
unittests/Support/JSONTest.cpp