LLVM 22.0.0git
llvm::format_provider< llvm::json::Value > Struct Reference

Allow printing json::Value with formatv(). More...

#include "llvm/Support/JSON.h"

Inheritance diagram for llvm::format_provider< llvm::json::Value >:
[legend]

Static Public Member Functions

static LLVM_ABI void format (const llvm::json::Value &, raw_ostream &, StringRef)

Detailed Description

Allow printing json::Value with formatv().

The default style is basic/compact formatting, like operator<<. A format string like formatv("{0:2}", Value) pretty-prints with indent 2.

Definition at line 1117 of file JSON.h.

Member Function Documentation

◆ format()

void llvm::format_provider< llvm::json::Value >::format ( const llvm::json::Value & E,
raw_ostream & OS,
StringRef Options )
static

Definition at line 914 of file JSON.cpp.

References E(), llvm_unreachable, Options, and llvm::json::OStream::value().


The documentation for this struct was generated from the following files: