struct FormatStyle::BraceWrappingFlags
Declaration
struct FormatStyle::BraceWrappingFlags { /* full declaration omitted */ };
Description
Precise control over the wrapping of braces.
Declared at: clang/include/clang/Format/Format.h:1406
Member Variables
- public bool AfterCaseLabel
- Wrap case labels.
- public bool AfterClass
- Wrap class definitions.
- public clang::format::FormatStyle:: BraceWrappingAfterControlStatementStyle AfterControlStatement
- Wrap control statements (``if``/``for``/``while``/``switch``/..).
- public bool AfterEnum
- Wrap enum definitions.
- public bool AfterFunction
- Wrap function definitions.
- public bool AfterNamespace
- Wrap namespace definitions.
- public bool AfterObjCDeclaration
- Wrap ObjC definitions (interfaces, implementations...).
- public bool AfterStruct
- Wrap struct definitions.
- public bool AfterUnion
- Wrap union definitions.
- public bool AfterExternBlock
- Wrap extern blocks.
- public bool BeforeCatch
- Wrap before ``catch``.
- public bool BeforeElse
- Wrap before ``else``.
- public bool BeforeLambdaBody
- Wrap lambda block.
- public bool BeforeWhile
- Wrap before ``while``.
- public bool IndentBraces
- Indent the wrapped braces themselves.
- public bool 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).
- public bool 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.
- public bool SplitEmptyNamespace
- If ``false``, empty namespace body can be put on a single line. This option is used only if the opening brace of the namespace has already been wrapped, i.e. the `AfterNamespace` brace wrapping mode is set.