LLVM 20.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 1098 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 921 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: