[Lldb-commits] [lldb] [lldb][RPC] Upstream Python scripts (PR #138028)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed May 14 10:53:48 PDT 2025


================
@@ -0,0 +1,65 @@
+#!/usr/bin/env python3
+# Usage: convert-lldb-header-to-rpc-header.py <path/to/input-header.h> <path/to/output-header.h>
+# This scripts takes common LLDB headers (such as lldb-defines.h) and replaces references to LLDB
+# with those for RPC. This happens for:
+# - namespace definitions
+# - namespace usage
+# - version string macros
+# - ifdef/ifndef lines
----------------
JDevlieghere wrote:

Python has a PEP that describes how to document files/modules. We should use that here too. 
```suggestion
"""
Usage: convert-lldb-header-to-rpc-header.py <path/to/input-header.h> <path/to/output-header.h>
This scripts takes common LLDB headers (such as lldb-defines.h) and replaces references to LLDB
with those for RPC. This happens for:
- namespace definitions
- namespace usage
- version string macros
- ifdef/ifndef lines
"""
```

https://github.com/llvm/llvm-project/pull/138028


More information about the lldb-commits mailing list