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

Tal Kedar via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 21 07:36:58 PDT 2025


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 <tal.kedar at k2dq.com>
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();
     ///   }
     ///   }



More information about the cfe-commits mailing list