mirror of
https://github.com/intel/llvm.git
synced 2026-01-25 19:44:38 +08:00
Revert "Re-land "[lldb/docs] Silence warnings when generating website""
This reverts 3 commit: -f0731d5b61. -8e0a087571. -f2f5d6fb8d. This changes were introduced to silence the warnings that are printed when generating the lldb module documentation for the website but it changed the python bindings and causes test failures on the macos bot: https://green.lab.llvm.org/green/job/lldb-cmake/59438/ We will have to consider other options to silence these warnings.
This commit is contained in:
@@ -289,24 +289,6 @@ class declaration(object):
|
||||
self.line = line
|
||||
self.col = col
|
||||
|
||||
def __eq__(self, other):
|
||||
return not self.__ne__(other)
|
||||
|
||||
def __int__(self):
|
||||
pass
|
||||
|
||||
def __hex__(self):
|
||||
pass
|
||||
|
||||
def __oct__(self):
|
||||
pass
|
||||
|
||||
def __len__(self):
|
||||
pass
|
||||
|
||||
def __iter__(self):
|
||||
pass
|
||||
|
||||
class value_iter(object):
|
||||
'''Allows iterating over the children of an :py:class:`SBValue`.'''
|
||||
def __iter__(self):
|
||||
@@ -322,24 +304,8 @@ class value_iter(object):
|
||||
def next(self):
|
||||
return self.__next__()
|
||||
|
||||
def __eq__(self, other):
|
||||
return not self.__ne__(other)
|
||||
|
||||
def __int__(self):
|
||||
pass
|
||||
|
||||
def __hex__(self):
|
||||
pass
|
||||
|
||||
def __oct__(self):
|
||||
pass
|
||||
|
||||
def __len__(self):
|
||||
return self.length
|
||||
|
||||
def __init__(self,value):
|
||||
self.index = 0
|
||||
self.length = 0
|
||||
self.sbvalue = value
|
||||
if type(self.sbvalue) is value:
|
||||
self.sbvalue = self.sbvalue.sbvalue
|
||||
@@ -580,21 +546,6 @@ class SBSyntheticValueProvider(object):
|
||||
def has_children(self):
|
||||
return False
|
||||
|
||||
def __int__(self):
|
||||
pass
|
||||
|
||||
def __hex__(self):
|
||||
pass
|
||||
|
||||
def __oct__(self):
|
||||
pass
|
||||
|
||||
def __len__(self):
|
||||
return self.num_children()
|
||||
|
||||
def __iter__(self):
|
||||
'''Iterate over all children in a lldb.SBSyntheticValueProvider object.'''
|
||||
return lldb_iter(self, 'num_children', 'get_child_at_index')
|
||||
|
||||
%}
|
||||
|
||||
|
||||
@@ -106,21 +106,6 @@ def lldb_iter(obj, getsize, getelem):
|
||||
elem = getattr(obj, getelem)
|
||||
for i in range(size()):
|
||||
yield elem(i)
|
||||
|
||||
def __int__(self):
|
||||
pass
|
||||
|
||||
def __hex__(self):
|
||||
pass
|
||||
|
||||
def __oct__(self):
|
||||
pass
|
||||
|
||||
def __len__(self):
|
||||
pass
|
||||
|
||||
def __iter__(self):
|
||||
pass
|
||||
%}
|
||||
|
||||
%include <std_string.i>
|
||||
|
||||
Reference in New Issue
Block a user