[clang] clang-format: Add AlignFunctionDeclarations attribute to AlignConsecutiveDeclarations (PR #108241)

Brad House via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 22 14:00:23 PDT 2024


================
@@ -225,6 +225,21 @@ struct FormatStyle {
     ///   bbb = 2;
     /// \endcode
     bool AlignCompound;
+    /// Only for ``AlignConsecutiveDeclarations``. Whether function declarations
+    /// are aligned.
+    /// \code
+    ///   true:
+    ///   unsigned int f1(void);
+    ///   void         f2(void);
+    ///   size_t       f3(void);
+    ///
+    ///   false:
+    ///   unsigned int f1(void);
+    ///   void f2(void);
+    ///   size_t f3(void);
+    /// \endcode
+    /// \version 20
----------------
bradh352 wrote:

Delete what?  All docs related to the new functionality? Or just the \version which was requested by @mydeveloperday ... I don't understand.

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


More information about the cfe-commits mailing list