<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/54665>54665</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] Formatting removes spaces in module/import declarations
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
michaelvlach
</td>
</tr>
</table>
<pre>
The following:
```
module my_module : my_partition;
import : my_other_partition;
import <some_header_unit>
```
will become with LLVM 14:
```
module my_module:my_partition;
import :my_other_partition;
import<some_header_unit>;
```
This was the case before but was eventually fixed and now it's back so probably a regression? Attaching the .clang-format for reference if there is some clashing setting or something causing it but I could not find it.
[clang-format.zip](https://github.com/llvm/llvm-project/files/8387275/clang-format.zip)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVkstu2zAQRb9G2hARZOplL7RwmhookO6CboMROZTYUqJBUnbdr--QsdEifaQFCA0flzNndDlYeemfJmTKGmPPehmzap-VD1m5z9ryOtJytnI1yObL83VGwrg6ggs6aLtk1f2LUs9H68Lt3IYJ3d9U77yd8XlCkKRbFx2y6v1vCc7aGDagIDk76zCxx8dPH9mm_ldi0r3B-ybuH2hvolcAT5P27AyeUU4mwCPRK-sorCHt4wmXsIIxF6b0V5QMFskWe2aUlneeDSC-MG_Z0dkBBlIBczg69D6hHdg-BBATuZZKFMLAMt5RiRkCOepIrdDhIpBpFSVUm5BiC4y0Pt30GEKMJI8HIW0KWH2MOiTYD0zY1UQ2yqsJUofi2vLLt7n_uXbxTR-z5iHj2ymEo48G8QONkVxbh4IcpIUxp1u4owY_o6CmD0ob9BS31bbjXUOzXxLzXS77Su6qHeTkksH-VXkqzQ5plhpzONsTUttHEBT0wq7vgR-u1kuk6w6i4T5fnen_G1t7vybupm7bJp96VTUVlIgShFRNq3AjZLtR3a6Wdd3WMjcwoPERPeN8QfI8pqA50ee65yXnZVVtym1Zl03R1kp1DZYD8q7edl1WlziDNkXkKKwbc9cnpGEdPR0a7YP_cQj0YsYF05-K-WENk3X9rMUEaE6GHlGe6veJ_zvymFcV">