diff --git a/clang/docs/ClangFormatStyleOptions.rst b/clang/docs/ClangFormatStyleOptions.rst --- a/clang/docs/ClangFormatStyleOptions.rst +++ b/clang/docs/ClangFormatStyleOptions.rst @@ -1439,12 +1439,12 @@ .. code-block:: c++ true: - class foo {}; - - false: class foo {}; + false: + class foo {}; + * ``BraceWrappingAfterControlStatementStyle AfterControlStatement`` Wrap control statements (``if``/``for``/``while``/``switch``/..). diff --git a/clang/include/clang/Format/Format.h b/clang/include/clang/Format/Format.h --- a/clang/include/clang/Format/Format.h +++ b/clang/include/clang/Format/Format.h @@ -1423,11 +1423,11 @@ /// Wrap class definitions. /// \code /// true: - /// class foo {}; - /// - /// false: /// class foo /// {}; + /// + /// false: + /// class foo {}; /// \endcode bool AfterClass;