Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / bindings / interface / SBFileSpecExtensions.i
blobe2c81e6b0f8b0b4e4587aeac3b919c22b21c07c2
1 STRING_EXTENSION_OUTSIDE(SBFileSpec)
3 %extend lldb::SBFileSpec {
4 #ifdef SWIGPYTHON
5 %pythoncode %{
6 # operator== is a free function, which swig does not handle, so we inject
7 # our own equality operator here
8 def __eq__(self, other):
9 return not self.__ne__(other)
11 fullpath = property(str, None, doc='''A read only property that returns the fullpath as a python string.''')
12 basename = property(GetFilename, None, doc='''A read only property that returns the path basename as a python string.''')
13 dirname = property(GetDirectory, None, doc='''A read only property that returns the path directory name as a python string.''')
14 exists = property(Exists, None, doc='''A read only property that returns a boolean value that indicates if the file exists.''')
16 #endif