Skip to content

Commit 23d6a6d

Browse files
committed
[clang-format] Fix the version for a newly added option
Also update the release notes.
1 parent c360ce0 commit 23d6a6d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

clang/docs/ClangFormatStyleOptions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,7 @@ the configuration (without a prefix: ``Auto``).
12171217

12181218
.. _AllowShortCompoundRequirementOnASingleLine:
12191219

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

12231223
.. code-block:: c++

clang/docs/ReleaseNotes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,7 @@ AST Matchers
775775
clang-format
776776
------------
777777
- Add ``AllowBreakBeforeNoexceptSpecifier`` option.
778+
- Add ``AllowShortCompoundRequirementOnASingleLine`` option.
778779

779780
libclang
780781
--------

clang/include/clang/Format/Format.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ struct FormatStyle {
701701
/// } -> std::same_as<int>;
702702
/// };
703703
/// \endcode
704-
/// \version 16
704+
/// \version 18
705705
bool AllowShortCompoundRequirementOnASingleLine;
706706

707707
/// Allow short enums on a single line.

0 commit comments

Comments
 (0)