5#include <llvm/ADT/StringRef.h>
6#include <llvm/Support/JSON.h>
16 [[nodiscard]]
const char *
what() const noexcept
override {
17 return "JSON result cannot be parsed";
25 [[nodiscard]]
const char *
what() const noexcept
override {
26 return "JSON schema mismatch";
30llvm::json::Value
parse(llvm::StringRef JSON);
32template <
class T> T
fromJSON(
const llvm::json::Value &V) {
33 llvm::json::Path::Root R;
const char * what() const noexcept override
JSONParseException(llvm::Error E)
JSONSchemaException(llvm::Error E)
const char * what() const noexcept override
bool fromJSON(const llvm::json::Value &Params, Configuration::Diagnostic &R, llvm::json::Path P)
llvm::json::Value parse(llvm::StringRef JSON)