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

    <tr>
        <th>Summary</th>
        <td>
            [libc][docs] convert stdbit documentation to be generated
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            documentation,
            good first issue,
            libc
      </td>
    </tr>

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

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

<pre>
    Using [n3096](https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3096.pdf) Section 7.18, we should fill out the function list in a new file called libc/utils/docgen/stdbit.json (so that we have entries about which standard section talks about what, similar to libc/utils/docgen/fenv.json).

Then we should run ./libc/utils/docgen/docgen.py stdbit.h > libc/docs/stdbit.rst to overwrite the page for stdbit.h.

We need to retain [the include for |check|](https://github.com/llvm/llvm-project/commit/e127997155a1cd1c5692c42aad074064c8dad099) to be recognized.

https://github.com/llvm/llvm-project/issues/87835 and https://github.com/llvm/llvm-project/pull/87946 are recent examples adding documentation. This would be similar, but instead of starting from no documentation, we'd be converting existing documentation to be generated similar to other docs using the new generator.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykVE2P3DYM_TWaCxHDlr8PPmR36j_QFD3TEm1rVyMNJHom6a8vZM8m2bYpEOQyY0Ak3-PjIzFGsziiQdRPoj6fcOPVh8EZ9aop4madoRBPk9dfhj-icQuI-smVed-I-ixktzJfoyg_CjkKOd7v98xfyX2IrDMfFiHHF1aFkGNUUqaApaiOOCFH7VUUctyrZVc9C9nD76TYeAdtVnRCPsOdIK5-sxpmYy34jYFXgnlzR5w1kcE4QHB0TzEECq0lDdZMSshxY2PjAbaQS0xYT4azl-gdCNlFD7wiJ6AVbwTkOBiKgFPCuq9GrRAZncagIT7YMdrXbyHIiWk0F2MxAPsfQs_kbjuwkH0m8rPIPx6_n1Zy37UaNgeZkOOP6hwf2fULPJpZQZS_vcE-ZH08hciJkr9RuAfDtMt3xYVg9uFr_js2fxI4Ip3SAjEal2ae0oxTdtNHpmif1UrqVbTP_-WExfC6TZnyl9SHvb39fbgG_0KKhRyVv1xM-qBCtn3fFnWNhdKFqpteqkoi6ryt8qZSnUad933yB3uYCAIpvzjzF-l3xH-agolxoyRW13ZlDeg0_HSN62btXqGvGsCwkyPHQJ_xcrXJSVqnvdFebRdyjMlBGXxaTYT7Pu6J3syTfDRtydCRCTX4OXkvcMqfg7-A8-_rHCsiZLtXUd7d6Iimzybyv2Af8i3kKCCT_t60nlcKKTzCti96mnhaqke0D9lJD6Xuyx5PNBRtIZuiK4r8tA6VqrHIG1Xqaaob6lrVNqVqirqayr7Nm5MZZC6rvMo7WRZ13meEJeKMcipm2UksRJXTBY3NkrrpdJz22QxdlzfNyeJENu43Ssp_CCCFfBZSLt6nG5Hsvmd-fTi2QqbjFoZ9dtO2RFHl6XTEb3hs2O5ncE-oz6J-2jepPr_p-tiW_5f0tAU7_IIRU79_BwAA__9yKtlr">