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

    <tr>
        <th>Summary</th>
        <td>
            Clang pre-defined macros for C23 binary format?
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            question,
            c23,
            clang:headers
      </td>
    </tr>

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

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

<pre>
    Is there any plan to add  pre-defined macros for binary format (`b/B`) similar to `__UINT8_FMTx__`?

`Glibc` has added `PRIbN` and `PRIBN`: https://github.com/bminor/glibc/blob/bbd248ac0d75efdef8fe61ea69b1fb25fb95b6e7/stdlib/inttypes.h#L168.

Having `__UINT8_FMTb__` or `__UINT8_FMTB__` will help `libc` to define `PRIbN` and `PRIBN` as in https://github.com/llvm/llvm-project/blob/e82659fff2f07b5ea1d94e0d8bcb9c540d6bede1/libc/include/llvm-libc-macros/inttypes-macros.h#L167

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUk8Fu3CwUhZ8Gb1BG-NrG9sKLmUT-_0htVLXpppsRmMuYioEp4LTz9hWejJJGaqRubHzMPdzvACJGc3CIA2l2pLkrxJJmH4Yv0xy8Mu6A4du8FNKr83AfaZoxIBXuTE9WOJo8FUpRegp4o1Abh4oexRR8pNoHKo0T4ZyHR5EogY5wJgmMO8IZgZ5GczRWhGxDONvvv94_PHb78ePjr_0-T6lGwu4I2z4_OfvPGjkRzugsYl4ZVS789PlePmRVuOv37mGt39I5pVMk1ZbASGA8mDQvcjP5I4FRHo3zIaurK4zS-tydlArqTkxMtQ1qhbrTyEsUvJelltBo2TeSY0tgjElZk2uMS-l8wriZCVQfSt5tXnf-v3gy7vCGUa6M1Ic3-u6i_zTW0hntKf--YidPLzG_h01FpMa9R27t0_V1cwr-O07pBR874E2vtQbNWtmgKFVfI1OdnGQ_NTVTXKLCMhtccjNusovCq2NWby6n4FUyz8o1oPaSTKGGSvVVLwocypZ1DIDxspiHsqtqBaD7ulStRBSgywk556Jq21p3hRmAQc2gbPJUKDeVnKqaNVo0rO2nUpCa4VEYu8lNbXw4FCbGBYeu7HpeWCHRxvXQA_xYMCbjHQEgcEsAJqhexla4A6m2MwqFIWa9uSvCsLLK5RBJzayJKb4slEyyONzmwr9djVuo_rwepBqLJdjhn7dtpcpJr2C_AwAA__-GzSy6">