aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-04-10 07:55:04 +0000
committerPavel Labath <pavel@labath.sk>2019-04-10 07:55:04 +0000
commitf5f45f21d84b6e447f3736239c18ea826ccf7f39 (patch)
treeafd96ce12110b1d0ba6a51c466dbff55daa511b1
parentb3be23d3342dbeef2d1b2a2a230c3debdc538c97 (diff)
downloadllvm-f5f45f21d84b6e447f3736239c18ea826ccf7f39.zip
llvm-f5f45f21d84b6e447f3736239c18ea826ccf7f39.tar.gz
llvm-f5f45f21d84b6e447f3736239c18ea826ccf7f39.tar.bz2
Docstringify some comments in the swig interface files
Without these, the comments don't end up in the generated python code. llvm-svn: 358055
-rw-r--r--lldb/scripts/interface/SBModuleSpec.i4
-rw-r--r--lldb/scripts/interface/SBProcess.i3
-rw-r--r--lldb/scripts/interface/SBThreadPlan.i5
3 files changed, 8 insertions, 4 deletions
diff --git a/lldb/scripts/interface/SBModuleSpec.i b/lldb/scripts/interface/SBModuleSpec.i
index 76b9d7f..87596b56 100644
--- a/lldb/scripts/interface/SBModuleSpec.i
+++ b/lldb/scripts/interface/SBModuleSpec.i
@@ -26,6 +26,7 @@ public:
void
Clear();
+ %feature("docstring", "
//------------------------------------------------------------------
/// Get const accessor for the module file.
///
@@ -36,12 +37,14 @@ public:
/// @return
/// A const reference to the file specification object.
//------------------------------------------------------------------
+ ") GetFileSpec;
lldb::SBFileSpec
GetFileSpec ();
void
SetFileSpec (const lldb::SBFileSpec &fspec);
+ %feature("docstring", "
//------------------------------------------------------------------
/// Get accessor for the module platform file.
///
@@ -57,6 +60,7 @@ public:
/// @return
/// A const reference to the file specification object.
//------------------------------------------------------------------
+ ") GetPlatformFileSpec;
lldb::SBFileSpec
GetPlatformFileSpec ();
diff --git a/lldb/scripts/interface/SBProcess.i b/lldb/scripts/interface/SBProcess.i
index 7e00ed3..ecefadd 100644
--- a/lldb/scripts/interface/SBProcess.i
+++ b/lldb/scripts/interface/SBProcess.i
@@ -34,9 +34,6 @@ def get_stopped_threads(process, reason):
class SBProcess
{
public:
- //------------------------------------------------------------------
- /// Broadcaster event bits definitions.
- //------------------------------------------------------------------
enum
{
eBroadcastBitStateChanged = (1 << 0),
diff --git a/lldb/scripts/interface/SBThreadPlan.i b/lldb/scripts/interface/SBThreadPlan.i
index c5fa43a9..6150d7a 100644
--- a/lldb/scripts/interface/SBThreadPlan.i
+++ b/lldb/scripts/interface/SBThreadPlan.i
@@ -48,11 +48,14 @@ public:
lldb::StopReason
GetStopReason();
+ %feature("docstring", "
/// Get the number of words associated with the stop reason.
/// See also GetStopReasonDataAtIndex().
+ ") GetStopReasonDataCount;
size_t
GetStopReasonDataCount();
+ %feature("docstring", "
//--------------------------------------------------------------------------
/// Get information associated with a stop reason.
///
@@ -71,6 +74,7 @@ public:
/// eStopReasonExec 0
/// eStopReasonPlanComplete 0
//--------------------------------------------------------------------------
+ ") GetStopReasonDataAtIndex;
uint64_t
GetStopReasonDataAtIndex(uint32_t idx);
@@ -94,7 +98,6 @@ public:
explicit operator bool() const;
- // This section allows an SBThreadPlan to push another of the common types of plans...
SBThreadPlan
QueueThreadPlanForStepOverRange (SBAddress &start_address,
lldb::addr_t range_size);