From 73a15ad567071c13e761fd6d593e2b66164865e2 Mon Sep 17 00:00:00 2001 From: Marek Kurdej Date: Mon, 21 Mar 2022 10:24:56 +0100 Subject: [PATCH] [clang-format] [doc] Improve BraceWrapping documentation. --- clang/include/clang/Format/Format.h | 3 +++ 1 file changed, 3 insertions(+) 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 /// {} { /// } -- 2.7.4