[clang] ed4afd1 - [clang-format][docs] Fix indentation for the Sphinx build

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 1 15:35:28 PST 2023


Author: Owen Pan
Date: 2023-01-01T15:13:36-08:00
New Revision: ed4afd1bba8347e1d7ea943c242fccabf606489c

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

LOG: [clang-format][docs] Fix indentation for the Sphinx build

See https://reviews.llvm.org/D140543#4021209.

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 989c91e9a3ef..b69a1158acfd 100644
--- a/clang/docs/ClangFormatStyleOptions.rst
+++ b/clang/docs/ClangFormatStyleOptions.rst
@@ -3166,9 +3166,9 @@ the configuration (without a prefix: ``Auto``).
   Nested configuration flags:
 
   Separator format of integer literals of 
diff erent bases.
-  <0: Remove separators.
-   0: Leave the literal as is.
-  >0: Insert separators between digits, starting from the rightmost digit.
+  If <0: Remove separators.
+  If  0: Leave the literal as is.
+  If >0: Insert separators between digits starting from the rightmost digit.
 
   * ``int8_t Binary`` .. code-block:: c++
 

diff  --git a/clang/include/clang/Format/Format.h b/clang/include/clang/Format/Format.h
index 9162028c53ed..514ef16d8708 100644
--- a/clang/include/clang/Format/Format.h
+++ b/clang/include/clang/Format/Format.h
@@ -2451,9 +2451,9 @@ struct FormatStyle {
   TrailingCommaStyle InsertTrailingCommas;
 
   /// Separator format of integer literals of 
diff erent bases.
-  /// <0: Remove separators.
-  ///  0: Leave the literal as is.
-  /// >0: Insert separators between digits, starting from the rightmost digit.
+  /// If <0: Remove separators.
+  /// If  0: Leave the literal as is.
+  /// If >0: Insert separators between digits starting from the rightmost digit.
   struct IntegerLiteralSeparatorStyle {
     /// \code
     ///    -1: 0b100111101101


        


More information about the cfe-commits mailing list