llvm::json::operator<<

Serialize V to compact JSON on OS.

Synopsis

Declared in <llvm/Support/JSON.h>

llvm::raw_ostream&
operator<<(
    llvm::raw_ostream& OS,
    Value const& V);

Description

The formatting is compact (no extra whitespace) and deterministic. For pretty-printing, use the formatv() format_provider below.

Return Value

OS after writing compact JSON for V.

Parameters

NameDescription
OSStream to write JSON to.
VValue to serialize.