From 712b59cdc5a7d879341cf0caa4d6107f032fff78 Mon Sep 17 00:00:00 2001 From: Krystian Kuzniarek Date: Thu, 7 Apr 2022 13:11:02 +0200 Subject: [PATCH] [clang-format][docs] Fix incorrect 'clang-format 9' option marker Introduced by 23a5090c6, this style option marker indicated 'clang-format 9', though its respective option was available in an earlier release. Differential Revision: https://reviews.llvm.org/D123299 --- clang/docs/ClangFormatStyleOptions.rst | 2 +- clang/include/clang/Format/Format.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/docs/ClangFormatStyleOptions.rst b/clang/docs/ClangFormatStyleOptions.rst index 46471271299b..90fef542205a 100644 --- a/clang/docs/ClangFormatStyleOptions.rst +++ b/clang/docs/ClangFormatStyleOptions.rst @@ -1019,7 +1019,7 @@ the configuration (without a prefix: ``Auto``). -**AllowShortIfStatementsOnASingleLine** (``ShortIfStyle``) :versionbadge:`clang-format 9` +**AllowShortIfStatementsOnASingleLine** (``ShortIfStyle``) :versionbadge:`clang-format 3.3` Dependent on the value, ``if (a) return;`` can be put on a single line. Possible values: diff --git a/clang/include/clang/Format/Format.h b/clang/include/clang/Format/Format.h index 00eaccf61bd1..d53e5d020c4a 100644 --- a/clang/include/clang/Format/Format.h +++ b/clang/include/clang/Format/Format.h @@ -600,7 +600,7 @@ struct FormatStyle { }; /// Dependent on the value, ``if (a) return;`` can be put on a single line. - /// \version 9 + /// \version 3.3 ShortIfStyle AllowShortIfStatementsOnASingleLine; /// Different styles for merging short lambdas containing at most one