Alignment options. More...
#include "clang/Format/Format.h"
Alignment options.
They can also be read as a whole for compatibility. The choices are:
None
Consecutive
AcrossEmptyLines
AcrossComments
AcrossEmptyLinesAndComments
For example, to align across empty lines and not across comments, either of these work.
<option-name>:
bool AcrossEmptyLines
Whether to align across empty lines.
bool Enabled
Whether aligning is enabled.
bool AcrossComments
Whether to align across comments.
Definition at line 165 of file Format.h.
◆ operator!=() ◆ operator==() ◆ AcrossComments bool clang::format::FormatStyle::AlignConsecutiveStyle::AcrossCommentsWhether to align across comments.
true:
int d = 3;
double e = 4;
false:
int d = 3;
double e = 4;
Definition at line 216 of file Format.h.
Referenced by operator==().
◆ AcrossEmptyLines bool clang::format::FormatStyle::AlignConsecutiveStyle::AcrossEmptyLinesWhether to align across empty lines.
true:
int a = 1;
int somelongname = 2;
int d = 3;
false:
int a = 1;
int somelongname = 2;
int d = 3;
__device__ __2f16 float c
Definition at line 203 of file Format.h.
Referenced by operator==().
◆ AlignCompound bool clang::format::FormatStyle::AlignConsecutiveStyle::AlignCompoundOnly for AlignConsecutiveAssignments
.
Whether compound assignments like +=
are aligned along with =
.
true:
a &= 2;
bbb = 2;
false:
a &= 2;
bbb = 2;
Definition at line 228 of file Format.h.
Referenced by operator==().
◆ AlignFunctionDeclarations bool clang::format::FormatStyle::AlignConsecutiveStyle::AlignFunctionDeclarationsOnly for AlignConsecutiveDeclarations
.
Whether function declarations are aligned.
true:
unsigned int f1(void);
void f2(void);
size_t f3(void);
false:
unsigned int f1(void);
void f2(void);
size_t f3(void);
Definition at line 242 of file Format.h.
Referenced by clang::format::getLLVMStyle(), and operator==().
◆ AlignFunctionPointers bool clang::format::FormatStyle::AlignConsecutiveStyle::AlignFunctionPointersOnly for AlignConsecutiveDeclarations
.
Whether function pointers are aligned.
true:
unsigned i;
int &r;
int *p;
false:
unsigned i;
int &r;
int *p;
Definition at line 258 of file Format.h.
Referenced by operator==().
◆ Enabled bool clang::format::FormatStyle::AlignConsecutiveStyle::EnabledWhether aligning is enabled.
#define SHORT_NAME 42
#define LONGER_NAME 0x007f
#define EVEN_LONGER_NAME (2)
#define foo(x) (x * x)
#define bar(y, z) (y + z)
int a = 1;
int somelongname = 2;
int aaaa : 1;
int ccc : 8;
int aaaa = 12;
std::string ccc;
Definition at line 186 of file Format.h.
Referenced by operator==().
◆ PadOperators bool clang::format::FormatStyle::AlignConsecutiveStyle::PadOperatorsOnly for AlignConsecutiveAssignments
.
Whether short assignment operators are left-padded to the same length as long ones in order to put all assignment operators to the right of the left hand side.
true:
a >>= 2;
bbb = 2;
a = 2;
bbb >>= 2;
false:
a >>= 2;
bbb = 2;
a = 2;
bbb >>= 2;
Definition at line 277 of file Format.h.
Referenced by clang::format::getLLVMStyle(), and operator==().
The documentation for this struct was generated from the following file:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4