From c7fdfa0e73876f9d1381409f20503ee2425d3809 Mon Sep 17 00:00:00 2001 From: Robert Andrzejuk Date: Fri, 10 May 2019 23:41:07 +0200 Subject: [PATCH] Fix "Allman" style example --- clang/include/clang/Format/Format.h | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/clang/include/clang/Format/Format.h b/clang/include/clang/Format/Format.h index fcbe0a7e9322a..d44110caeaee2 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