[Lldb-commits] [PATCH] D96096: [lldb] Emit type annotation in SWIG generated Python code.

Nathan Lanza via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Feb 5 12:56:39 PST 2021


lanza added a comment.

Thanks, Jonas! What's the status for your downstream repos? This generates bindings but they aren't entirely functional as it generates type annotations like `"lldb::SBDebugger"` which Python LSPs can't figure out. I ended up adding `-py3` and then running some sed post-processing to convert `"lldb::\(.*\)"` to `\1` etc: https://github.com/lanza/lldbpybind. That `lldb.py` works pretty well with pyright getting type info. Figuring out how to teach the build system + swig to generate proper type annotations might require a similar post processing step.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D96096/new/

https://reviews.llvm.org/D96096



More information about the lldb-commits mailing list