This is a helper class used for format_hex() and format_decimal().

Synopsis

Declared in <llvm/Support/Format.h>

class FormattedNumber;

Member Functions

Name

Description

FormattedNumber [constructor]

Construct a number formatter with value, width, and hex/decimal style.

Friends

Name

Description

llvm::raw_ostream

Extremely fast bulk output stream that only supports sequential writing.

Non-Member Functions

Name

Description

format_decimal

Output N as a right‐justified, fixed‐width decimal.

format_hex

Output N as a fixed‐width hexadecimal value with a "0x" prefix.

format_hex_no_prefix

Output N as a fixed‐width hexadecimal value without a "0x" prefix.

logicalview::decValue

Format N as a decimal FormattedNumber with the given field width.

logicalview::hexValue

Format N as a hexadecimal FormattedNumber with the given field width.

Created with MrDocs