Added documentation for many of our python properties and also made the property help show up by declaring the properties correctly. We previosly declared properties into a local "x" variable, what I didn't realize is that the help will use this as the property name for the help output.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@159468 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/scripts/Python/interface/SBError.i b/scripts/Python/interface/SBError.i
index 60b051a..d8dece2 100644
--- a/scripts/Python/interface/SBError.i
+++ b/scripts/Python/interface/SBError.i
@@ -105,19 +105,19 @@
%pythoncode %{
__swig_getmethods__["value"] = GetError
- if _newclass: x = property(GetError, None)
+ if _newclass: value = property(GetError, None, doc='''A read only property that returns the same result as GetError().''')
__swig_getmethods__["fail"] = Fail
- if _newclass: x = property(Fail, None)
+ if _newclass: fail = property(Fail, None, doc='''A read only property that returns the same result as Fail().''')
__swig_getmethods__["success"] = Success
- if _newclass: x = property(Success, None)
+ if _newclass: success = property(Success, None, doc='''A read only property that returns the same result as Success().''')
__swig_getmethods__["description"] = GetCString
- if _newclass: x = property(GetCString, None)
+ if _newclass: description = property(GetCString, None, doc='''A read only property that returns the same result as GetCString().''')
__swig_getmethods__["type"] = GetType
- if _newclass: x = property(GetType, None)
+ if _newclass: type = property(GetType, None, doc='''A read only property that returns the same result as GetType().''')
%}