Skip to content

Commit

Permalink
[clang-format] [doc] Improve BraceWrapping documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurdej committed Mar 21, 2022
1 parent b37b5e5 commit 73a15ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions clang/include/clang/Format/Format.h
Expand Up @@ -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()
/// {} {
/// }
Expand All @@ -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
/// {} {
/// }
Expand All @@ -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
/// {} {
/// }
Expand Down

0 comments on commit 73a15ad

Please sign in to comment.