[Lldb-commits] [lldb] r136194 - /lldb/trunk/scripts/Python/interface/SBValue.i

Johnny Chen johnny.chen at apple.com
Tue Jul 26 17:08:59 PDT 2011


Author: johnny
Date: Tue Jul 26 19:08:59 2011
New Revision: 136194

URL: http://llvm.org/viewvc/llvm-project?rev=136194&view=rev
Log:
Add deprecation docstrings for some APIs which take an SBFrame - SBValues know their own frames.

Modified:
    lldb/trunk/scripts/Python/interface/SBValue.i

Modified: lldb/trunk/scripts/Python/interface/SBValue.i
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/interface/SBValue.i?rev=136194&r1=136193&r2=136194&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/interface/SBValue.i (original)
+++ lldb/trunk/scripts/Python/interface/SBValue.i Tue Jul 26 19:08:59 2011
@@ -82,8 +82,13 @@
     size_t
     GetByteSize ();
 
+    %define DEPRECATED
+    "The method which takes an SBFrame is deprecated - SBValues know their own frames."
+    %enddef
+
+    %feature("docstring", DEPRECATED) IsInScope;
     bool
-    IsInScope (const lldb::SBFrame &frame);  // DEPRECATED - SBValues know their own frames.
+    IsInScope (const lldb::SBFrame &frame);
 
     bool
     IsInScope ();
@@ -94,8 +99,9 @@
     void
     SetFormat (lldb::Format format);
 
+    %feature("docstring", DEPRECATED) GetValue;
     const char *
-    GetValue (const lldb::SBFrame &frame);   // DEPRECATED - SBValues know their own frames.
+    GetValue (const lldb::SBFrame &frame);
 
     const char *
     GetValue ();
@@ -103,32 +109,37 @@
     ValueType
     GetValueType ();
 
+    %feature("docstring", DEPRECATED) GetValueDidChange;
     bool
-    GetValueDidChange (const lldb::SBFrame &frame);  // DEPRECATED - SBValues know their own frames.
+    GetValueDidChange (const lldb::SBFrame &frame);
 
     bool
     GetValueDidChange ();
 
+    %feature("docstring", DEPRECATED) GetSummary;
     const char *
-    GetSummary (const lldb::SBFrame &frame);  // DEPRECATED - SBValues know their own frames.
+    GetSummary (const lldb::SBFrame &frame);
     
     const char *
     GetSummary ();
     
+    %feature("docstring", DEPRECATED) GetObjectDescription;
     const char *
-    GetObjectDescription (const lldb::SBFrame &frame);  // DEPRECATED - SBValues know their own frames.
+    GetObjectDescription (const lldb::SBFrame &frame);
 
     const char *
     GetObjectDescription ();
 
+    %feature("docstring", DEPRECATED) GetLocation;
     const char *
-    GetLocation (const lldb::SBFrame &frame);  // DEPRECATED - SBValues know their own frames.
+    GetLocation (const lldb::SBFrame &frame);
 
     const char *
     GetLocation ();
 
+    %feature("docstring", DEPRECATED) SetValueFromCString;
     bool
-    SetValueFromCString (const lldb::SBFrame &frame, const char *value_str);  // DEPRECATED - SBValues know their own frames.
+    SetValueFromCString (const lldb::SBFrame &frame, const char *value_str);
 
     bool
     SetValueFromCString (const char *value_str);





More information about the lldb-commits mailing list