<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/116962>116962</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Support for `%wN` and `%wfN` length modifiers in c23
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang:diagnostics
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Kmeakin
</td>
</tr>
</table>
<pre>
The `%wN` and `%wfN` length modifiers are new in C23 (https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3047.pdf). They correspond to the `[u]intN_t` and `[u]int_fastN_t` respectively (eg `%w32u` prints a `uint32_t`.
Clang's `-Wformat` checker needs to be updated to recognize these when `-std=c23` is enabled:
https://godbolt.org/z/xYr8x4bnq
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUUstupDAQ_BpzsQaZNjDDgUOSEZeVctlIqz1FfjTgxGOztglJvn5lMtnXbS8gt6urq8slYjSTQ-xJc0uacyHWNPvQf7mgeDaukF6_9Q8zUtIyAs12T1pGhdOf53EvWHRTmunFazMaDJGKgNThRo2jd8ApgdOc0hIJvyEwEBi2bSv9gu4Qky59mAgMT0lVBIaoADJgquoPHIFBexUJDI6z-lgueiTQlfRhxjeqfAgYF-80TZ6mq87mdiXN2bh0_5j-1Pur_jiK-HmZ-1El84L2LQvF6XM3DmsGLMG4FKnI5dW4xGFvLAk7E3bz8b2zwk0EjjGDDt9GHy5iZ1czqmcM1CHqmDVKpOuiRcJdcUDlJ2feMWuPSLcZ3U4Rkyb8rIBnEhMpOiEt6mzgPvBvOyevpbfp6uQ7geH1ezi91tL9KHTPdcc7UWBfHTlUrAXWFnM_CgnVyGSlTrJjLW85U8BqVY2NPOq2K0wPDOqqAlYBb-umrKFpdYfNqLsTOzIgNcOLMLa09uWSZxcmxhX7qmq7FgorJNq45wpA7QbxG23E5HxMJr8o5MCFPrcf5DpFUjNrYoq_CZNJFvuv67L4kOjow3_m0DiqgBdrsP0_jpk0r7JU_kJgyOOuv8MS_BOqRGDYl8m5u-7z0sPPAAAA__8g-Pq7">