enum FormatStyle::BraceBreakingStyle

Description

Different ways to attach braces to their surrounding context.

Declared at: clang/include/clang/Format/Format.h:931

Enumerators

NameValueComment
BS_Attach0Always attach braces to surrounding context.
BS_Linux1Like ``Attach``, but break before braces on function, namespace and class definitions.
BS_Mozilla2Like ``Attach``, but break before braces on enum, function, and record definitions.
BS_Stroustrup3Like ``Attach``, but break before function definitions, ``catch``, and ``else``.
BS_Allman4Always break before braces.
BS_Whitesmiths5Like ``Allman`` but always indent braces and line up code with braces.
BS_GNU6Always 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_WebKit7Like ``Attach``, but break before functions.
BS_Custom8Configure each individual brace in `BraceWrapping`.