diff --git a/clang/docs/ClangFormatStyleOptions.rst b/clang/docs/ClangFormatStyleOptions.rst index 989c91e9a3efee..b69a1158acfd04 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 different 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 9162028c53ede9..514ef16d8708aa 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 different 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