Index: cfe/trunk/docs/ClangFormatStyleOptions.rst =================================================================== --- cfe/trunk/docs/ClangFormatStyleOptions.rst +++ cfe/trunk/docs/ClangFormatStyleOptions.rst @@ -908,20 +908,17 @@ try { foo(); - } catch () { + } + catch () { } void foo() { bar(); } - class foo - { + class foo { }; if (foo()) { - } else { } - enum X : int - { - A, - B - }; + else { + } + enum X : int { A, B }; * ``BS_Allman`` (in configuration: ``Allman``) Always break before braces. Index: cfe/trunk/include/clang/Format/Format.h =================================================================== --- cfe/trunk/include/clang/Format/Format.h +++ cfe/trunk/include/clang/Format/Format.h @@ -533,20 +533,17 @@ /// \code /// try { /// foo(); - /// } catch () { + /// } + /// catch () { /// } /// void foo() { bar(); } - /// class foo - /// { + /// class foo { /// }; /// if (foo()) { - /// } else { /// } - /// enum X : int - /// { - /// A, - /// B - /// }; + /// else { + /// } + /// enum X : int { A, B }; /// \endcode BS_Stroustrup, /// Always break before braces.