[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 00:14:16 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:
@mydeveloperday I'm not sure I follow, do you suggest `PointerAlignment: Custom` and then another option `PointerAlignmentOptions` to configure the individual options?
I'm fine to rework it like that if that's what you want for consistency but I also have to mention that I find my approach much nicer.
https://github.com/llvm/llvm-project/pull/169160
More information about the cfe-commits
mailing list