LLVM
8.0.1
|
#include "llvm/Support/FormatVariadic.h"
Classes | |
struct | create_adapters |
Public Member Functions | |
formatv_object_base (StringRef Fmt, std::size_t ParamCount) | |
formatv_object_base (formatv_object_base const &rhs)=delete | |
formatv_object_base (formatv_object_base &&rhs) | |
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 std::vector< ReplacementItem > | parseFormatString (StringRef Fmt) |
static Optional< ReplacementItem > | parseReplacementItem (StringRef Spec) |
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 |
std::vector< detail::format_adapter * > | Adapters |
std::vector< ReplacementItem > | Replacements |
Definition at line 65 of file FormatVariadic.h.
|
inline |
Definition at line 92 of file FormatVariadic.h.
|
delete |
|
inline |
Definition at line 99 of file FormatVariadic.h.
References Adapters.
|
staticprotected |
Definition at line 27 of file FormatVariadic.cpp.
References llvm::StringRef::consumeInteger(), llvm::StringRef::drop_front(), llvm::StringRef::empty(), llvm::Failed(), llvm::Right, llvm::StringRef::size(), and translateLocChar().
Referenced by parseReplacementItem().
|
inline |
Definition at line 106 of file FormatVariadic.h.
References llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Align, llvm::Empty, llvm::FmtAlign::format(), llvm::Literal, and llvm::RISCVFenceField::W.
Referenced by llvm::raw_ostream::operator<<().
|
inline |
Definition at line 144 of file FormatVariadic.h.
|
inline |
Definition at line 146 of file FormatVariadic.h.
|
static |
Definition at line 145 of file FormatVariadic.cpp.
References llvm::Empty, llvm::StringRef::empty(), I, Replacements, splitLiteralAndReplacement(), and llvm::ReplacementItem::Type.
|
static |
Definition at line 58 of file FormatVariadic.cpp.
References llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Align, assert(), consumeFieldLayout(), llvm::StringRef::consumeInteger(), llvm::StringRef::drop_front(), llvm::StringRef::empty(), llvm::StringRef::front(), llvm::Right, and llvm::StringRef::trim().
Referenced by splitLiteralAndReplacement().
|
staticprotected |
Definition at line 93 of file FormatVariadic.cpp.
References assert(), C, llvm::StringRef::drop_front(), llvm::StringRef::find_first_of(), From, llvm::StringRef::npos, parseReplacementItem(), llvm::Right, llvm::StringRef::size(), llvm::StringRef::slice(), llvm::StringRef::substr(), and llvm::StringRef::take_while().
Referenced by parseFormatString().
|
inline |
Definition at line 137 of file FormatVariadic.h.
|
inline |
Definition at line 129 of file FormatVariadic.h.
References llvm::raw_ostream::flush().
|
protected |
Definition at line 82 of file FormatVariadic.h.
Referenced by formatv_object_base().
|
protected |
Definition at line 81 of file FormatVariadic.h.
|
protected |
Definition at line 83 of file FormatVariadic.h.
Referenced by parseFormatString().