summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/interface/SBFileSpec.i
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-07-02 22:18:35 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-07-02 22:18:35 +0000
commit89b658428bae3b749f174ca79f0fe390451d8f69 (patch)
tree1b02a3af90f9be9c3bc27fecdf67bbb5c1443fb2 /lldb/scripts/interface/SBFileSpec.i
parent54c7907f52eaefbfa33c741008d2124f7d62bb99 (diff)
downloadbcm5719-llvm-89b658428bae3b749f174ca79f0fe390451d8f69.tar.gz
bcm5719-llvm-89b658428bae3b749f174ca79f0fe390451d8f69.zip
[swig] Don't mess with swig internals.
As of SWIG 4.0, __swig_getmethods__ and __swig_setmethods__ are no longer defined. It appears that there's no need to mess with these internals, we can simplify define the corresponding properties inline. Originally I wanted to use the swig extension %attribute and %attributeref to define properties. However, I couldn't find a way to add documentation to these attributes. Since we already had the properties defined inline, we might as well keep them. Differential revision: https://reviews.llvm.org/D63530 llvm-svn: 364974
Diffstat (limited to 'lldb/scripts/interface/SBFileSpec.i')
-rw-r--r--lldb/scripts/interface/SBFileSpec.i15
1 files changed, 4 insertions, 11 deletions
diff --git a/lldb/scripts/interface/SBFileSpec.i b/lldb/scripts/interface/SBFileSpec.i
index d5cdb7d3c4a..98777c0e1e4 100644
--- a/lldb/scripts/interface/SBFileSpec.i
+++ b/lldb/scripts/interface/SBFileSpec.i
@@ -92,17 +92,10 @@ public:
return spec_file
return None
- __swig_getmethods__["fullpath"] = __get_fullpath__
- if _newclass: fullpath = property(__get_fullpath__, None, doc='''A read only property that returns the fullpath as a python string.''')
-
- __swig_getmethods__["basename"] = GetFilename
- if _newclass: basename = property(GetFilename, None, doc='''A read only property that returns the path basename as a python string.''')
-
- __swig_getmethods__["dirname"] = GetDirectory
- if _newclass: dirname = property(GetDirectory, None, doc='''A read only property that returns the path directory name as a python string.''')
-
- __swig_getmethods__["exists"] = Exists
- if _newclass: exists = property(Exists, None, doc='''A read only property that returns a boolean value that indicates if the file exists.''')
+ fullpath = property(__get_fullpath__, None, doc='''A read only property that returns the fullpath as a python string.''')
+ basename = property(GetFilename, None, doc='''A read only property that returns the path basename as a python string.''')
+ dirname = property(GetDirectory, None, doc='''A read only property that returns the path directory name as a python string.''')
+ exists = property(Exists, None, doc='''A read only property that returns a boolean value that indicates if the file exists.''')
%}
};
OpenPOWER on IntegriCloud