LLVM 20.0.0git
|
Implementation of format_provider<T> for integral pointer types. More...
#include "llvm/Support/FormatProviders.h"
Static Public Member Functions | |
static void | format (const T &V, llvm::raw_ostream &Stream, StringRef Style) |
Additional Inherited Members | |
Static Protected Member Functions inherited from llvm::support::detail::HelperFunctions | |
static std::optional< size_t > | parseNumericPrecision (StringRef Str) |
static std::optional< HexPrintStyle > | consumeHexStyle (StringRef &Str) |
static size_t | consumeNumHexDigits (StringRef &Str, HexPrintStyle Style, size_t Default) |
Implementation of format_provider<T> for integral pointer types.
The options string of a pointer type has the grammar:
pointer_options :: [style][precision] style :: digits :: <non-negative integer> 0-sizeof(void*)
| x- | Hex no prefix, lower | 0xDEADBEEF | deadbeef | | X- | Hex no prefix, upper | 0xDEADBEEF | DEADBEEF | | x+ / x | Hex + prefix, lower | 0xDEADBEEF | 0xdeadbeef | | X+ / X | Hex + prefix, upper | 0xDEADBEEF | 0xDEADBEEF |
The default precision is the number of nibbles in a machine word, and in all cases indicates the minimum number of nibbles to print.
Definition at line 177 of file FormatProviders.h.
|
inlinestatic |
Definition at line 182 of file FormatProviders.h.
References llvm::PrefixUpper, and llvm::write_hex().