9#ifndef LLVM_SUPPORT_FORMATADAPTERS_H
10#define LLVM_SUPPORT_FORMATADAPTERS_H
56 Adapter.format(Stream, Style);
70 for (
size_t I = 0;
I < Count; ++
I) {
71 Adapter.format(Stream, Style);
90 size_t Amount,
char Fill =
' ') {
Lightweight error class with error context and mandatory checking.
StringRef - Represent a constant reference to a string, i.e.
This class implements an extremely fast bulk output stream that can only output to a stream.
raw_ostream & indent(unsigned NumSpaces)
indent - Insert 'NumSpaces' spaces.
void format(llvm::raw_ostream &Stream, StringRef Style) override
AlignAdapter(T &&Item, AlignStyle Where, size_t Amount, char Fill)
ErrorAdapter(Error &&Item)
void format(llvm::raw_ostream &Stream, StringRef Style) override
ErrorAdapter(ErrorAdapter &&)=default
PadAdapter(T &&Item, size_t Left, size_t Right)
void format(llvm::raw_ostream &Stream, StringRef Style) override
void format(llvm::raw_ostream &Stream, StringRef Style) override
RepeatAdapter(T &&Item, size_t Count)
std::enable_if_t< uses_format_member< T >::value, T > build_format_adapter(T &&Item)
This is an optimization pass for GlobalISel generic memory operations.
support::detail::ErrorAdapter fmt_consume(Error &&Item)
support::detail::PadAdapter< T > fmt_pad(T &&Item, size_t Left, size_t Right)
support::detail::RepeatAdapter< T > fmt_repeat(T &&Item, size_t Count)
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
support::detail::AlignAdapter< T > fmt_align(T &&Item, AlignStyle Where, size_t Amount, char Fill=' ')
void consumeError(Error Err)
Consume a Error without doing anything.
Implement std::hash so that hash_code can be used in STL containers.
void format(raw_ostream &S, StringRef Options)