[clang] [clang-format] Allow custom pointer/ref alignment in return types (PR #169160)
Daan De Meyer via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 25 01:07:04 PST 2025
================
@@ -5668,31 +5668,107 @@ the configuration (without a prefix: ``Auto``).
.. _PointerAlignment:
-**PointerAlignment** (``PointerAlignmentStyle``) :versionbadge:`clang-format 3.7` :ref:`¶ <PointerAlignment>`
+**PointerAlignment** (``PointerAlignmentOptions``) :versionbadge:`clang-format 3.7` :ref:`¶ <PointerAlignment>`
Pointer and reference alignment style.
- Possible values:
+ Acceptable values (configured as a single string or with suboptions):
+ * ``Left``
+ * ``Right``
+ * ``Middle``
----------------
DaanDeMeyer wrote:
And if yes, doesn't that still need a `Default` option in the struct, unless you want me to add separate options for every possible case where pointer/reference alignment could be different?
https://github.com/llvm/llvm-project/pull/169160
More information about the cfe-commits
mailing list