[PATCH] D147894: [clang-format][doc] SortIncludes documentation: remove contradiction in its description
Owen Pan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 26 01:59:19 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG10518feaf337: [clang-format][doc] Fix contradiction in SortIncludes description (authored by michael-g-matthews, committed by owenpan).
Changed prior to commit:
https://reviews.llvm.org/D147894?vs=512042&id=525986#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147894/new/
https://reviews.llvm.org/D147894
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
@@ -3601,11 +3601,6 @@
};
/// 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
- /// insensitive fashion.
- /// If ``CaseSensitive``, includes are sorted in an alphabetical or case
- /// sensitive fashion.
/// \version 3.8
SortIncludesOptions SortIncludes;
Index: clang/docs/ClangFormatStyleOptions.rst
===================================================================
--- clang/docs/ClangFormatStyleOptions.rst
+++ clang/docs/ClangFormatStyleOptions.rst
@@ -2453,7 +2453,7 @@
* ``BBCDS_Allowed`` (in configuration: ``Allowed``)
Breaking between template declaration and ``concept`` is allowed. The
actual behavior depends on the content and line breaking rules and
- penalties.
+ penalities.
* ``BBCDS_Always`` (in configuration: ``Always``)
Always break before ``concept``, putting it in the line after the
@@ -4561,11 +4561,6 @@
**SortIncludes** (``SortIncludesOptions``) :versionbadge:`clang-format 3.8` :ref:`ΒΆ <SortIncludes>`
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
- insensitive fashion.
- If ``CaseSensitive``, includes are sorted in an alphabetical or case
- sensitive fashion.
Possible values:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147894.525986.patch
Type: text/x-patch
Size: 1633 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230526/d9110777/attachment.bin>
More information about the cfe-commits
mailing list