[PATCH] D87335: [json] Create some llvm::Expected-based accessors
walter erquinigo via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 8 16:03:07 PDT 2020
wallace created this revision.
wallace added reviewers: clayborg, sammccall.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
wallace requested review of this revision.
In D85705 <https://reviews.llvm.org/D85705> I found the need for such accessors in llvm::json and I
created them in that diff. I'm moving those changes to this new diff.
The idea of these accessors is that they either return the requested JSON value
or a error string with a descriptive message useful for the user to fix
it.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D87335
Files:
llvm/include/llvm/Support/JSON.h
llvm/lib/Support/JSON.cpp
llvm/unittests/Support/JSONTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87335.290600.patch
Type: text/x-patch
Size: 8154 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200908/76aee88a/attachment.bin>
More information about the llvm-commits
mailing list