[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
Wed Nov 26 04:51:53 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 Thanks for the response, but you didn't answer my questions from above. I do not see how the `Custom` pattern solves the problem of still having to set a default alignment.

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


More information about the cfe-commits mailing list