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

    <tr>
        <th>Summary</th>
        <td>
            clang-format doesn't insert spaces before `namespace` comments with `AlignTrailingComments: Leave`
        </td>
    </tr>

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

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

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

<pre>
    Version: 16 and main
```
$ cat test.cpp
namespace ns {
int i;
int j;
}
$ clang-format -style='{AlignTrailingComments: Leave}' test.cpp
namespace ns {
int i;
int j;
}// namespace ns
```
Expected output:
```
namespace ns {
int i;
int j;
} // namespace ns
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysUkGL2zwQ_TXji0iQR7a0OeiQ_fLl1GPpXZbHjhZZMtZ4t_vvi5OwTWFhoRQMZt5ohvfePFdKGBORhfYZEPMbJe8AEdpT5Va-5MXesKrL_bv9QUsJOYE6iloLl3oxuZBAnkAeQcv7dyuxEd6xYCq89_N8Q5ObqMzOk0hFgHm-oSGxCKAeqpePCszpYWF0adwNeZkci13h90igToAGzPMxhjF9X1yIIY3_5WmixGVj-o3cK21r0PwTNngGPIvH2U8N-P_nTJ6pF3nleWVQx0-f_RUH8TWJqreqP6iDq8jW-iDrptFaVxernKkPRI1W7qkbpMFG1_1TR61vvB_MUAWLEpU0qFAq0-h92zuHZAY0unPYDtBImlyI-xhfp31exiqUspLVjWzrKrqOYrkHKtGbuDbvmVrsNrPr1rFAI2MoXH5v4cCR7B837jOVBGhYhFRoYXFVW0RHQ15IgJYfFoCWwt_PLt4CX7buF6HQslqXaC_M84beXB0DX9Zu7_MEeN7I3X-7eckv5BnwfJVUAM9Xyb8CAAD__9uE-y0">