class format_object_base

Declaration

class format_object_base { /* full declaration omitted */ };

Description

This is a helper class used for handling formatted output. It is the abstract base class of a templated derived class.

Declared at: llvm/include/llvm/Support/Format.h:38

Member Variables

protected const char* Fmt

Method Overview

Methods

format_object_base(
    const llvm::format_object_base&)

Declared at: llvm/include/llvm/Support/Format.h:42

Parameters

const llvm::format_object_base&

format_object_base(const char* fmt)

Declared at: llvm/include/llvm/Support/Format.h:49

Parameters

const char* fmt

virtual void home()

Declared at: llvm/include/llvm/Support/Format.h:43

unsigned int print(char* Buffer,
                   unsigned int BufferSize) const

Description

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.

Declared at: llvm/include/llvm/Support/Format.h:54

Parameters

char* Buffer
unsigned int BufferSize

virtual int snprint(char* Buffer,
                    unsigned int BufferSize) const

Description

Call snprintf() for this object, on the given buffer and size.

Declared at: llvm/include/llvm/Support/Format.h:46

Parameters

char* Buffer
unsigned int BufferSize

~format_object_base()

Declared at: llvm/include/llvm/Support/Format.h:41