[clang] Add support for aligning BlockComments in declarations (PR #109497)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 21 00:39:52 PDT 2024


================
@@ -275,13 +275,36 @@ struct FormatStyle {
     ///   bbb >>= 2;
     /// \endcode
     bool PadOperators;
+    /// Only for ``AlignConsecutiveDeclarations``.  Whether block comments
+    /// are aligned in declarations.
+    /// \code
+    ///   true:
+    ///   someLongFunction(int                /*a*/,
+    ///                    bool               b,
+    ///                    const std::string& c)
----------------
owenca wrote:

```suggestion
    ///   bool someLongFunction(int                /*a*/,
    ///                         bool               b,
    ///                         const std::string& c);
```

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


More information about the cfe-commits mailing list