[all-commits] [llvm/llvm-project] 2f5c83: [SBProgress] Add swig support for `with` statement...
Jacob Lalonde via All-commits
all-commits at lists.llvm.org
Sat Mar 29 15:22:13 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2f5c836e08164ce8835d520001042efe93caf950
https://github.com/llvm/llvm-project/commit/2f5c836e08164ce8835d520001042efe93caf950
Author: Jacob Lalonde <jalalonde at fb.com>
Date: 2025-03-29 (Sat, 29 Mar 2025)
Changed paths:
M lldb/bindings/interface/SBProgressDocstrings.i
A lldb/bindings/interface/SBProgressExtensions.i
M lldb/bindings/interfaces.swig
M lldb/test/API/tools/lldb-dap/progress/Progress_emitter.py
Log Message:
-----------
[SBProgress] Add swig support for `with` statement in Python (#133527)
We recently added an explicit finalize to SBProgress, #128966. I
realized while adding some additional implementations of SBProgress that
we should to add `with` support for ease of use. This patch addresses
adding and `__enter()__` method (which a no-op) and an `__exit()__` to
swig. I also refactor the emitter for the test to leverage `with`
instead of explicitly calling finalize, and I've updated the docstrings.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list