mirror of
https://github.com/intel/llvm.git
synced 2026-01-24 08:30:34 +08:00
Re-land "[lldb/docs] Silence warnings when generating website"
This reverts commit 18f1c1ace7 and fix the
build failure issues introduced because of the `STRING_EXTENSION_OUTSIDE`
swig macros.
Differential Revision: https://reviews.llvm.org/D159017
Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>
This commit is contained in:
@@ -289,6 +289,24 @@ 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):
|
||||
@@ -304,8 +322,24 @@ 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
|
||||
@@ -546,6 +580,21 @@ 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,6 +106,21 @@ 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