LLVM 22.0.0git
NativeFormatting.cpp File Reference

Go to the source code of this file.

Functions

template<typename T, std::size_t N>
static int format_to_buffer (T Value, char(&Buffer)[N])
static void writeWithCommas (raw_ostream &S, ArrayRef< char > Buffer)
template<typename T>
static void write_unsigned_impl (raw_ostream &S, T N, size_t MinDigits, IntegerStyle Style, bool IsNegative)
template<typename T>
static void write_unsigned (raw_ostream &S, T N, size_t MinDigits, IntegerStyle Style, bool IsNegative=false)
template<typename T>
static void write_signed (raw_ostream &S, T N, size_t MinDigits, IntegerStyle Style)

Function Documentation

◆ format_to_buffer()

template<typename T, std::size_t N>
int format_to_buffer ( T Value,
char(&) Buffer[N] )
static

Definition at line 25 of file NativeFormatting.cpp.

References N, and T.

Referenced by write_unsigned_impl().

◆ write_signed()

template<typename T>
void write_signed ( raw_ostream & S,
T N,
size_t MinDigits,
IntegerStyle Style )
static

Definition at line 89 of file NativeFormatting.cpp.

References N, T, and write_unsigned().

Referenced by llvm::write_integer(), llvm::write_integer(), and llvm::write_integer().

◆ write_unsigned()

template<typename T>
void write_unsigned ( raw_ostream & S,
T N,
size_t MinDigits,
IntegerStyle Style,
bool IsNegative = false )
static

◆ write_unsigned_impl()

template<typename T>
void write_unsigned_impl ( raw_ostream & S,
T N,
size_t MinDigits,
IntegerStyle Style,
bool IsNegative )
static

Definition at line 55 of file NativeFormatting.cpp.

References format_to_buffer(), I, N, llvm::Number, T, llvm::raw_ostream::write(), and writeWithCommas().

Referenced by write_unsigned().

◆ writeWithCommas()