[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:53:25 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:
ok, so omit the \version is what you're saying ... but @mydeveloperday said it should be versioned. Is the version annotation in the wrong place perhaps? Or maybe its just unsupported to version a sub attribute.
https://github.com/llvm/llvm-project/pull/108241
More information about the cfe-commits
mailing list