[Lldb-commits] [lldb] [LLDB][SBProgress] Quick fix to the progress formatting (PR #157561)
Jacob Lalonde via lldb-commits
lldb-commits at lists.llvm.org
Mon Sep 8 14:46:57 PDT 2025
https://github.com/Jlalond created https://github.com/llvm/llvm-project/pull/157561
Earlier today I was looking at the SBProgress documentation with a colleague and found another instance where the swig block wasn't formatting correctly. I've adjusted the docs slightly to fix this. I don't actually know how to see a preview of our docstrings but I believe this will fix it.
<img width="829" height="234" alt="image" src="https://github.com/user-attachments/assets/8ef3a2df-92b9-4157-a452-f5e1ec51aa9a" />
>From 0fc52059c00f25dce48a08a1eeb8adbd09e19aa5 Mon Sep 17 00:00:00 2001
From: Jacob Lalonde <jalalonde at fb.com>
Date: Mon, 8 Sep 2025 14:44:50 -0700
Subject: [PATCH] Quick fix to the progress formatting
---
lldb/bindings/interface/SBProgressDocstrings.i | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lldb/bindings/interface/SBProgressDocstrings.i b/lldb/bindings/interface/SBProgressDocstrings.i
index 4c001d7d5ebcb..218d0c973cc40 100644
--- a/lldb/bindings/interface/SBProgressDocstrings.i
+++ b/lldb/bindings/interface/SBProgressDocstrings.i
@@ -57,8 +57,9 @@ Additionally for Python, progress is supported in a with statement. ::
with lldb.SBProgress('Non deterministic progress', 'Detail', lldb.SBDebugger) as progress:
for i in range(10):
progress.Increment(1)
- # The progress object is automatically finalized when the with statement
+ ...
+The progress object is automatically finalized on the exit of the with block.
") lldb::SBProgress;
%feature("docstring",
More information about the lldb-commits
mailing list