LLVM 22.0.0git
llvm::formatv_object_base Class Reference

#include "llvm/Support/FormatVariadic.h"

Inheritance diagram for llvm::formatv_object_base:
[legend]

Public Member Functions

void format (raw_ostream &S) const
std::string str () const
template<unsigned N>
SmallString< Nsstr () const
template<unsigned N>
 operator SmallString< N > () const
 operator std::string () const

Static Public Member Functions

static LLVM_ABI SmallVector< ReplacementItem, 2 > parseFormatString (StringRef Fmt, size_t NumArgs, bool Validate)

Protected Member Functions

 formatv_object_base (StringRef Fmt, ArrayRef< support::detail::format_adapter * > Adapters, bool Validate)
 formatv_object_base (formatv_object_base const &rhs)=delete
 formatv_object_base (formatv_object_base &&rhs)=default

Protected Attributes

StringRef Fmt
ArrayRef< support::detail::format_adapter * > Adapters
bool Validate

Detailed Description

Definition at line 66 of file FormatVariadic.h.

Constructor & Destructor Documentation

◆ formatv_object_base() [1/3]

llvm::formatv_object_base::formatv_object_base ( StringRef Fmt,
ArrayRef< support::detail::format_adapter * > Adapters,
bool Validate )
inlineprotected

◆ formatv_object_base() [2/3]

llvm::formatv_object_base::formatv_object_base ( formatv_object_base const & rhs)
protecteddelete

References formatv_object_base().

◆ formatv_object_base() [3/3]

llvm::formatv_object_base::formatv_object_base ( formatv_object_base && rhs)
protecteddefault

References formatv_object_base().

Member Function Documentation

◆ format()

void llvm::formatv_object_base::format ( raw_ostream & S) const
inline

Definition at line 81 of file FormatVariadic.h.

References Adapters, Fmt, llvm::Literal, parseFormatString(), and Validate.

Referenced by llvm::raw_ostream::operator<<().

◆ operator SmallString< N >()

template<unsigned N>
llvm::formatv_object_base::operator SmallString< N > ( ) const
inline

Definition at line 119 of file FormatVariadic.h.

References sstr().

◆ operator std::string()

llvm::formatv_object_base::operator std::string ( ) const
inline

Definition at line 121 of file FormatVariadic.h.

References str().

◆ parseFormatString()

SmallVector< ReplacementItem, 2 > formatv_object_base::parseFormatString ( StringRef Fmt,
size_t NumArgs,
bool Validate )
static

◆ sstr()

template<unsigned N>
SmallString< N > llvm::formatv_object_base::sstr ( ) const
inline

Definition at line 112 of file FormatVariadic.h.

Referenced by operator SmallString< N >().

◆ str()

std::string llvm::formatv_object_base::str ( ) const
inline

Definition at line 104 of file FormatVariadic.h.

References llvm::raw_ostream::flush().

Referenced by operator std::string().

Member Data Documentation

◆ Adapters

ArrayRef<support::detail::format_adapter *> llvm::formatv_object_base::Adapters
protected

◆ Fmt

StringRef llvm::formatv_object_base::Fmt
protected

◆ Validate

bool llvm::formatv_object_base::Validate
protected

The documentation for this class was generated from the following files: