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

    <tr>
        <th>Summary</th>
        <td>
            Lambdas ignore QualifierAlignment setting
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-format
      </td>
    </tr>

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

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

<pre>
    Take this setting
```yaml
QualifierAlignment: Left
```

With this input code
```cpp
void foo() {
  int const i = 0;
  auto func = [] { int const j = 0; };
}
```

Clang format will only reorder the qualifiers on the `i` variable as shown
```cpp
void foo() {
 const int i = 0;
  auto func = [] { int const j = 0; };
}
```
When it is expected the output should be
```cpp
void foo() {
  const int i = 0;
  auto func = [] { const int j = 0; };
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8k0tvnT4QxT-N2YxyZWyeCxY3_6u7yuYvVcra2ANMamxqm6T59hWQR5WqUptFJcTjmN9ojj1HxUijQ-xYecvKS6bWNPnQuQc1Y2xl1nvz3H1RXxHSRBEipkRuZPzC-JlV_Lie1WwP6f9VWRoIw9nS6GZ0ickz3OGQPiAvn_v9ntJ0lCe3rAm0N_jhd70sh_LoycDgPRMNEy2w-vbQAchtpIsJCJi8AGfybU2tycOwOr2vHFY39ifo4Q0CVl_e2O39953_Z5UbYfBhVgmeyFrwzj5DQB8MBkgTwrfXHYng3a6wihOrODyqQKq3CCpCnPyT-2vPL3bdv7F8P6EDSkAR8PuCOqHZ_fg1bacWJ79aA_0nju5TPt6hP_aRmU6aVrYqwy6vmkLKus2bbOoa1RZ9Lfqhkq0qykJLo_nQ5nVZNkWudUad4ELyMq_zUjayObV5W0pT6MIUig_NwAqOsyJ7svZxPvkwZhTjil0l6oZnVvVo454xIfQ2NDfH0DAhttSFbsNu-nWMrOCWYorvhRIli92dmnujItDofED4NWiv2czWYLsppSUyeWbiysR1pDSt_Un7mYnrVvflcbME_4A6MXHdu41MXPeGfwQAAP__2YEtVg">