LLVM 20.0.0git
|
#include "llvm/Support/FormatVariadic.h"
Public Member Functions | |
void | format (raw_ostream &S) const |
std::string | str () const |
template<unsigned N> | |
SmallString< N > | sstr () const |
template<unsigned N> | |
operator SmallString< N > () const | |
operator std::string () const | |
Static Public Member Functions | |
static SmallVector< ReplacementItem, 2 > | parseFormatString (StringRef Fmt) |
static std::optional< ReplacementItem > | parseReplacementItem (StringRef Spec) |
Protected Member Functions | |
formatv_object_base (StringRef Fmt, ArrayRef< support::detail::format_adapter * > Adapters) | |
formatv_object_base (formatv_object_base const &rhs)=delete | |
formatv_object_base (formatv_object_base &&rhs)=default | |
Static Protected Member Functions | |
static bool | consumeFieldLayout (StringRef &Spec, AlignStyle &Where, size_t &Align, char &Pad) |
static std::pair< ReplacementItem, StringRef > | splitLiteralAndReplacement (StringRef Fmt) |
Protected Attributes | |
StringRef | Fmt |
ArrayRef< support::detail::format_adapter * > | Adapters |
Definition at line 66 of file FormatVariadic.h.
|
inlineprotected |
Definition at line 77 of file FormatVariadic.h.
|
protecteddelete |
|
protecteddefault |
|
staticprotected |
Definition at line 28 of file FormatVariadic.cpp.
References llvm::Failed(), llvm::Right, and translateLocChar().
Referenced by parseReplacementItem().
|
inline |
Definition at line 85 of file FormatVariadic.h.
References Adapters, llvm::Empty, Fmt, llvm::Literal, and parseFormatString().
Referenced by llvm::raw_ostream::operator<<().
|
inline |
Definition at line 123 of file FormatVariadic.h.
|
inline |
Definition at line 125 of file FormatVariadic.h.
References str().
|
static |
Definition at line 144 of file FormatVariadic.cpp.
References llvm::StringRef::empty(), llvm::Empty, Fmt, I, llvm::SmallVectorTemplateBase< T, bool >::push_back(), and splitLiteralAndReplacement().
Referenced by format().
|
static |
Definition at line 59 of file FormatVariadic.cpp.
References assert(), llvm::StringRef::consume_front(), consumeFieldLayout(), llvm::StringRef::consumeInteger(), llvm::StringRef::empty(), Options, llvm::Right, and llvm::StringRef::trim().
Referenced by splitLiteralAndReplacement().
|
staticprotected |
Definition at line 93 of file FormatVariadic.cpp.
References assert(), llvm::CallingConv::C, llvm::StringRef::drop_front(), llvm::StringRef::empty(), llvm::StringRef::find_first_of(), Fmt, llvm::StringRef::front(), llvm::StringRef::npos, parseReplacementItem(), llvm::Right, llvm::StringRef::size(), llvm::StringRef::slice(), llvm::StringRef::substr(), llvm::StringRef::take_front(), and llvm::StringRef::take_while().
Referenced by parseFormatString().
|
inline |
Definition at line 116 of file FormatVariadic.h.
|
inline |
Definition at line 108 of file FormatVariadic.h.
References llvm::raw_ostream::flush().
Referenced by operator std::string().
|
protected |
Definition at line 69 of file FormatVariadic.h.
Referenced by format(), and llvm::formatv_object< Tuple >::formatv_object().
|
protected |
Definition at line 68 of file FormatVariadic.h.
Referenced by format(), parseFormatString(), and splitLiteralAndReplacement().