|
clang 24.0.0git
|
Alignment options. More...
#include "clang/Format/Format.h"
Public Member Functions | |
| bool | operator== (const AlignConsecutiveStyle &R) const |
| bool | operator!= (const AlignConsecutiveStyle &R) const |
Public Attributes | |
| bool | Enabled |
| Whether aligning is enabled. | |
| bool | AcrossEmptyLines |
| Whether to align across empty lines. | |
| bool | AcrossComments |
| Whether to align across comments. | |
| bool | AlignCompound |
| Only for AlignConsecutiveAssignments. | |
| bool | AlignFunctionDeclarations |
| Only for AlignConsecutiveDeclarations. | |
| bool | AlignFunctionPointers |
| Only for AlignConsecutiveDeclarations. | |
| bool | EnumAssignments |
| Only for AlignConsecutiveAssignments. | |
| bool | PadOperators |
| Only for AlignConsecutiveAssignments. | |
Alignment options.
They can also be read as a whole for compatibility. The choices are:
For example, to align across empty lines and not across comments, either of these work.
|
inline |
|
inline |
Definition at line 258 of file Format.h.
References AcrossComments, AcrossEmptyLines, AlignCompound, AlignFunctionDeclarations, AlignFunctionPointers, Enabled, EnumAssignments, and PadOperators.
| bool clang::format::FormatStyle::AlignConsecutiveStyle::AcrossComments |
Whether to align across comments.
Definition at line 191 of file Format.h.
Referenced by operator==().
| bool clang::format::FormatStyle::AlignConsecutiveStyle::AcrossEmptyLines |
Whether to align across empty lines.
Definition at line 178 of file Format.h.
Referenced by operator==().
| bool clang::format::FormatStyle::AlignConsecutiveStyle::AlignCompound |
Only for AlignConsecutiveAssignments.
Whether compound assignments like += are aligned along with =.
Definition at line 203 of file Format.h.
Referenced by operator==().
| bool clang::format::FormatStyle::AlignConsecutiveStyle::AlignFunctionDeclarations |
Only for AlignConsecutiveDeclarations.
Whether function declarations are aligned.
Definition at line 217 of file Format.h.
Referenced by clang::format::getLLVMStyle(), and operator==().
| bool clang::format::FormatStyle::AlignConsecutiveStyle::AlignFunctionPointers |
Only for AlignConsecutiveDeclarations.
Whether function pointers are aligned.
Definition at line 233 of file Format.h.
Referenced by operator==().
| bool clang::format::FormatStyle::AlignConsecutiveStyle::Enabled |
Whether aligning is enabled.
Definition at line 161 of file Format.h.
Referenced by operator==().
| bool clang::format::FormatStyle::AlignConsecutiveStyle::EnumAssignments |
Only for AlignConsecutiveAssignments.
Whether enum assignments are aligned. If Enabled is false, setting this to true forces alignment for enum assignments only. If Enabled is true, enum assignments are always aligned.
Definition at line 238 of file Format.h.
Referenced by operator==().
| bool clang::format::FormatStyle::AlignConsecutiveStyle::PadOperators |
Only 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.
Definition at line 257 of file Format.h.
Referenced by clang::format::getLLVMStyle(), and operator==().