LLVM  4.0.0
Functions
NativeFormatting.cpp File Reference
#include "llvm/Support/NativeFormatting.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/Format.h"
Include dependency graph for NativeFormatting.cpp:

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

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

Definition at line 20 of file NativeFormatting.cpp.

References llvm::sys::path::end().

Referenced by write_unsigned_impl().

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

Definition at line 87 of file NativeFormatting.cpp.

References write_unsigned().

Referenced by llvm::write_integer().

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

Definition at line 76 of file NativeFormatting.cpp.

References write_unsigned_impl().

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

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