[PATCH] D129934: [clang-format][docs] Fix incorrect 'clang-format 4' option markers
Krystian Kuzniarek via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Jul 16 11:04:38 PDT 2022
kuzkry created this revision.
kuzkry added a reviewer: MyDeveloperDay.
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>, some style option markers indicated
'clang-format 4', though their respective options were available in
earlier releases.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D129934
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
@@ -2980,7 +2980,7 @@
/// /* second veryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryLongComment with plenty of
/// * information */
/// \endcode
- /// \version 4
+ /// \version 3.8
bool ReflowComments;
// clang-format on
@@ -3236,7 +3236,7 @@
/// insensitive fashion.
/// If ``CaseSensitive``, includes are sorted in an alphabetical or case
/// sensitive fashion.
- /// \version 4
+ /// \version 3.8
SortIncludesOptions SortIncludes;
/// Position for Java Static imports.
Index: clang/docs/ClangFormatStyleOptions.rst
===================================================================
--- clang/docs/ClangFormatStyleOptions.rst
+++ clang/docs/ClangFormatStyleOptions.rst
@@ -3670,7 +3670,7 @@
-**ReflowComments** (``Boolean``) :versionbadge:`clang-format 4`
+**ReflowComments** (``Boolean``) :versionbadge:`clang-format 3.8`
If ``true``, clang-format will attempt to re-flow comments.
.. code-block:: c++
@@ -3910,7 +3910,7 @@
int bar; int bar;
} // namespace b } // namespace b
-**SortIncludes** (``SortIncludesOptions``) :versionbadge:`clang-format 4`
+**SortIncludes** (``SortIncludesOptions``) :versionbadge:`clang-format 3.8`
Controls if and how clang-format will sort ``#includes``.
If ``Never``, includes are never sorted.
If ``CaseInsensitive``, includes are sorted in an ASCIIbetical or case
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129934.445243.patch
Type: text/x-patch
Size: 1617 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220716/4da97db9/attachment.bin>
More information about the cfe-commits
mailing list