diff options
| author | Pavel Labath <pavel@labath.sk> | 2019-04-10 07:55:04 +0000 |
|---|---|---|
| committer | Pavel Labath <pavel@labath.sk> | 2019-04-10 07:55:04 +0000 |
| commit | f5f45f21d84b6e447f3736239c18ea826ccf7f39 (patch) | |
| tree | afd96ce12110b1d0ba6a51c466dbff55daa511b1 | |
| parent | b3be23d3342dbeef2d1b2a2a230c3debdc538c97 (diff) | |
| download | llvm-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.i | 4 | ||||
| -rw-r--r-- | lldb/scripts/interface/SBProcess.i | 3 | ||||
| -rw-r--r-- | lldb/scripts/interface/SBThreadPlan.i | 5 |
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); |
