<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/59498>59498</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Allow AlignConsecutiveDeclarations across templates
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
BluTree
</td>
</tr>
</table>
<pre>
When wanting to align code present in header, I noticed that there is no possibility to align consecutive declarations across templates declarations.
For example, when wanting to format this code with `AlignConsecutiveDeclarations: AcrossEmptyLinesAndComments` :
```cpp
unsigned int func();
int func2();
template<typename T>
void func3();
```
it will align function declarations like this :
```cpp
unsigned int func();
int func2();
template<typename T>
void func3();
```
It would be interesting to allow another option to `AlignConsecutiveStyle` allowing alignment across template declarations like this :
```cpp
unsigned int func();
int func2();
template<typename T>
void func3();
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMVE1v2zAM_TXyhWggyx-JDz64aQMU2G0FdpYlJtYmS4ZEN8u_H2Q3a5sNuxWYYcgA6af3-EhJxmhODrFl1T2rHjI50-BDe2_n54CY9V5f2m8DOjhLR8adgDxIa04OlNcIU8CIjsA4GFBqDEzs4QmcJ6NQAw2SgAYMCCaC8zD5GE1vrKHL-51cRDWTeUHQqKwMkox3EaQKPkYgHCcrCeOH7IbxB8a7gw-AP-U4WUzc5xutRx_GRYOJq-KzoQFYzbtEvX9jfni3NSs66Bbux3GiyxfjMHZO7_04oqPIag6s6FZ-VvP1VdO0Rma3WKrBOILj7BQTOyYaVtyv-WtY3MTX9VosK_Z0mdDJEeGZFY9r9sUbvYCLW_BVxisHwdlY-2pwAqTCPrprzQ9cjfnPi1nXJ4Kzn62GHpMYDBjfBtL6M0jn06iBn5Zayf-tzV_pYjE1cMEk_GJR6uvtuH2SW7-fz7Mt022hm6KRGbZ5veVNybdbkQ0tNiiqktd1vhN1rbdqh7xRZZnX-bY6liIzreBC5CIv8jIXldigKpXEnPe4Kyqtj6zkOEpjN9a-jBsfTpmJcca2aspml1nZo43XuyS06ae7fj5FVnJrIsU3GBmy2HZL5_51Fv-4BLI52HYgmtIxZeLAxOFkaJj7jfIjE4fE8Pq5m4L_joqYOCwqIxOHReivAAAA___ro5KG">