LLVM
8.0.1
|
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. More... | |
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. More... | |
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 494 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 54 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().
Definition at line 40 of file Format.h.
Referenced by llvm::format().