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

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 6 15:33:26 PDT 2024


================
@@ -20010,6 +20010,17 @@ TEST_F(FormatTest, AlignConsecutiveDeclarations) {
                "  return 0;\n"
                "}() };",
                BracedAlign);
+
+  Alignment.AlignConsecutiveDeclarations.AlignFunctionDeclarations = false;
+  verifyFormat("unsigned int f1(void);\n"
+               "void f2(void);\n"
+               "size_t f3(void);\n",
----------------
owenca wrote:

```suggestion
               "size_t f3(void);",
```

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


More information about the cfe-commits mailing list