Skip to content

Commit

Permalink
[clang-format] Fix the version for a newly added option
Browse files Browse the repository at this point in the history
Also update the release notes.
  • Loading branch information
owenca committed Oct 25, 2023
1 parent c360ce0 commit 23d6a6d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clang/docs/ClangFormatStyleOptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,7 @@ the configuration (without a prefix: ``Auto``).

.. _AllowShortCompoundRequirementOnASingleLine:

**AllowShortCompoundRequirementOnASingleLine** (``Boolean``) :versionbadge:`clang-format 16` :ref:`<AllowShortCompoundRequirementOnASingleLine>`
**AllowShortCompoundRequirementOnASingleLine** (``Boolean``) :versionbadge:`clang-format 18` :ref:`<AllowShortCompoundRequirementOnASingleLine>`
Allow short compound requirement on a single line.

.. code-block:: c++
Expand Down
1 change: 1 addition & 0 deletions clang/docs/ReleaseNotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,7 @@ AST Matchers
clang-format
------------
- Add ``AllowBreakBeforeNoexceptSpecifier`` option.
- Add ``AllowShortCompoundRequirementOnASingleLine`` option.

libclang
--------
Expand Down
2 changes: 1 addition & 1 deletion clang/include/clang/Format/Format.h
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ struct FormatStyle {
/// } -> std::same_as<int>;
/// };
/// \endcode
/// \version 16
/// \version 18
bool AllowShortCompoundRequirementOnASingleLine;

/// Allow short enums on a single line.
Expand Down

0 comments on commit 23d6a6d

Please sign in to comment.