clang
19.0.0git
|
Separator format of integer literals of different bases. More...
#include "clang/Format/Format.h"
Public Member Functions | |
bool | operator== (const IntegerLiteralSeparatorStyle &R) const |
Public Attributes | |
int8_t | Binary |
Format separators in binary literals. More... | |
int8_t | BinaryMinDigits |
Format separators in binary literals with a minimum number of digits. More... | |
int8_t | Decimal |
Format separators in decimal literals. More... | |
int8_t | DecimalMinDigits |
Format separators in decimal literals with a minimum number of digits. More... | |
int8_t | Hex |
Format separators in hexadecimal literals. More... | |
int8_t | HexMinDigits |
Format separators in hexadecimal literals with a minimum number of digits. More... | |
Separator format of integer literals of different bases.
If negative, remove separators. If 0
, leave the literal as is. If positive, insert separators between digits starting from the rightmost digit.
For example, the config below will leave separators in binary literals alone, insert separators in decimal literals to separate the digits into groups of 3, and remove separators in hexadecimal literals.
You can also specify a minimum number of digits (BinaryMinDigits
, DecimalMinDigits
, and HexMinDigits
) the integer literal must have in order for the separators to be inserted.
|
inline |
Definition at line 3008 of file Format.h.
References Binary, BinaryMinDigits, Decimal, DecimalMinDigits, Hex, and HexMinDigits.
int8_t clang::format::FormatStyle::IntegerLiteralSeparatorStyle::Binary |
Format separators in binary literals.
Definition at line 2968 of file Format.h.
Referenced by operator==().
int8_t clang::format::FormatStyle::IntegerLiteralSeparatorStyle::BinaryMinDigits |
Format separators in binary literals with a minimum number of digits.
Definition at line 2976 of file Format.h.
Referenced by operator==().
int8_t clang::format::FormatStyle::IntegerLiteralSeparatorStyle::Decimal |
Format separators in decimal literals.
Definition at line 2983 of file Format.h.
Referenced by operator==().
int8_t clang::format::FormatStyle::IntegerLiteralSeparatorStyle::DecimalMinDigits |
Format separators in decimal literals with a minimum number of digits.
Definition at line 2991 of file Format.h.
Referenced by operator==().
int8_t clang::format::FormatStyle::IntegerLiteralSeparatorStyle::Hex |
Format separators in hexadecimal literals.
Definition at line 2998 of file Format.h.
Referenced by operator==().
int8_t clang::format::FormatStyle::IntegerLiteralSeparatorStyle::HexMinDigits |
Format separators in hexadecimal literals with a minimum number of digits.
Definition at line 3007 of file Format.h.
Referenced by operator==().