llvm::format_object

Captures a printf-style format string and values for deferred formatting.

Synopsis

Declared in <llvm/Support/Format.h>

template<typename... Ts>
class format_object;

Description

When printed, this synthesizes the string into a temporary buffer and reports whether the buffer was large enough.

Member Functions

NameDescription
format_object [constructor]Construct from format string fmt and argument values vals.
snprint Format into Buffer using the stored format string and values.

Non-Member Functions

NameDescription
formatCreate a printf-style format object from Fmt and Vals.