Author: Krystian Kuzniarek Date: 2022-04-26T16:22:04+02:00 New Revision: 712b59cdc5a7d879341cf0caa4d6107f032fff78
URL: https://github.com/llvm/llvm-project/commit/712b59cdc5a7d879341cf0caa4d6107f032fff78 DIFF: https://github.com/llvm/llvm-project/commit/712b59cdc5a7d879341cf0caa4d6107f032fff78.diff LOG: [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 Added: Modified: clang/docs/ClangFormatStyleOptions.rst clang/include/clang/Format/Format.h Removed: ################################################################################ diff --git a/clang/docs/ClangFormatStyleOptions.rst b/clang/docs/ClangFormatStyleOptions.rst index 46471271299bf..90fef542205ad 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 00eaccf61bd17..d53e5d020c4a9 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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits