clang 17.0.0git
|
Separator format of integer literals of different bases. More...
#include "clang/Format/Format.h"
Public Attributes | |
int8_t | Binary |
Format separators in binary literals. | |
int8_t | Decimal |
Format separators in decimal literals. | |
int8_t | Hex |
Format separators in hexadecimal literals. | |
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.
int8_t clang::format::FormatStyle::IntegerLiteralSeparatorStyle::Binary |
Format separators in binary literals.
Definition at line 2511 of file Format.h.
Referenced by clang::format::FormatStyle::operator==().
int8_t clang::format::FormatStyle::IntegerLiteralSeparatorStyle::Decimal |
Format separators in decimal literals.
Definition at line 2518 of file Format.h.
Referenced by clang::format::FormatStyle::operator==().
int8_t clang::format::FormatStyle::IntegerLiteralSeparatorStyle::Hex |
Format separators in hexadecimal literals.
Definition at line 2525 of file Format.h.
Referenced by clang::format::FormatStyle::operator==().