From: Marek Kurdej Date: Mon, 21 Mar 2022 09:24:56 +0000 (+0100) Subject: [clang-format] [doc] Improve BraceWrapping documentation. X-Git-Tag: upstream/15.0.7~12958 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=73a15ad567071c13e761fd6d593e2b66164865e2;p=platform%2Fupstream%2Fllvm.git [clang-format] [doc] Improve BraceWrapping documentation. --- diff --git a/clang/include/clang/Format/Format.h b/clang/include/clang/Format/Format.h index eb53d79..d815eb1 100644 --- a/clang/include/clang/Format/Format.h +++ b/clang/include/clang/Format/Format.h @@ -1592,6 +1592,7 @@ struct FormatStyle { /// set, and the function could/should not be put on a single line (as per /// `AllowShortFunctionsOnASingleLine` and constructor formatting options). /// \code + /// false: true: /// int f() vs. int f() /// {} { /// } @@ -1603,6 +1604,7 @@ struct FormatStyle { /// brace of the record has already been wrapped, i.e. the `AfterClass` /// (for classes) brace wrapping mode is set. /// \code + /// false: true: /// class Foo vs. class Foo /// {} { /// } @@ -1614,6 +1616,7 @@ struct FormatStyle { /// already been wrapped, i.e. the `AfterNamespace` brace wrapping mode is /// set. /// \code + /// false: true: /// namespace Foo vs. namespace Foo /// {} { /// }