clang 20.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. | |
int8_t | BinaryMinDigits |
Format separators in binary literals with a minimum number of digits. | |
int8_t | Decimal |
Format separators in decimal literals. | |
int8_t | DecimalMinDigits |
Format separators in decimal literals with a minimum number of digits. | |
int8_t | Hex |
Format separators in hexadecimal literals. | |
int8_t | HexMinDigits |
Format separators in hexadecimal literals with a minimum number of digits. | |
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 3076 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 3036 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 3044 of file Format.h.
Referenced by operator==().
int8_t clang::format::FormatStyle::IntegerLiteralSeparatorStyle::Decimal |
Format separators in decimal literals.
Definition at line 3051 of file Format.h.
Referenced by clang::format::getClangFormatStyle(), and operator==().
int8_t clang::format::FormatStyle::IntegerLiteralSeparatorStyle::DecimalMinDigits |
Format separators in decimal literals with a minimum number of digits.
Definition at line 3059 of file Format.h.
Referenced by clang::format::getClangFormatStyle(), and operator==().
int8_t clang::format::FormatStyle::IntegerLiteralSeparatorStyle::Hex |
Format separators in hexadecimal literals.
Definition at line 3066 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 3075 of file Format.h.
Referenced by operator==().