Skip to content

Commit

Permalink
[clang-format][doc] Fix the description of BreakBinaryOperations
Browse files Browse the repository at this point in the history
  • Loading branch information
owenca committed Jan 10, 2025
1 parent 5454ac2 commit f926bcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion clang/docs/ClangFormatStyleOptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3441,7 +3441,7 @@ the configuration (without a prefix: ``Auto``).
.. _BreakBinaryOperations:

**BreakBinaryOperations** (``BreakBinaryOperationsStyle``) :versionbadge:`clang-format 20` :ref:`<BreakBinaryOperations>`
The break constructor initializers style to use.
The break binary operations style to use.

Possible values:

Expand Down Expand Up @@ -3764,6 +3764,7 @@ the configuration (without a prefix: ``Auto``).
lists.

Important differences:

* No spaces inside the braced list.
* No line break before the closing brace.
* Indentation with the continuation indent, not with the block indent.
Expand Down
3 changes: 2 additions & 1 deletion clang/include/clang/Format/Format.h
Original file line number Diff line number Diff line change
Expand Up @@ -2298,7 +2298,7 @@ struct FormatStyle {
BBO_RespectPrecedence
};

/// The break constructor initializers style to use.
/// The break binary operations style to use.
/// \version 20
BreakBinaryOperationsStyle BreakBinaryOperations;

Expand Down Expand Up @@ -2510,6 +2510,7 @@ struct FormatStyle {
/// lists.
///
/// Important differences:
///
/// * No spaces inside the braced list.
/// * No line break before the closing brace.
/// * Indentation with the continuation indent, not with the block indent.
Expand Down

0 comments on commit f926bcf

Please sign in to comment.