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

    <tr>
        <th>Summary</th>
        <td>
            [Clang][Format] Add qualifiers (actual) alignments
        </td>
    </tr>

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

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

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

<pre>
    There's currently a `QualifierAlignment` option in ClangFormat, although I'd argue it is misnamed ; it doesn't align anything, it simply order qualifiers. 

Currently, I believe that if you write :

```cpp
int a = 0;
const int b = 0;
```
there is no way to obtain : 

```cpp
      int a = 0;
const int b = 0;
```

This could be added to the options of `AlignConsecutiveAssignements` and `AlignConsecutiveDeclarations`, although it'd also be useful for parameters as well, i.e. : 

```cpp
void foo(const type1 looooooooooooooooooooongarg1,
         type2 arg2){}
```

becomes : 

```cpp
void foo(const type1 looooooooooooooooooooongarg1,
 type2 arg2){}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0VN2K9DYMfRrnRnxD4vzNXORifhj46FVhX0CJlcTFsVNbnmXevjjZbYeybAulZvAQ2dI51pGEIejJEnWivoj6lmHk2fnul4uLyzSjz3qnnt3bTJ6EbAMM0XuybJ6AIJr814hGj5r82ejJLmRZNDm4lbWzoC1cDdrp7vyCLOQV0PDs4jTDTyFbBeinSKAZdIBFB4sLKRDlJZmUo2CFbBkwhQa0T561nVIYzRD0sponOK_Iw--fLMIBRH4T-Xnfr59kk9NP6MloehDwjAx6hKeL8O41E4jy_Oonmnz_Deu6W7Tl9ODyBrkoL7ttcDYwpJP-byd_-u-fnLKX3mgdvOMT2IHrGbVNuPA9MGzrP8Hv-9usAwwuGgU9ASpFKhHhmT7kCuDGJOmm5NXZQENk_aDzXiFJ25DERau-unajwaDHLVKCflVb8y63CS6Bx0BjNDA6Dyt6XIjJB8AA72TMpu-BDv8iNw-nFYzOCXnck8HPlQow7qtlJ_RTIeT1Na8Am49MlSiFPIn2ItrbN1nsaXALhf-b3D-TylRXqlN5woy6oi2q-lgc2zybO1VUQ45the3YN4MiJZuyP451q1RT5yQz3clcVnmdF0VTVbI-9OWpGhFPkgbsj8dSVDktqM3BmMdycH7KdAiRulPeVk1msCcTtnEh5ZDaW0iZJofv0v0ffZyCqHKjA4e_IrBms82YbSCI-ibqy8dYqG9wVuqlh0HIIw4c0Qh52rt_K74setPNzGtI7SrvQt4nzXPsD4NbhLwnsI-_H6t3v9HAQt437kHI-0b_jwAAAP__62aByg">