[clang] clang-format: Add IncludeSortKey option (PR #137840)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Thu May 1 12:28:43 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``)
----------------
HazardyKnusperkeks wrote:
Maybe add examples, not everyone knows what a stem is.
https://github.com/llvm/llvm-project/pull/137840
More information about the cfe-commits
mailing list