[clang] 73a15ad - [clang-format] [doc] Improve BraceWrapping documentation.
Marek Kurdej via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 21 02:25:41 PDT 2022
Author: Marek Kurdej
Date: 2022-03-21T10:25:12+01:00
New Revision: 73a15ad567071c13e761fd6d593e2b66164865e2
URL: https://github.com/llvm/llvm-project/commit/73a15ad567071c13e761fd6d593e2b66164865e2
DIFF: https://github.com/llvm/llvm-project/commit/73a15ad567071c13e761fd6d593e2b66164865e2.diff
LOG: [clang-format] [doc] Improve BraceWrapping documentation.
Added:
Modified:
clang/include/clang/Format/Format.h
Removed:
################################################################################
diff --git a/clang/include/clang/Format/Format.h b/clang/include/clang/Format/Format.h
index eb53d7987dbd2..d815eb1165bb3 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
/// {} {
/// }
More information about the cfe-commits
mailing list