LLVM 20.0.0git
|
This is a helper class used for handling formatted output. More...
#include "llvm/Support/Format.h"
Public Member Functions | |
format_object_base (const char *fmt) | |
unsigned | print (char *Buffer, unsigned BufferSize) const |
Format the object into the specified buffer. | |
Protected Member Functions | |
~format_object_base ()=default | |
format_object_base (const format_object_base &)=default | |
virtual void | home () |
virtual int | snprint (char *Buffer, unsigned BufferSize) const =0 |
Call snprintf() for this object, on the given buffer and size. | |
Protected Attributes | |
const char * | Fmt |
This is a helper class used for handling formatted output.
It is the abstract base class of a templated derived class.
|
protecteddefault |
|
protecteddefault |
|
protectedvirtual |
Definition at line 560 of file raw_ostream.cpp.
Format the object into the specified buffer.
On success, this returns the length of the formatted string. If the buffer is too small, this returns a length to retry with, which will be larger than BufferSize.
Definition at line 55 of file Format.h.
References assert(), N, and snprint().
Referenced by llvm::raw_ostream::operator<<().
|
protectedpure virtual |
Call snprintf() for this object, on the given buffer and size.
Implemented in llvm::format_object< Ts >.
Referenced by print().