[clang] 25af8f5 - [clang-format][doc] Fix a typo

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 2 14:49:25 PDT 2024


Author: Owen Pan
Date: 2024-11-02T14:48:35-07:00
New Revision: 25af8f535edd59ec12a404954db233e2e65e8d9b

URL: https://github.com/llvm/llvm-project/commit/25af8f535edd59ec12a404954db233e2e65e8d9b
DIFF: https://github.com/llvm/llvm-project/commit/25af8f535edd59ec12a404954db233e2e65e8d9b.diff

LOG: [clang-format][doc] Fix a typo

Added: 
    

Modified: 
    clang/docs/ClangFormatStyleOptions.rst
    clang/include/clang/Format/Format.h

Removed: 
    


################################################################################
diff  --git a/clang/docs/ClangFormatStyleOptions.rst b/clang/docs/ClangFormatStyleOptions.rst
index 9ef1fd5f36d1d3..dc34094b5053a9 100644
--- a/clang/docs/ClangFormatStyleOptions.rst
+++ b/clang/docs/ClangFormatStyleOptions.rst
@@ -2259,7 +2259,7 @@ the configuration (without a prefix: ``Auto``).
 **BraceWrapping** (``BraceWrappingFlags``) :versionbadge:`clang-format 3.8` :ref:`ΒΆ <BraceWrapping>`
   Control of individual brace wrapping cases.
 
-  If ``BreakBeforeBraces`` is set to ``BS_Custom``, use this to specify how
+  If ``BreakBeforeBraces`` is set to ``Custom``, use this to specify how
   each individual brace case should be handled. Otherwise, this is ignored.
 
   .. code-block:: yaml

diff  --git a/clang/include/clang/Format/Format.h b/clang/include/clang/Format/Format.h
index c9b72e65cb236d..ea6b414618c1d0 100644
--- a/clang/include/clang/Format/Format.h
+++ b/clang/include/clang/Format/Format.h
@@ -1569,7 +1569,7 @@ struct FormatStyle {
 
   /// Control of individual brace wrapping cases.
   ///
-  /// If ``BreakBeforeBraces`` is set to ``BS_Custom``, use this to specify how
+  /// If ``BreakBeforeBraces`` is set to ``Custom``, use this to specify how
   /// each individual brace case should be handled. Otherwise, this is ignored.
   /// \code{.yaml}
   ///   # Example of usage:


        


More information about the cfe-commits mailing list