[clang] [clang/docs] add a missing brace in ClangFormatStyleOptions.rst (PR #145145)

2025-06-20 Thread Tal Kedar via cfe-commits

https://github.com/kedartal created 
https://github.com/llvm/llvm-project/pull/145145

... in the example for `WrapNamespaceBodyWithEmptyLines: Never`

>From 90cf52899532e4f5d535127adb903193fe04dda7 Mon Sep 17 00:00:00 2001
From: Tal Kedar 
Date: Fri, 20 Jun 2025 23:28:46 -0400
Subject: [PATCH] [clang/docs] add a missing brace in
 ClangFormatStyleOptions.rst

... in the example for `WrapNamespaceBodyWithEmptyLines: Never`
---
 clang/docs/ClangFormatStyleOptions.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/docs/ClangFormatStyleOptions.rst 
b/clang/docs/ClangFormatStyleOptions.rst
index 83716cc049ee3..548c73af65872 100644
--- a/clang/docs/ClangFormatStyleOptions.rst
+++ b/clang/docs/ClangFormatStyleOptions.rst
@@ -6992,7 +6992,7 @@ the configuration (without a prefix: ``Auto``).
 .. code-block:: c++
 
   namespace N1 {
-  namespace N2
+  namespace N2 {
   function();
   }
   }

___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[clang] [clang/docs] add a missing brace in ClangFormatStyleOptions.rst (PR #145145)

2025-06-20 Thread Tal Kedar via cfe-commits

https://github.com/kedartal updated 
https://github.com/llvm/llvm-project/pull/145145

>From 90cf52899532e4f5d535127adb903193fe04dda7 Mon Sep 17 00:00:00 2001
From: Tal Kedar 
Date: Fri, 20 Jun 2025 23:28:46 -0400
Subject: [PATCH] [clang/docs] add a missing brace in
 ClangFormatStyleOptions.rst

... in the example for `WrapNamespaceBodyWithEmptyLines: Never`
---
 clang/docs/ClangFormatStyleOptions.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/docs/ClangFormatStyleOptions.rst 
b/clang/docs/ClangFormatStyleOptions.rst
index 83716cc049ee3..548c73af65872 100644
--- a/clang/docs/ClangFormatStyleOptions.rst
+++ b/clang/docs/ClangFormatStyleOptions.rst
@@ -6992,7 +6992,7 @@ the configuration (without a prefix: ``Auto``).
 .. code-block:: c++
 
   namespace N1 {
-  namespace N2
+  namespace N2 {
   function();
   }
   }

___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[clang] [clang/docs] add a missing brace in ClangFormatStyleOptions.rst (PR #145145)

2025-06-21 Thread Tal Kedar via cfe-commits

kedartal wrote:

I knew there was a reason why they taught me to read :)

https://github.com/llvm/llvm-project/pull/145145
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[clang] [clang/docs] add a missing brace in ClangFormatStyleOptions.rst (PR #145145)

2025-06-21 Thread Tal Kedar via cfe-commits

https://github.com/kedartal updated 
https://github.com/llvm/llvm-project/pull/145145

>From 1d024e85d38452d5d149d97d830f12b2126b3c95 Mon Sep 17 00:00:00 2001
From: Tal Kedar 
Date: Sat, 21 Jun 2025 10:23:42 -0400
Subject: [PATCH] [clang/docs] add a missing brace in
 ClangFormatStyleOptions.rst

... in the example for `WrapNamespaceBodyWithEmptyLines: Never`
---
 clang/docs/ClangFormatStyleOptions.rst | 2 +-
 clang/include/clang/Format/Format.h| 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/clang/docs/ClangFormatStyleOptions.rst 
b/clang/docs/ClangFormatStyleOptions.rst
index 83716cc049ee3..548c73af65872 100644
--- a/clang/docs/ClangFormatStyleOptions.rst
+++ b/clang/docs/ClangFormatStyleOptions.rst
@@ -6992,7 +6992,7 @@ the configuration (without a prefix: ``Auto``).
 .. code-block:: c++
 
   namespace N1 {
-  namespace N2
+  namespace N2 {
   function();
   }
   }
diff --git a/clang/include/clang/Format/Format.h 
b/clang/include/clang/Format/Format.h
index 127b1d08919de..2a5cf5fb50db1 100644
--- a/clang/include/clang/Format/Format.h
+++ b/clang/include/clang/Format/Format.h
@@ -5275,7 +5275,7 @@ struct FormatStyle {
 /// Remove all empty lines at the beginning and the end of namespace body.
 /// \code
 ///   namespace N1 {
-///   namespace N2
+///   namespace N2 {
 ///   function();
 ///   }
 ///   }

___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits