[clang] clang-format: Add AlignFunctionDeclarations attribute to AlignConsecutiveDeclarations (PR #108241)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 22 14:38:43 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
----------------
owenca wrote:
GitHub review comments is about the line above unless a range of lines are shown like in https://github.com/llvm/llvm-project/pull/106145/files#r1769761150.
https://github.com/llvm/llvm-project/pull/108241
More information about the cfe-commits
mailing list