[clang] [clang-format] Allow custom pointer/ref alignment in return types (PR #169160)

via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 24 23:20:25 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``
----------------
mydeveloperday wrote:

Feels like it should be Left/Right/Middle/Custom/Leave where Custom lets you change what you have here

I don't feel like the "Default" follows the pattern of other options as a struct

https://github.com/llvm/llvm-project/pull/169160


More information about the cfe-commits mailing list