clang
7.0.0
|
Precise control over the wrapping of braces. More...
#include "clang/Format/Format.h"
Public Attributes | |
bool | AfterClass |
Wrap class definitions. More... | |
bool | AfterControlStatement |
Wrap control statements (if /for /while /switch /..). More... | |
bool | AfterEnum |
Wrap enum definitions. More... | |
bool | AfterFunction |
Wrap function definitions. More... | |
bool | AfterNamespace |
Wrap namespace definitions. More... | |
bool | AfterObjCDeclaration |
Wrap ObjC definitions (interfaces, implementations...). More... | |
bool | AfterStruct |
Wrap struct definitions. More... | |
bool | AfterUnion |
Wrap union definitions. More... | |
bool | AfterExternBlock |
Wrap extern blocks. More... | |
bool | BeforeCatch |
Wrap before catch . More... | |
bool | BeforeElse |
Wrap before else . More... | |
bool | IndentBraces |
Indent the wrapped braces themselves. More... | |
bool | SplitEmptyFunction |
If false , empty function body can be put on a single line. More... | |
bool | SplitEmptyRecord |
If false , empty record (e.g. More... | |
bool | SplitEmptyNamespace |
If false , empty namespace body can be put on a single line. More... | |
Precise control over the wrapping of braces.
bool clang::format::FormatStyle::BraceWrappingFlags::AfterClass |
Wrap class definitions.
Definition at line 634 of file Format.h.
Referenced by clang::format::expandPresets(), and clang::format::ShouldBreakBeforeBrace().
bool clang::format::FormatStyle::BraceWrappingFlags::AfterControlStatement |
Wrap control statements (if
/for
/while
/switch
/..).
Definition at line 652 of file Format.h.
Referenced by clang::format::CompoundStatementIndenter::CompoundStatementIndenter(), and clang::format::expandPresets().
bool clang::format::FormatStyle::BraceWrappingFlags::AfterEnum |
Wrap enum definitions.
Definition at line 664 of file Format.h.
Referenced by clang::format::expandPresets().
bool clang::format::FormatStyle::BraceWrappingFlags::AfterExternBlock |
Wrap extern blocks.
Definition at line 742 of file Format.h.
Referenced by clang::format::expandPresets().
bool clang::format::FormatStyle::BraceWrappingFlags::AfterFunction |
Wrap function definitions.
Definition at line 680 of file Format.h.
Referenced by clang::format::expandPresets().
bool clang::format::FormatStyle::BraceWrappingFlags::AfterNamespace |
Wrap namespace definitions.
Definition at line 696 of file Format.h.
Referenced by clang::format::expandPresets(), and clang::format::ShouldBreakBeforeBrace().
bool clang::format::FormatStyle::BraceWrappingFlags::AfterObjCDeclaration |
Wrap ObjC definitions (interfaces, implementations...).
AfterControlStatement
flag. Definition at line 700 of file Format.h.
Referenced by clang::format::expandPresets().
bool clang::format::FormatStyle::BraceWrappingFlags::AfterStruct |
Wrap struct definitions.
Definition at line 714 of file Format.h.
Referenced by clang::format::expandPresets(), and clang::format::ShouldBreakBeforeBrace().
bool clang::format::FormatStyle::BraceWrappingFlags::AfterUnion |
Wrap union definitions.
Definition at line 728 of file Format.h.
Referenced by clang::format::expandPresets(), and clang::format::ShouldBreakBeforeBrace().
bool clang::format::FormatStyle::BraceWrappingFlags::BeforeCatch |
Wrap before catch
.
Definition at line 758 of file Format.h.
Referenced by clang::format::expandPresets().
bool clang::format::FormatStyle::BraceWrappingFlags::BeforeElse |
Wrap before else
.
Definition at line 772 of file Format.h.
Referenced by clang::format::expandPresets().
bool clang::format::FormatStyle::BraceWrappingFlags::IndentBraces |
Indent the wrapped braces themselves.
Definition at line 774 of file Format.h.
Referenced by clang::format::CompoundStatementIndenter::CompoundStatementIndenter().
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 786 of file Format.h.
Referenced by clang::format::expandPresets().
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 797 of file Format.h.
Referenced by clang::format::expandPresets().