llvm::HexNumber

A numeric value formatted as hexadecimal when streamed.

Synopsis

Declared in <llvm/Support/ScopedPrinter.h>

struct HexNumber;

Description

To avoid sign-extension we have to explicitly cast to the appropriate unsigned type. The overloads are here so that every type that is implicitly convertible to an integer (including endian helpers) can be used without requiring type traits or call-site changes.

Member Functions

NameDescription
HexNumber [constructor]Constructors

Data Members

NameDescription
Value The stored unsigned integer value.