LLVM: llvm::format_object_base Class Reference (original) (raw)
This is a helper class used for handling formatted output. More...
#include "[llvm/Support/Format.h](Format%5F8h%5Fsource.html)"
| 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. |
This is a helper class used for handling formatted output.
It is the abstract base class of a templated derived class.
Definition at line 40 of file Format.h.
| llvm::format_object_base::~format_object_base ( ) | protecteddefault |
|---|
◆ format_object_base() [1/2]
◆ format_object_base() [2/2]
| llvm::format_object_base::format_object_base ( const char * fmt) | inline |
|---|
◆ home()
| void format_object_base::home ( ) | protectedvirtual |
|---|
◆ print()
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 56 of file Format.h.
References assert(), N, and snprint().
Referenced by llvm::raw_ostream::operator<<().
◆ snprint()
| virtual int llvm::format_object_base::snprint ( char * Buffer, unsigned BufferSize ) const | protectedpure virtual |
|---|
◆ Fmt
The documentation for this class was generated from the following files:
- include/llvm/Support/Format.h
- lib/Support/raw_ostream.cpp