LLVM  8.0.0svn
Namespaces | Enumerations | Functions
JSON.cpp File Reference
#include "llvm/Support/JSON.h"
#include "llvm/Support/ConvertUTF.h"
#include "llvm/Support/Format.h"
#include <cctype>
Include dependency graph for JSON.cpp:

Go to the source code of this file.

Namespaces

 llvm
 This class represents lattice values for constants.
 
 llvm::json
 

Enumerations

enum  IndenterAction { Indent, Outdent, Newline, Space }
 

Functions

bool llvm::json::operator== (const Object &LHS, const Object &RHS)
 
bool llvm::json::operator== (const Value &, const Value &)
 
llvm::Expected< Value > llvm::json::parse (llvm::StringRef JSON)
 Parses the provided JSON source, or returns a ParseError. More...
 
static std::vector< const Object::value_type * > llvm::json::sortedElements (const Object &O)
 
bool llvm::json::isUTF8 (llvm::StringRef S, size_t *ErrOffset=nullptr)
 Returns true if S is valid UTF-8, which is required for use as JSON. More...
 
std::string llvm::json::fixUTF8 (llvm::StringRef S)
 Replaces invalid UTF-8 sequences in S with the replacement character (U+FFFD). More...
 
static void quote (llvm::raw_ostream &OS, llvm::StringRef S)
 

Enumeration Type Documentation

◆ IndenterAction

Enumerator
Indent 
Outdent 
Newline 
Space 

Definition at line 591 of file JSON.cpp.

Function Documentation

◆ quote()

static void quote ( llvm::raw_ostream OS,
llvm::StringRef  S 
)
static

Definition at line 561 of file JSON.cpp.

References C, llvm::Lower, and llvm::write_hex().