<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJztV9tu4zYQ_Rr5ZWBBF8eXBz04CXY3xXazQBftY0BJI4kNRRokZdd_3yElxXLWuQAttiiwjqGMhuRwLjxn6FyVx-xbg1ApIdSByxoqLjAsdjvgBoDLEqXFEjrjxgrBZD2vlG6ZhTgJozAO0m0Q3QbR-FxG_bcIkmv39VrJWjQ7ViCUzLKHlklWo4ZgNYyTXWPgdyY6PCkBdl0uePG0A9DHzwmSNZcWWJDcgBPyUShGoRwFdEKhpCGdInP0voUqSDZBOmwTrG6nMkCQfKAvXPZ5GivKrp26C5RFlTMdJ-niiva9qF-u1pvISW9OeNvEIL133pN0IXD_3CteOgOUX8rQeWjTHMLZZ8_Eg0_RY3B1HVzdQpDeurXJOppuMTEyzScVN932lXeGHkerzsgLE517Tya_T_v7UvDSvLNkvlK7Nwoyzcqzw3aOk2n-7yq4A93JZzhLCWcRKAm2IUxaQmsPy7nAPQpyRHsl03XXkpqmKK94Kc--CrorLC1k2lkrlNZY2BCICo5gGtWJEnI8wT8_wgI8GgxoFMzyPY7b7DQnQ8Yyi257yDs7mD0tjpNhdQgfUaJmQhxdlk7BwCmYUyAGsfXhaCZL1YojpVUf4cBt8zxHcGhQIzOXBj1RAbdBsjI-em4s2RfvDyr8yXE_Oe4_5bgfQXU_nvE-EWY9Kh3mHs5Q2xmiDi57asvVHl-6aRxZK3rVfD7vhWtGi-_lb_Yo3DL4qFRNkh-7UaJr5WfeEh_QUBwNDt15GvqDl7Zx-kWv3RbEDuZXVfKKo76vKoN-2TwZduLyKysevzJNULKojRusmDDDblt3raLHacJ9dYsUqCa6UfJefsG_7Gcu8bt1vJY3dJSw6BwvbY0hhWdFN3Mycnn-ZI_LC25US8C3X0YG8LOoKwzDYRheLBu1qKPq6JC3nusVcb0r0Gvu9jT_vKn1nEy0PvY31zJy5bh7aEbTYm8NMDgo_ci06mTp28SFJukZsfeQiFGrsiNqY0_esooK4P1VO3JoR1tKeqN2cN6LhsbKzejLuy65_yr4R4r-3150zo_NJ3WglGpfn74NS2WpydIJ5AUTrut2O7KCQKe2RqCuk1OpVOV_jjh6oBo3jPpzjlQ5VpIxg9TAuT_F_SXDXY_CWZml5SbdsBnrbKN09otq5E2azDotssbanTvofW5ruil0eUing16E2I__5jut_nRVTz5wYzqCRvLhKtnE6azJqmqdxMu4oL91tNhU0SqO1-VqiWmyKnEdzQTLUZjMtYkkkXgAb4Jk6hqzf-4Bz5IoieOEXpZRGi_CTblkWBXLTZHmyw1Lg0WELeMidHZCpeuZzrzJvKsNDQq6-5jTIPNARcz6vjaz3ArM7qYw0Fhr4kBiEg-7V6Du6PoFVDrsXhj3LDDzMWY-wL8BvRdF0Q>52913</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Indent-level regression for AlignConsecutiveAssignments in clang-format 13.0.0, works in clang-format 12.0.1
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          JohnC32
      </td>
    </tr>
</table>

<pre>
    The following file.cpp is  indented using clang-format 12.0.1:

```c++
namespace data_manager {
class Value {
  public:
    Value(int a, int b, int c, int d, int e, const double* f);
};
}  // namespace data_manager

enum {
    foobar12345,
    foobar12345678901234,
    foobar123456789012345,
    foobar123456789012345678901,
    foobar123456789012345678901234567890
};

void foo() {
    const double              val_data_k[] = {280};
    const data_manager::Value val_k        = data_manager::Value(
        foobar12345, foobar123456789012345678901234567890, foobar123456789012345,
        foobar12345678901234, foobar123456789012345678901, val_data_k);
}
```

If I run clang-format 13.0.0 on this the indent-level for the arguments to the data_manager::Value constructor are incorrect. They should be indented by 4 spaces relative to the prior statement but are indented by 12 spaces. Generally, the indent level for arguments seems to randomly vary with clang-format 13 whereas with clang-format 12.0.1 it's consistently 4 spaces relative to the prior statement.

```c++
namespace data_manager {
class Value {
  public:
    Value(int a, int b, int c, int d, int e, const double* f);
};
}  // namespace data_manager

enum {
    foobar12345,
    foobar12345678901234,
    foobar123456789012345,
    foobar123456789012345678901,
    foobar123456789012345678901234567890
};

void foo() {
    const double              val_data_k[] = {280};
    const data_manager::Value val_k        = data_manager::Value(
               foobar12345, foobar123456789012345678901234567890, foobar123456789012345,
               foobar12345678901234, foobar123456789012345678901, val_data_k);
}
```

Here's the _clang-format used in the above:

```yaml
---
BasedOnStyle: Google
ColumnLimit: 100
IndentWidth: 4
AccessModifierOffset: -2
BinPackParameters: false
AllowAllParametersOfDeclarationOnNextLine: false
AlignConsecutiveAssignments: Consecutive
AlignConsecutiveDeclarations: Consecutive
CompactNamespaces: true
...
```
If you comment out the AlignConsecutiveAssignments, then clang-format 12.0.1 and 13.0.0 are both correct.

As a workaround for clang-format 13.0.0, if you introduce a comment after the open parenthesis, the indent-level is correct:

```c++
    const data_manager::Value val_k        = data_manager::Value(  //
        foobar12345, foobar123456789012345678901234567890, foobar123456789012345,
        foobar12345678901234, foobar123456789012345678901, val_data_k);
```
However, it's not practical to update large number of files that have been adversely impacted by this.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJztV81u4zYQfhr5MrAgU44dH3RwEmQ3xXazQIv2GFDSSGZDkQZJ2fXbd0hJsZy1kxyKLQqsISgjDjn_8w2T6_KQ_b5BqLSUei9UDZWQGBfbLQgLIFSJymEJrfW8QnJVTyttGu5gxuIknkXpOkruomR4L5LuKSJ245-wqniDdssLhJI7_tRwxWs0EC17Psm1Fv7gssXjIsC2zaUoXjQA_cKeiF0L5YBH7BY8kQ9EMRDlQKAnCq0srWkSR99rqCK2itJeTbS8G9MAEbunB87bPPYVVduMzQWKos65mbF0fkV6z64vlterxFPvbnhfRE99dN8Ldcbx8N5pUXoBFF-K0Klr4xjCyW_H5VMI0XN0dRNd3UGU3vmz7DoZqxgJGceTkpuuu8x7Qc-DVC_kwkZv3ovI78P-sRBc2ncSzDdy905CxlF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