Fix some swig warnings
authorPavel Labath <pavel@labath.sk>
Fri, 27 Sep 2019 11:30:16 +0000 (11:30 +0000)
committerPavel Labath <pavel@labath.sk>
Fri, 27 Sep 2019 11:30:16 +0000 (11:30 +0000)
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

llvm-svn: 373069

lldb/scripts/interface/SBBreakpoint.i
lldb/scripts/interface/SBBreakpointName.i
lldb/scripts/interface/SBModule.i
lldb/scripts/interface/SBStructuredData.i
lldb/scripts/interface/SBThreadPlan.i

index 8aabb2b..6df0b95 100644 (file)
@@ -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);
 
index f9feaa9..42dd423 100644 (file)
@@ -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);
index ba8f5fb..06a4628 100644 (file)
@@ -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.'''
index 99b3247..c7601bf 100644 (file)
@@ -33,8 +33,6 @@ namespace lldb {
         void
         Clear();
 
-        lldb::SBStructuredData &operator=(const lldb::SBStructuredData &rhs);
-
         lldb::StructuredDataType GetType() const;
 
         size_t GetSize() const;
index 05789f1..edce0ee 100644 (file)
@@ -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);