Skip to content

Commit 73a15ad

Browse files
committed
[clang-format] [doc] Improve BraceWrapping documentation.
1 parent b37b5e5 commit 73a15ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/include/clang/Format/Format.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1592,6 +1592,7 @@ struct FormatStyle {
15921592
/// set, and the function could/should not be put on a single line (as per
15931593
/// `AllowShortFunctionsOnASingleLine` and constructor formatting options).
15941594
/// \code
1595+
/// false: true:
15951596
/// int f() vs. int f()
15961597
/// {} {
15971598
/// }
@@ -1603,6 +1604,7 @@ struct FormatStyle {
16031604
/// brace of the record has already been wrapped, i.e. the `AfterClass`
16041605
/// (for classes) brace wrapping mode is set.
16051606
/// \code
1607+
/// false: true:
16061608
/// class Foo vs. class Foo
16071609
/// {} {
16081610
/// }
@@ -1614,6 +1616,7 @@ struct FormatStyle {
16141616
/// already been wrapped, i.e. the `AfterNamespace` brace wrapping mode is
16151617
/// set.
16161618
/// \code
1619+
/// false: true:
16171620
/// namespace Foo vs. namespace Foo
16181621
/// {} {
16191622
/// }

0 commit comments

Comments
 (0)