LLVM 19.0.0git
Static Public Member Functions | List of all members
llvm::format_provider< llvm::json::Value > Struct Reference

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

#include "llvm/Support/JSON.h"

Static Public Member Functions

static 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 1096 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 

Definition at line 925 of file JSON.cpp.

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

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