diff --git a/clang/include/clang/Format/Format.h b/clang/include/clang/Format/Format.h index fcbe0a7e9322ab..d44110caeaee24 100644 --- a/clang/include/clang/Format/Format.h +++ b/clang/include/clang/Format/Format.h @@ -642,19 +642,31 @@ struct FormatStyle { BS_Stroustrup, /// Always break before braces. /// \code - /// try { + /// try + /// { /// foo(); /// } - /// catch () { + /// catch () + /// { /// } - /// void foo() { bar(); } - /// class foo { + /// void foo() + /// { + /// bar1(); + /// } + /// class foo + /// { /// }; - /// if (foo()) { + /// if (foo()) + /// { /// } - /// else { + /// else + /// { /// } - /// enum X : int { A, B }; + /// enum X : int + /// { + /// A, + /// B + /// }; /// \endcode BS_Allman, /// Always break before braces and add an extra level of indentation to