clang 20.0.0git
|
Precise control over the wrapping of braces. More...
#include "clang/Format/Format.h"
Public Attributes | |
bool | AfterCaseLabel |
Wrap case labels. | |
bool | AfterClass |
Wrap class definitions. | |
BraceWrappingAfterControlStatementStyle | AfterControlStatement |
Wrap control statements (if /for /while /switch /..). | |
bool | AfterEnum |
Wrap enum definitions. | |
bool | AfterFunction |
Wrap function definitions. | |
bool | AfterNamespace |
Wrap namespace definitions. | |
bool | AfterObjCDeclaration |
Wrap ObjC definitions (interfaces, implementations...). | |
bool | AfterStruct |
Wrap struct definitions. | |
bool | AfterUnion |
Wrap union definitions. | |
bool | AfterExternBlock |
Wrap extern blocks. | |
bool | BeforeCatch |
Wrap before catch . | |
bool | BeforeElse |
Wrap before else . | |
bool | BeforeLambdaBody |
Wrap lambda block. | |
bool | BeforeWhile |
Wrap before while . | |
bool | IndentBraces |
Indent the wrapped braces themselves. | |
bool | SplitEmptyFunction |
If false , empty function body can be put on a single line. | |
bool | SplitEmptyRecord |
If false , empty record (e.g. | |
bool | SplitEmptyNamespace |
If false , empty namespace body can be put on a single line. | |
Precise control over the wrapping of braces.
bool clang::format::FormatStyle::BraceWrappingFlags::AfterCaseLabel |
Wrap case labels.
Definition at line 1365 of file Format.h.
Referenced by clang::format::expandPresetsBraceWrapping().
bool clang::format::FormatStyle::BraceWrappingFlags::AfterClass |
Wrap class definitions.
Definition at line 1375 of file Format.h.
Referenced by clang::format::expandPresetsBraceWrapping(), clang::format::getMicrosoftStyle(), and clang::format::ShouldBreakBeforeBrace().
BraceWrappingAfterControlStatementStyle clang::format::FormatStyle::BraceWrappingFlags::AfterControlStatement |
Wrap control statements (if
/for
/while
/switch
/..).
Definition at line 1378 of file Format.h.
Referenced by clang::format::expandPresetsBraceWrapping(), and clang::format::getMicrosoftStyle().
bool clang::format::FormatStyle::BraceWrappingFlags::AfterEnum |
Wrap enum definitions.
Definition at line 1390 of file Format.h.
Referenced by clang::format::expandPresetsBraceWrapping(), clang::format::getMicrosoftStyle(), and clang::format::ShouldBreakBeforeBrace().
bool clang::format::FormatStyle::BraceWrappingFlags::AfterExternBlock |
Wrap extern blocks.
Definition at line 1470 of file Format.h.
Referenced by clang::format::expandPresetsBraceWrapping(), and clang::format::getMicrosoftStyle().
bool clang::format::FormatStyle::BraceWrappingFlags::AfterFunction |
Wrap function definitions.
Definition at line 1406 of file Format.h.
Referenced by clang::format::expandPresetsBraceWrapping(), and clang::format::getMicrosoftStyle().
bool clang::format::FormatStyle::BraceWrappingFlags::AfterNamespace |
Wrap namespace definitions.
Definition at line 1422 of file Format.h.
Referenced by clang::format::expandPresetsBraceWrapping(), clang::format::getMicrosoftStyle(), and clang::format::ShouldBreakBeforeBrace().
bool clang::format::FormatStyle::BraceWrappingFlags::AfterObjCDeclaration |
Wrap ObjC definitions (interfaces, implementations...).
AfterControlStatement
flag. \endnote Definition at line 1428 of file Format.h.
Referenced by clang::format::expandPresetsBraceWrapping(), and clang::format::getMicrosoftStyle().
bool clang::format::FormatStyle::BraceWrappingFlags::AfterStruct |
Wrap struct definitions.
Definition at line 1442 of file Format.h.
Referenced by clang::format::expandPresetsBraceWrapping(), clang::format::getMicrosoftStyle(), and clang::format::ShouldBreakBeforeBrace().
bool clang::format::FormatStyle::BraceWrappingFlags::AfterUnion |
Wrap union definitions.
Definition at line 1456 of file Format.h.
Referenced by clang::format::expandPresetsBraceWrapping(), and clang::format::ShouldBreakBeforeBrace().
bool clang::format::FormatStyle::BraceWrappingFlags::BeforeCatch |
Wrap before catch
.
Definition at line 1486 of file Format.h.
Referenced by clang::format::expandPresetsBraceWrapping(), and clang::format::getMicrosoftStyle().
bool clang::format::FormatStyle::BraceWrappingFlags::BeforeElse |
Wrap before else
.
Definition at line 1500 of file Format.h.
Referenced by clang::format::expandPresetsBraceWrapping(), and clang::format::getMicrosoftStyle().
bool clang::format::FormatStyle::BraceWrappingFlags::BeforeLambdaBody |
Wrap lambda block.
Definition at line 1517 of file Format.h.
Referenced by clang::format::ContinuationIndenter::canBreak(), clang::format::expandPresetsBraceWrapping(), clang::format::hasNestedBlockInlined(), and clang::format::ContinuationIndenter::mustBreak().
bool clang::format::FormatStyle::BraceWrappingFlags::BeforeWhile |
Wrap before while
.
Definition at line 1531 of file Format.h.
Referenced by clang::format::getMicrosoftStyle().
bool clang::format::FormatStyle::BraceWrappingFlags::IndentBraces |
bool clang::format::FormatStyle::BraceWrappingFlags::SplitEmptyFunction |
If false
, empty function body can be put on a single line.
This option is used only if the opening brace of the function has already been wrapped, i.e. the AfterFunction
brace wrapping mode is set, and the function could/should not be put on a single line (as per AllowShortFunctionsOnASingleLine
and constructor formatting options).
Definition at line 1547 of file Format.h.
Referenced by clang::format::expandPresetsBraceWrapping().
bool clang::format::FormatStyle::BraceWrappingFlags::SplitEmptyNamespace |
bool clang::format::FormatStyle::BraceWrappingFlags::SplitEmptyRecord |
If false
, empty record (e.g.
class, struct or union) body can be put on a single line. This option is used only if the opening brace of the record has already been wrapped, i.e. the AfterClass
(for classes) brace wrapping mode is set.
Definition at line 1559 of file Format.h.
Referenced by clang::format::expandPresetsBraceWrapping().