LLVM  8.0.1
Classes | Namespaces | Functions
Format.h File Reference
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/DataTypes.h"
#include <cassert>
#include <cstdio>
#include <tuple>
Include dependency graph for Format.h:

Go to the source code of this file.

Classes

class  llvm::format_object_base
 This is a helper class used for handling formatted output. More...
 
struct  llvm::validate_format_parameters< Args >
 These are templated helper classes used by the format function that capture the object to be formatted and the format string. More...
 
struct  llvm::validate_format_parameters< Arg, Args... >
 
struct  llvm::validate_format_parameters<>
 
class  llvm::format_object< Ts >
 
class  llvm::FormattedString
 This is a helper class for left_justify, right_justify, and center_justify. More...
 
class  llvm::FormattedNumber
 This is a helper class used for format_hex() and format_decimal(). More...
 
class  llvm::FormattedBytes
 

Namespaces

 llvm
 This class represents lattice values for constants.
 

Functions

template<typename... Ts>
format_object< Ts... > llvm::format (const char *Fmt, const Ts &... Vals)
 These are helper functions used to produce formatted output. More...
 
FormattedString llvm::left_justify (StringRef Str, unsigned Width)
 left_justify - append spaces after string so total output is Width characters. More...
 
FormattedString llvm::right_justify (StringRef Str, unsigned Width)
 right_justify - add spaces before string so total output is Width characters. More...
 
FormattedString llvm::center_justify (StringRef Str, unsigned Width)
 center_justify - add spaces before and after string so total output is Width characters. More...
 
FormattedNumber llvm::format_hex (uint64_t N, unsigned Width, bool Upper=false)
 format_hex - Output N as a fixed width hexadecimal. More...
 
FormattedNumber llvm::format_hex_no_prefix (uint64_t N, unsigned Width, bool Upper=false)
 format_hex_no_prefix - Output N as a fixed width hexadecimal. More...
 
FormattedNumber llvm::format_decimal (int64_t N, unsigned Width)
 format_decimal - Output N as a right justified, fixed-width decimal. More...
 
FormattedBytes llvm::format_bytes (ArrayRef< uint8_t > Bytes, Optional< uint64_t > FirstByteOffset=None, uint32_t NumPerLine=16, uint8_t ByteGroupSize=4, uint32_t IndentLevel=0, bool Upper=false)
 
FormattedBytes llvm::format_bytes_with_ascii (ArrayRef< uint8_t > Bytes, Optional< uint64_t > FirstByteOffset=None, uint32_t NumPerLine=16, uint8_t ByteGroupSize=4, uint32_t IndentLevel=0, bool Upper=false)