[clang] clang-format: Add IncludeSortKey option (PR #137840)
Daan De Meyer via cfe-commits
cfe-commits at lists.llvm.org
Fri May 2 06:21:00 PDT 2025
================
@@ -4226,6 +4226,19 @@ the configuration (without a prefix: ``Auto``).
``ClassImpl.hpp`` would not have the main include file put on top
before any other include.
+.. _IncludeSortKey:
+
+**IncludeSortKey** (``IncludeSortKeyDiscriminator``) :versionbadge:`clang-format 20` :ref:`ΒΆ <IncludeSortKey>`
+ When sorting includes in each block, sort by the specified sort key
+
+ Possible values:
+
+ * ``ISK_Path`` (in configuration: ``Path``)
----------------
DaanDeMeyer wrote:
I think the comment is sufficient explanation of what `stem` means in this case?
https://github.com/llvm/llvm-project/pull/137840
More information about the cfe-commits
mailing list