enum FormatStyle::BraceBreakingStyle
Description
Different ways to attach braces to their surrounding context.
Declared at: clang/include/clang/Format/Format.h:931
Enumerators
| Name | Value | Comment |
|---|---|---|
| BS_Attach | 0 | Always attach braces to surrounding context. |
| BS_Linux | 1 | Like ``Attach``, but break before braces on function, namespace and class definitions. |
| BS_Mozilla | 2 | Like ``Attach``, but break before braces on enum, function, and record definitions. |
| BS_Stroustrup | 3 | Like ``Attach``, but break before function definitions, ``catch``, and ``else``. |
| BS_Allman | 4 | Always break before braces. |
| BS_Whitesmiths | 5 | Like ``Allman`` but always indent braces and line up code with braces. |
| BS_GNU | 6 | Always break before braces and add an extra level of indentation to braces of control statements, not to those of class, function or other definitions. |
| BS_WebKit | 7 | Like ``Attach``, but break before functions. |
| BS_Custom | 8 | Configure each individual brace in `BraceWrapping`. |