[clang-format] Fix the version for a newly added option

Also update the release notes.
This commit is contained in:
Owen Pan 2023-10-25 05:42:30 -07:00
parent c360ce0c80
commit 23d6a6dfc1
3 changed files with 3 additions and 2 deletions

View File

@ -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++

View File

@ -775,6 +775,7 @@ AST Matchers
clang-format
------------
- Add ``AllowBreakBeforeNoexceptSpecifier`` option.
- Add ``AllowShortCompoundRequirementOnASingleLine`` option.
libclang
--------

View File

@ -701,7 +701,7 @@ struct FormatStyle {
/// } -> std::same_as<int>;
/// };
/// \endcode
/// \version 16
/// \version 18
bool AllowShortCompoundRequirementOnASingleLine;
/// Allow short enums on a single line.