<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/55808>55808</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Incorrect alignment of consecutive `extern` declarations
        </td>
    </tr>

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

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

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

<pre>
    Our code in BIND is auto-formatted with `clang-format` using [a `.clang-format.headers` configuration](https://gitlab.isc.org/isc-projects/bind9/-/blob/main/.clang-format.headers) that includes `AlignConsecutiveDeclarations: true`

[In one of our test suite headers](https://gitlab.isc.org/isc-projects/bind9/-/blob/main/tests/include/tests/isc.h#L45) `clang-format` produces the following misaligned block of declarations. It insists on this layout after I remove the excess whitespace after the type names, and after I manually align the variable names.

```
extern isc_mem_t         *mctx;
extern isc_nm_t *netmgr;
extern isc_taskmgr_t  *taskmgr;
extern isc_timermgr_t *timermgr;
extern unsigned int    workers;
extern isc_task_t         *maintask;
```

I am using `clang-format version 13.0.1` installed from Homebrew on macOS.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJytVMlu2zAQ_RrpQkSgNi8HHewYQQ0UzaEfEFDkSGLDxSApO_77DiU7cRL3VkAQOeTTvHmzqLXi3DyPjnArgEhDtvtfOyI9YWOwD511moUAgpxkGEiyoFwx01_O0SSjl6YnSb1l8Ta7vc4GYAKcjzBuTSf70bEgrUnqXVKshhAOPik3SfGETy-DYm0mPc-s6_EAdw8HZ_8ADx7NVhqxxvUh7pVtcdFMGlzucxZrEgYWUBFXowAfo9so2ZtHazzwMcgj7AA_nUOKgZDgRkBYQncJ3Vze9XZviDVAbEcspimAD8SPMgC5Uv1XNdF_RFzivj1BZ0NSlD-rOqq7UwskECNHrWEA0lml7CkWR0vPonKsInLx1yhF3EjPyD7myUvkQan4NZZfsbMdA2FdAEf2xIG2R5gcwxtSeHIaMAf-wDhcQPEunA9ADNOAAT8SZsS7A83MyJQ6kymUCXxkTrJWXT7IPqUdqzA_kwlv6MRgV_IXDfolJBT1FxvNw1tSbr9hzAxBhIGge3cPE5h_xauXQKKni3UXKDW4GRmBF-srcsT0TRmWBj0ScrLuNfbGP5hnCZMGLHs8eUd-kT6_94Tp66h9rjs5Ig1WkeRlRrM8tgGWMmCqMZjOWU1-WA2tg1MsrWb8-XeWiqYU63LN0oB9Cs3ecOsctuZcHA2oAXuEf0xKZJ0lRILb5klHp5pvzT-MbcatRkOp43W5DsDUy36MPfJU1yu6SodmyUW-4Ouainy9EMtlx8u67fiqbqu8pZSmOE6gfIPzmBSFQTWTC9zj-KWyKWhR0AXNc0rzep1VVSVYK5Z1ueqqKq-SigJmWmUxjjiSqWumkNqx93ipYu9_XDI_VRMmOvSP_8LBuqZjpivSibiZAv8LiNq5ng">