[PATCH] D123299: [clang-format][docs] Fix incorrect 'clang-format 9' option marker
Krystian Kuzniarek via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 7 04:19:55 PDT 2022
kuzkry created this revision.
kuzkry added reviewers: MyDeveloperDay, HazardyKnusperkeks.
kuzkry added a project: clang-format.
Herald added a project: All.
kuzkry requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Introduced by 23a5090c6 <https://reviews.llvm.org/rG23a5090c6ac7a207f49a11bf868a7c3fae2aeea2>, this style option marker indicated
'clang-format 9', though its respective option was available in
an earlier release.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D123299
Files:
clang/docs/ClangFormatStyleOptions.rst
clang/include/clang/Format/Format.h
Index: clang/include/clang/Format/Format.h
===================================================================
--- clang/include/clang/Format/Format.h
+++ clang/include/clang/Format/Format.h
@@ -600,7 +600,7 @@
};
/// 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
Index: clang/docs/ClangFormatStyleOptions.rst
===================================================================
--- clang/docs/ClangFormatStyleOptions.rst
+++ clang/docs/ClangFormatStyleOptions.rst
@@ -1019,7 +1019,7 @@
-**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:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123299.421156.patch
Type: text/x-patch
Size: 973 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220407/b5a0ba2d/attachment.bin>
More information about the cfe-commits
mailing list