llvm-project/lldb/bindings
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
..
interface Reland "[lldb] Fix SBFileSpec.fullpath" 2022-11-21 12:45:27 -08:00
lua [lldb] (Semi-automatically) format .swig files 2021-12-16 13:58:37 +01:00
python [NFC] Make headers self-contained. 2022-11-29 04:14:55 -08:00
CMakeLists.txt [lldb] Get rid of __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS 2022-09-30 09:05:17 +02:00
headers.swig [trace][intel-pt] Create basic SB API 2021-06-17 15:14:47 -07:00
interfaces.swig [lldb] Get rid of __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS 2022-09-30 09:05:17 +02:00
macros.swig [lldb][bindings] Implement __repr__ instead of __str__ 2022-06-11 10:19:51 -07:00