[clang-format] [doc] Improve BraceWrapping documentation.
authorMarek Kurdej <marek.kurdej+llvm.org@gmail.com>
Mon, 21 Mar 2022 09:24:56 +0000 (10:24 +0100)
committerMarek Kurdej <marek.kurdej+llvm.org@gmail.com>
Mon, 21 Mar 2022 09:25:12 +0000 (10:25 +0100)
clang/include/clang/Format/Format.h

index eb53d79..d815eb1 100644 (file)
@@ -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
     ///   {}                   {
     ///                        }