[Lldb-commits] [lldb] [lldb] Add flag to "settings show" to include default values (PR #153233)

Dave Lee via lldb-commits lldb-commits at lists.llvm.org
Sat Aug 16 14:18:48 PDT 2025


================
@@ -338,6 +340,14 @@ class OptionValue {
   // DeepCopy to it. Inherit from Cloneable to avoid doing this manually.
   virtual lldb::OptionValueSP Clone() const = 0;
 
+  struct DefaultValueFormat {
+    DefaultValueFormat(Stream &stream) : stream(stream) {
+      stream.PutCString(" (default: ");
+    }
+    ~DefaultValueFormat() { stream.PutChar(')'); }
+    Stream &stream;
----------------
kastiglione wrote:

done

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


More information about the lldb-commits mailing list