mirror-llvm-project/lldb/scripts
Jonas Devlieghere d5a18603b0
[lldb][docs] Generate the Python API enums page from headers (#202780)
The "Python API enumerators and constants" page was added by
3cae8b3329 as an explicit stop-gap: its contents were grepped out of
the headers by hand, with the few available doc strings copied over
manually. That commit noted the real fix would be a tool that parses the
enum/constant headers and emits the page automatically.

Being hand-maintained, the page drifted badly out of sync. By now it was
missing 19 enums and 60+ enumerators, still documented three values that
no longer exist, and carried stale descriptions.

Add gen-python-api-enums.py, which parses lldb-enumerations.h and
lldb-defines.h and emits the page at build time. It is pulled into
python_api_enums.md via the {build-include} directive, the same
mechanism already used for the generated settings page, so the page can
stay in sync with the source.

Enums from the separately generated SBLanguages.h (eLanguageName*) are
still not covered, matching the previous page's scope.

Assisted-by: Claude
2026-06-10 16:14:46 -07:00
..
android
lldb-test-qemu
analyze-project-deps.py [lldb] Unify python shebangs (#187257) 2026-04-27 15:01:57 -07:00
convert-lldb-header-to-rpc-header.py [lldb][rpc] Fix bug in convert script for RPC (#145419) 2025-06-23 15:46:12 -07:00
disasm-gdb-remote.pl
extract-dynamic-script-interpreter-exports.py [lldb] Build liblldb exports from script-interpreter imports (#201392) 2026-06-04 16:59:18 +00:00
framework-header-fix.py [lldb] Change directory creation logic in framework-header-fix (#158355) 2025-09-12 16:38:29 -07:00
gen-property-docs-from-json.py [lldb] Avoid NotRequired for Python < 3.11 compatibility (#192723) 2026-04-18 11:24:48 -07:00
gen-python-api-enums.py [lldb][docs] Generate the Python API enums page from headers (#202780) 2026-06-10 16:14:46 -07:00
generate-sbapi-dwarf-enum.py
install_custom_python.py
macos-setup-codesign.sh
msvc_extract_private_symbols.py
use_lldb_suite.py
verify_api.py [lldb] Unify python shebangs (#187257) 2026-04-27 15:01:57 -07:00
version-header-fix.py [lldb][framework] Glob headers from source for framework (#148736) 2025-07-18 15:26:09 -05:00