<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/93793>93793</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format: Inserts unwanted newlines in template <typename...> typename class template
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
cvigue
</td>
</tr>
</table>
<pre>
Desired format:
```
template <template <typename...> typename Xxx,
template <typename...> typename Yyy,
typename... T>
class A
{
};
```
Actual format:
```
template <template <typename...> typename Xxx,
template <typename...>
typename Yyy,
typename... T>
class A
{
};
```
My .clang-format:
```
BasedOnStyle: Microsoft
ColumnLimit: 0
SortIncludes: Never
BreakBeforeBinaryOperators: All
BinPackArguments: False
BinPackParameters: False
LambdaBodyIndentation: OuterScope
IndentCaseBlocks: true
MaxEmptyLinesToKeep: 3
BraceWrapping:
AfterNamespace: false
AfterCaseLabel: true
BeforeLambdaBody: true
```
Using clang-format 14
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0VFtvozwQ_TXmxSoyBnJ54CEkjVR96UVqP-3u48QMxFtjI9uk5d-vuKRpqt2qL40iY3PO2HPOmAHnZKURM5LmJN0E0PqDsZk4yqrFYG-KLtugkxYLWhpbgyfxirANYadxxqb_sPRYNwo8UhKvL-ZdgxpqDMOQxNf0tKQ_X18JX4-x9CsBv7ruHPD2e8emTyS-HnGhwDl6SnSenyYbEuefaBjHlfAtqLNo-l2qzyL-GXny55tM-Jv8246GQoGurr5S9hwcFvf60XcKe69upbDGmdKP8NqottY7WcvBySno0Vh_o4VqC3T96zs8op32swjPOZbGYi412O6-QQve2IG4UmqiSf0A4nllq7ZG7QdwC8rhBfwAFmr0aD_iO6j3BeSm6G50gdqDl0b3nPvWo30UppmII7wGh7ky4nnYx9t2Qm_h9bpufLeTGt2T-Q-x6QnxSQoI_GGhaaSu3lykdFV6tHdQo2tADKaV58wmuD9xB3tUlwfS0Zlz-pfwJ1X930ld0fd1pVESFFlcLOMlBJhF82jOZtE8iYJDhixOecKS2aJMIxYxPoP5Pi7SBYtmUVSkgcw44wlLY8aWcZpE4aJcYJmIaA57ViQQkYRhDVKFSh3r0NgqkM61mC3j-TIOVC_NDZ2H84vLxnnfi2zWh13t28qRhCnpvDtv5KVXmH24ovRGO7Te0Va_gPZYUI0vqq8LlfpL_WX8XE7MoLUqO3jf9CUnfEv4tpL-0O5DYWrCt3020-OqseY3Ck_4dtDoCN-OMo8Z_xMAAP__YnGfMw">