llvm-project/lldb/bindings/python
Jordan Rupprecht cd02e78cd5 [NFC] Make headers self-contained.
Some headers in LLDB work only when considered as textual inclusion, but not if one attempts to use them on their own or with a different context.

- python-typemaps.h: uses Python definitions without using "Python.h".
- RISCVCInstructions.h uses RISC-V register enums without including the enums header.
- RISCVInstructions.h includes EmulateInstructionRISCV.h, but is unnecessary since we forward-declare EmulateInstructionRISCV anyway. Including the header is problematic because EmulateInstructionRISCV.h uses DecodeResult which isn't defined until later in RISCVInstructions.h.

This makes LLDB build cleanly with the "parse_headers" feature [1]. I'm not sure what the analagous CMake option is.

[1] I didn't find public documentation but @MaskRay wrote this up: https://maskray.me/blog/2022-09-25-layering-check-with-clang#parse_headers

Reviewed By: labath, MaskRay

Differential Revision: https://reviews.llvm.org/D138310
2022-11-29 04:14:55 -08:00
..
CMakeLists.txt [lldb/crashlog] Add CrashLogScriptedProcess & remove interactive mode 2022-02-16 11:44:07 -08:00
createPythonInit.py [lldb] Call __lldb_init_module from __init__ 2022-02-07 14:43:44 -08:00
get-python-config.py [lldb] add fallback for LLDB_PYTHON_RELATIVE_PATH 2021-12-02 21:13:35 -08:00
lldb-python [lldb] make it easier to find LLDB's python 2021-11-10 10:33:34 -08:00
python-extensions.swig [lldb] Add missing UTF-8 char basic type entries 2022-06-13 17:33:46 +00:00
python-swigsafecast.swig [lldb/Plugins] Improve error reporting with reading memory in Scripted Process 2022-11-18 13:56:48 -08:00
python-typemaps.h [NFC] Make headers self-contained. 2022-11-29 04:14:55 -08:00
python-typemaps.swig [lldb] Fix 'error: non-const lvalue...' caused by SWIG 4.1.0 2022-09-30 14:37:29 +02:00
python-wrapper.swig [lldb] Add matching based on Python callbacks for data formatters. 2022-10-19 12:53:38 -07:00
python.swig [lldb] Remove uses of six module (NFC) 2022-08-11 19:06:15 -07:00