[all-commits] [llvm/llvm-project] 2996cb: [libc][docs] use docgen to generate stdbit rst doc...

Michael Flanders via All-commits all-commits at lists.llvm.org
Fri Apr 12 15:16:17 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2996cb7970fb536d7db1088d571dc8d2f9ad35fa
      https://github.com/llvm/llvm-project/commit/2996cb7970fb536d7db1088d571dc8d2f9ad35fa
  Author: Michael Flanders <flanders.michaelk at gmail.com>
  Date:   2024-04-12 (Fri, 12 Apr 2024)

  Changed paths:
    M libc/docs/stdbit.rst
    M libc/utils/docgen/docgen.py
    A libc/utils/docgen/stdbit.json

  Log Message:
  -----------
  [libc][docs] use docgen to generate stdbit rst docs (#88540)

Closes #88066.

Compared to before, the function names in the stdbit table are sorted by
function name, not order-of-appearance in the standard. Since macros
aren't printed by docgen.py and are still a TODO in the code, they are
also not printed in the new stdbit.h docs.

Adds some checks to docgen.py for conditions that tripped me up.

Add code to docgen.py to add the include of the `|check|` rewriter,
since all other generated files need it.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list