[Lldb-commits] [lldb] r373069 - Fix some swig warnings
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 27 04:30:16 PDT 2019
Author: labath
Date: Fri Sep 27 04:30:16 2019
New Revision: 373069
URL: http://llvm.org/viewvc/llvm-project?rev=373069&view=rev
Log:
Fix some swig warnings
Previously, these were unseen because the wrapper script would swallow
them. This fixes the following types of warnings:
- methods being declared more than once
- swig complained about ignoring operator=, so I just removed it
Modified:
lldb/trunk/scripts/interface/SBBreakpoint.i
lldb/trunk/scripts/interface/SBBreakpointName.i
lldb/trunk/scripts/interface/SBModule.i
lldb/trunk/scripts/interface/SBStructuredData.i
lldb/trunk/scripts/interface/SBThreadPlan.i
Modified: lldb/trunk/scripts/interface/SBBreakpoint.i
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/interface/SBBreakpoint.i?rev=373069&r1=373068&r2=373069&view=diff
==============================================================================
--- lldb/trunk/scripts/interface/SBBreakpoint.i (original)
+++ lldb/trunk/scripts/interface/SBBreakpoint.i Fri Sep 27 04:30:16 2019
@@ -223,12 +223,6 @@ public:
SBError
AddLocation(SBAddress &address);
- bool
- operator == (const lldb::SBBreakpoint& rhs);
-
- bool
- operator != (const lldb::SBBreakpoint& rhs);
-
static bool
EventIsBreakpointEvent (const lldb::SBEvent &event);
Modified: lldb/trunk/scripts/interface/SBBreakpointName.i
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/interface/SBBreakpointName.i?rev=373069&r1=373068&r2=373069&view=diff
==============================================================================
--- lldb/trunk/scripts/interface/SBBreakpointName.i (original)
+++ lldb/trunk/scripts/interface/SBBreakpointName.i Fri Sep 27 04:30:16 2019
@@ -34,8 +34,6 @@ public:
~SBBreakpointName();
- const lldb::SBBreakpointName &operator=(const lldb::SBBreakpointName &rhs);
-
// Tests to see if the opaque breakpoint object in this object matches the
// opaque breakpoint object in "rhs".
bool operator==(const lldb::SBBreakpointName &rhs);
Modified: lldb/trunk/scripts/interface/SBModule.i
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/interface/SBModule.i?rev=373069&r1=373068&r2=373069&view=diff
==============================================================================
--- lldb/trunk/scripts/interface/SBModule.i (original)
+++ lldb/trunk/scripts/interface/SBModule.i Fri Sep 27 04:30:16 2019
@@ -342,12 +342,6 @@ public:
lldb::SBAddress
GetObjectFileEntryPointAddress() const;
- bool
- operator == (const lldb::SBModule &rhs) const;
-
- bool
- operator != (const lldb::SBModule &rhs) const;
-
%pythoncode %{
def __len__(self):
'''Return the number of symbols in a lldb.SBModule object.'''
Modified: lldb/trunk/scripts/interface/SBStructuredData.i
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/interface/SBStructuredData.i?rev=373069&r1=373068&r2=373069&view=diff
==============================================================================
--- lldb/trunk/scripts/interface/SBStructuredData.i (original)
+++ lldb/trunk/scripts/interface/SBStructuredData.i Fri Sep 27 04:30:16 2019
@@ -33,8 +33,6 @@ namespace lldb {
void
Clear();
- lldb::SBStructuredData &operator=(const lldb::SBStructuredData &rhs);
-
lldb::StructuredDataType GetType() const;
size_t GetSize() const;
Modified: lldb/trunk/scripts/interface/SBThreadPlan.i
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/interface/SBThreadPlan.i?rev=373069&r1=373068&r2=373069&view=diff
==============================================================================
--- lldb/trunk/scripts/interface/SBThreadPlan.i (original)
+++ lldb/trunk/scripts/interface/SBThreadPlan.i Fri Sep 27 04:30:16 2019
@@ -38,6 +38,9 @@ public:
~SBThreadPlan ();
bool
+ IsValid();
+
+ bool
IsValid() const;
explicit operator bool() const;
@@ -89,11 +92,6 @@ public:
bool
IsPlanStale();
- bool
- IsValid();
-
- explicit operator bool() const;
-
SBThreadPlan
QueueThreadPlanForStepOverRange (SBAddress &start_address,
lldb::addr_t range_size);
More information about the lldb-commits
mailing list