<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/101245>101245</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang format CompactNamespaces support for migrating to c++17 namespaces
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
bmaurer
</td>
</tr>
</table>
<pre>
Clang format has a CompactNamespaces option that turns
```
namespace A {
namespace B {
namespace C {
...
} } }
```
into
```
namespace A { namespace B { namespace C {
...
} } }
```
Ideally, there'd be a configuration that would use c++17 support to format as:
```
namespace A::B::C { ... }
```
Clang format accepts the c++17 style, but does help not migrate to it.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysklFvnDAMxz9NeLGKguGgPOThuOqkvew7mBAgUyAocTr1209c6a7rKm2TJkEiLGz_f_6bYrTTaowSp06cnjJKPPug-oVSMCHr_fCiLo7WCUYfFmKYKQLBxS8baf5Ki4kbaRPBb2z9CjwTA6ewRhDyScjzcdbyeG6f61senEE03cdg91nwsgePonmeH3WbJzjeTxu9nnZl_w9y4IMS-C8ivgyGnHsReAGeTTACmwF6AwTar6OdUqD7BL_75AZI0YAW2AnsigZi2jYfGNi_eUFRlOe_49p_LM_d6_VKkef5HyT_YjxpbTaOu_j3ovjFmZ2pTwyDNxFm4zZYPcNip0Bsdr2W82xQ5dCWLWVGFQ1i2ZywwmxWxdC2fV2MRBKHUj5SWVDR1-OpHmTZjo-ZVSixkk0psSgriTnWZWX00Paoa92eClFJs5B1uXPPS-7DlNkYk1GFLLA6ZY564-JtwRH1jiQQ910Pak946NMURSWdjRzvJdiyM0q_n8DvS_9myejDgWvXaQe-D-inBzFLwamZebu5hleB18nynPpc-0XgdW99XA9b8N-MZoHXG0oUeD1onhX-CAAA__-_zhar">