This patch does various things to silence the warnings that show up when generating the website documentation. First, this patch adds the missing definition for special member methods in every SBAPI class. If the class cannot implement one of the special member method, we just define it as a null operation (pass). This should fix the following warnings: ``` WARNING: missing attribute __int__ in object lldb.SB* WARNING: missing attribute __len__ in object lldb.SB* WARNING: missing attribute __hex__ in object lldb.SB* WARNING: missing attribute __oct__ in object lldb.SB* WARNING: missing attribute __iter__ in object lldb.SB* ``` Then, it un-skips the various `static` methods that we didn't generate the methods for, since it's not necessary thanks to the automod-api module. Finally, this comments out the `_static` directory in the sphinx config, since we don't need it anymore. Differential Revision: https://reviews.llvm.org/D159017 Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>
29 lines
693 B
OpenEdge ABL
29 lines
693 B
OpenEdge ABL
STRING_EXTENSION_OUTSIDE(SBScriptObject)
|
|
|
|
%extend lldb::SBScriptObject {
|
|
#ifdef SWIGPYTHON
|
|
%pythoncode %{
|
|
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
|
|
|
|
ptr = property(GetPointer, None, doc='''A read only property that returns the underlying script object.''')
|
|
lang = property(GetLanguage, None, doc='''A read only property that returns the script language associated with with this script object.''')
|
|
%}
|
|
#endif
|
|
}
|