<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/58949>58949</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format][Feature Request] Styling option to automatically add `C++14` `1'000'000` integer literal single quote separators
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Eshnek
</td>
</tr>
</table>
<pre>
I find these quite nice, and it would be amazing if `clang-format` could enforce them automatically.
```
0b1001'1001
0x100'000'000'000'000'000
```
vs
```
0b10011001
0x100000000000000000
```
Ideally you could configure the separator rules per literal format, though quite complex.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx9UttypCAQ_Rp86YqFjKPjgw-57FTldfcLEFsly4DhkmT267cxs7WZVCoUQvdBD31OO7jx3D_CpO0IccGA8Jx0RLBaIRP3IAnXEV5dMiMMCPIk_2g7g56ANVwZaeebyfmTjJSC2l5DS4jCzHcCmaKjU62kMeeS8QfGby9rwy9zS_lQcV4x0W7bO_RGMSH8m_UrqpfwzQ2f6D-NLz98Xx9HzBrg7NJFqHJ20nPym1QIuEovo_Pgk8EAK3ow5KWXBi4WkaFxcWleLi4rd1oNvpUF9lXTHATnbVMXY78bu10ni6ijwZ7t76583j8QckQZ88U_8TlhyCD8imeTW-PWqJ2F6K69BzmOuWf3TNzRrOrcMHqqKzsJ0zbi_KH2QKQm_xcufhAZiuRNv8S4Bra7ZeJIc9ZxSUNJqigx5uXfdrN694SK9B91CFQvBftDV3fF0rdd241qqCrkLTaDOIga1YT1cBgaVBwLIwc0IbvAhLD4ChsFxaS50L3gQlQ0RMUbXpeV6LqW77uOT9O427es5niS2pS5jtL5ufD9VtKQ5kCHRocY_h_KEPRscTM985ODi_P9j7BY_F1sN_db5X8BHpb3mQ">